Package com.my.target.mediation
Interface MediationAdConfig
- All Known Subinterfaces:
MediationNativeAdConfig,MediationNativeBannerAdConfig
public interface MediationAdConfig
-
Method Summary
Modifier and TypeMethodDescriptionAdditional data for mediationintgetAge()Ad network can provide value for user age.intAd network can provide value for user gender.Returns privacy object, containing information about user privacy consentAd network can provide some custom params, data in this map will be added as get-params to the Ad requestbooleanbooleanboolean
-
Method Details
-
getPlacementId
- Returns:
- placement/slot ID for current network
-
getPayload
- Returns:
- payload used for Ad bidding
-
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
-
getAge
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
int getGender()Ad network can provide value for user gender.- Returns:
- User gender, default 0
- See Also:
-
isUserConsentSpecified
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
-
isUserConsent
boolean isUserConsent()- Returns:
- true if user agreed to GDPR consent, false if declined. Doesn't matter, if
isUserConsentSpecified()returns false
-
isUserAgeRestricted
boolean isUserAgeRestricted()- Returns:
- true if Ad must be restricted for underage content. False if no restrictions was set
-
getPrivacy
Returns privacy object, containing information about user privacy consent- Returns:
- privacy object for adapter
- See Also:
-
getAdNetworkConfig
Additional data for mediation- Returns:
-