MediationNativeAdConfiguration

class MediationNativeAdConfiguration : MediationAdConfiguration


Data used to render mediation native ads.

Summary

Public constructors

MediationNativeAdConfiguration(
    context: Context,
    bidResponse: String,
    serverParameters: Bundle,
    mediationExtras: Bundle,
    isTesting: Boolean,
    location: Location?,
    taggedForChildDirectedTreatment: Int,
    taggedForUnderAgeTreatment: Int,
    maxAdContentRating: String?,
    watermark: String,
    nativeAdOptions: NativeAdOptions?
)

Public properties

open String

The encrypted data from the third party server containing information the third party SDK needs to render an ad.

open Context

The context passed by this publisher for this specific request.

open Boolean

Specifies if publisher is asking for a test ad.

open Location?

Specifies the android provided location for an ad.

open String?

The maximum ad content rating for this request.

open Bundle

Additional parameters passed in by the publisher for this specific request.

NativeAdOptions?

The native ad options used to configure the native ad requests.

open Bundle

Additional parameters defined by the publisher on the mediation server side.

open Int

Indicates that the app is to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

open Int

The publisher indicated that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent, if defined by the @see com.google.android.libraries.ads.mobile.sdk.common.RequestConfiguration.

open String

A base64-encoded watermark PNG file that identifies the source of the ad.

Public constructors

MediationNativeAdConfiguration

MediationNativeAdConfiguration(
    context: Context,
    bidResponse: String,
    serverParameters: Bundle,
    mediationExtras: Bundle,
    isTesting: Boolean,
    location: Location?,
    taggedForChildDirectedTreatment: Int,
    taggedForUnderAgeTreatment: Int,
    maxAdContentRating: String?,
    watermark: String,
    nativeAdOptions: NativeAdOptions?
)

Public properties

bidResponse

open val bidResponseString

The encrypted data from the third party server containing information the third party SDK needs to render an ad.

context

open val contextContext

The context passed by this publisher for this specific request.

isTesting

open val isTestingBoolean

Specifies if publisher is asking for a test ad.

location

open val locationLocation?

Specifies the android provided location for an ad.

maxAdContentRating

open val maxAdContentRatingString?

The maximum ad content rating for this request. This content rating is the more conservative rating between the publisher-specified rating in the @see com.google.android.libraries.ads.mobile.sdk.common.RequestConfiguration, or the app rating provided by Google's ad server.

mediationExtras

open val mediationExtrasBundle

Additional parameters passed in by the publisher for this specific request.

nativeAdOptions

val nativeAdOptionsNativeAdOptions?

The native ad options used to configure the native ad requests.

serverParameters

open val serverParametersBundle

Additional parameters defined by the publisher on the mediation server side.

taggedForChildDirectedTreatment

open val taggedForChildDirectedTreatmentInt

Indicates that the app is to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

taggedForUnderAgeTreatment

open val taggedForUnderAgeTreatmentInt

The publisher indicated that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent, if defined by the @see com.google.android.libraries.ads.mobile.sdk.common.RequestConfiguration. This feature is designed to help facilitate compliance with the General Data Protection Regulation (GDPR).

watermark

open val watermarkString

A base64-encoded watermark PNG file that identifies the source of the ad. Notes: This is for Open Bidding only.