Interface MediationAdConfig

    • Method Detail

      • getPlacementId

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

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

        @NonNull
        java.util.Map<java.lang.String,​java.lang.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:
        CustomParams.Gender
      • 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:
        MyTargetPrivacy
      • getAdNetworkConfig

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