Package io.appmetrica.analytics
Class AdRevenue.Builder
java.lang.Object
io.appmetrica.analytics.AdRevenue.Builder
- Enclosing class:
- AdRevenue
Builder class for
AdRevenue
objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
ConstructsAdRevenue
object.withAdNetwork
(String adNetwork) Sets ad network.withAdPlacementId
(String adPlacementId) Sets ad placement id.withAdPlacementName
(String adPlacementName) Sets ad placement name.withAdType
(AdType adType) Sets ad type.withAdUnitId
(String adUnitId) Sets ad unit id.withAdUnitName
(String adUnitName) Sets ad unit name.withPayload
(Map<String, String> payload) Sets payload.withPrecision
(String precision) Sets precision.
-
Method Details
-
withAdType
Sets ad type.- Parameters:
adType
- ad type.- Returns:
- same
AdRevenue.Builder
object. - See Also:
-
withAdNetwork
Sets ad network.- Parameters:
adNetwork
- ad network.- Returns:
- same
AdRevenue.Builder
object. - See Also:
-
withAdUnitId
Sets ad unit id.- Parameters:
adUnitId
- Id of ad unit.- Returns:
- same
AdRevenue.Builder
object. - See Also:
-
withAdUnitName
Sets ad unit name.- Parameters:
adUnitName
- Name of ad unit.- Returns:
- same
AdRevenue.Builder
object. - See Also:
-
withAdPlacementId
Sets ad placement id.- Parameters:
adPlacementId
- Id of ad placement.- Returns:
- same
AdRevenue.Builder
object. - See Also:
-
withAdPlacementName
Sets ad placement name.- Parameters:
adPlacementName
- Name of ad placement.- Returns:
- same
AdRevenue.Builder
object. - See Also:
-
withPrecision
Sets precision.- Parameters:
precision
- Precision- Returns:
- same
AdRevenue.Builder
object. - See Also:
-
withPayload
Sets payload.- Parameters:
payload
- Arbitrary payload: additional info represented as key-value pairs.- Returns:
- same
AdRevenue.Builder
object. - See Also:
-
build
ConstructsAdRevenue
object.- Returns:
- constructed
AdRevenue
object.
-