Interface MediationAdConfig

All Known Subinterfaces:
MediationNativeAdConfig, MediationNativeBannerAdConfig

public interface MediationAdConfig
  • Method Details

    • getPlacementId

      @NonNull String getPlacementId()
      Returns:
      placement/slot ID for current network
    • getPayload

      @Nullable String getPayload()
      Returns:
      payload used for Ad bidding
    • getServerParams

      @NonNull 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
    • 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

      @NonNull MyTargetPrivacy getPrivacy()
      Returns privacy object, containing information about user privacy consent
      Returns:
      privacy object for adapter
      See Also:
    • getAdNetworkConfig

      @Nullable AdNetworkConfig getAdNetworkConfig()
      Additional data for mediation
      Returns: