Interface MediationAdConfig

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • 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

      • 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