Class AdRevenue

java.lang.Object
io.appmetrica.analytics.AdRevenue

public class AdRevenue extends Object
The class to store Ad Revenue data.

The Ad Revenue object should be passed to the AppMetrica by using the AppMetrica.reportAdRevenue(AdRevenue) or IReporter.reportAdRevenue(AdRevenue)method.

  • Field Details

    • adRevenue

      @NonNull public final BigDecimal adRevenue
      Amount of money received via ad revenue. It cannot be negative.
    • currency

      @NonNull public final Currency currency
      Currency in which money from `adRevenue` is represented.
    • adType

      @Nullable public final AdType adType
      Ad type. See possible values in AdType.
    • adNetwork

      @Nullable public final String adNetwork
      Ad network. Maximum length is 100 symbols. If the value exceeds this limit it will be truncated by AppMetrica.
    • adUnitId

      @Nullable public final String adUnitId
      Id of ad unit. Maximum length is 100 symbols. If the value exceeds this limit it will be truncated by AppMetrica.
    • adUnitName

      @Nullable public final String adUnitName
      Name of ad unit. Maximum length is 100 symbols. If the value exceeds this limit it will be truncated by AppMetrica.
    • adPlacementId

      @Nullable public final String adPlacementId
      Id of ad placement. Maximum length is 100 symbols. If the value exceeds this limit it will be truncated by AppMetrica.
    • adPlacementName

      @Nullable public final String adPlacementName
      Name of ad placement. Maximum length is 100 symbols. If the value exceeds this limit it will be truncated by AppMetrica.
    • precision

      @Nullable public final String precision
      Precision. Example: "publisher_defined", "estimated". Maximum length is 100 symbols. If the value exceeds this limit it will be truncated by AppMetrica.
    • payload

      @Nullable public final Map<String,String> payload
      Arbitrary payload: additional info represented as key-value pairs. Maximum size is 30 KB. If the value exceeds this limit it will be truncated by AppMetrica.
  • Method Details