Interface MediationAdConfig
-
- All Implemented Interfaces:
public interface MediationAdConfig
-
-
Method Summary
Modifier and Type Method Description abstract AdNetworkConfiggetAdNetworkConfig()Additional data for mediation abstract intgetAge()Ad network can provide value for user age. abstract intgetGender()Ad network can provide value for user gender. abstract StringgetPayload()abstract StringgetPlacementId()abstract MyTargetPrivacygetPrivacy()Returns privacy object, containing information about user privacy consent abstract Map<String, String>getServerParams()Ad network can provide some custom params, data in this map will be added as get-params to the Ad request abstract booleanisUserAgeRestricted()abstract booleanisUserConsent()abstract booleanisUserConsentSpecified()-
-
Method Detail
-
getAdNetworkConfig
@Nullable() abstract AdNetworkConfig getAdNetworkConfig()
Additional data for mediation
-
getAge
abstract int getAge()
Ad network can provide value for user age. If 0 returns, it will not be added to the Ad request
- Returns:
User age, default 0
-
getGender
abstract int getGender()
Ad network can provide value for user gender.
- Returns:
User gender, default 0
-
getPayload
@Nullable() abstract String getPayload()
- Returns:
payload used for Ad bidding
-
getPlacementId
@NonNull() abstract String getPlacementId()
- Returns:
placement/slot ID for current network
-
getPrivacy
@NonNull() abstract MyTargetPrivacy getPrivacy()
Returns privacy object, containing information about user privacy consent
- Returns:
privacy object for adapter
-
getServerParams
@NonNull() abstract Map<String, String> getServerParams()
Ad network can provide some custom params, data in this map will be added as get-params to the Ad request
- Returns:
custom server parameters key-value map
-
isUserAgeRestricted
abstract boolean isUserAgeRestricted()
- Returns:
true if Ad must be restricted for underage content. False if no restrictions was set
-
isUserConsent
abstract boolean isUserConsent()
- Returns:
true if user agreed to GDPR consent, false if declined. Doesn't matter, if MediationNativeAdConfig.isUserConsentSpecified() returns false
-
isUserConsentSpecified
abstract boolean isUserConsentSpecified()
- Returns:
true if user was asked about GDPR consent, false if user never asked or if no applicable, eg. GDPR doesn't work in current country
-
-
-
-