-
public final class CloudXRevenueData.BuilderBuilder for CloudXRevenueData.
platform is the mediation that reported the impression, revenue the raw revenue value it reported (for AdMob,
AdValue.getValueMicros()), and adFormat the ad format string (e.g. "banner", "interstitial", "rewarded").
-
-
Constructor Summary
Constructors Constructor Description CloudXRevenueData.Builder(CloudXRevenuePlatform platform, Long revenue, String adFormat)
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>currencyCode(String currencyCode)Sets the ISO 4217 currencyCode of revenue. final <ERROR CLASS>precision(CloudXRevenuePrecision precision)Sets the precision of the reported revenue. final <ERROR CLASS>networkName(String networkName)Sets the winning ad network name. final <ERROR CLASS>adUnitId(String adUnitId)Sets the mediation-platform ad unit id. final <ERROR CLASS>thirdPartyAdPlacementId(String thirdPartyAdPlacementId)Sets the network-side ad unit or placement id. final <ERROR CLASS>creativeId(String creativeId)Sets the creative id from the ad network. final <ERROR CLASS>networkPlacement(String networkPlacement)Sets the network placement identifier. final <ERROR CLASS>countryCode(String countryCode)Sets the user's country (ISO 3166-1 alpha-2). final <ERROR CLASS>userSegment(String userSegment)Sets the user segment string. final CloudXRevenueDatabuild()Builds the CloudXRevenueData instance. -
-
Constructor Detail
-
CloudXRevenueData.Builder
CloudXRevenueData.Builder(CloudXRevenuePlatform platform, Long revenue, String adFormat)
-
-
Method Detail
-
currencyCode
final <ERROR CLASS> currencyCode(String currencyCode)
Sets the ISO 4217 currencyCode of revenue.
-
precision
final <ERROR CLASS> precision(CloudXRevenuePrecision precision)
Sets the precision of the reported revenue.
-
networkName
final <ERROR CLASS> networkName(String networkName)
Sets the winning ad network name.
-
thirdPartyAdPlacementId
final <ERROR CLASS> thirdPartyAdPlacementId(String thirdPartyAdPlacementId)
Sets the network-side ad unit or placement id.
-
creativeId
final <ERROR CLASS> creativeId(String creativeId)
Sets the creative id from the ad network.
-
networkPlacement
final <ERROR CLASS> networkPlacement(String networkPlacement)
Sets the network placement identifier.
-
countryCode
final <ERROR CLASS> countryCode(String countryCode)
Sets the user's country (ISO 3166-1 alpha-2).
-
userSegment
final <ERROR CLASS> userSegment(String userSegment)
Sets the user segment string.
-
build
final CloudXRevenueData build()
Builds the CloudXRevenueData instance.
-
-
-
-