MediationAppOpenAdConfiguration

public final class MediationAppOpenAdConfiguration extends MediationAdConfiguration


Data used to render mediation app open ads.

Summary

Public constructors

MediationAppOpenAdConfiguration(
    @NonNull Context context,
    @NonNull String bidResponse,
    @NonNull Bundle serverParameters,
    @NonNull Bundle mediationExtras,
    boolean isTesting,
    Location location,
    int taggedForChildDirectedTreatment,
    int taggedForUnderAgeTreatment,
    String maxAdContentRating,
    @NonNull String watermark
)

Public methods

@NonNull String

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

@NonNull Context

The context passed by this publisher for this specific request.

Location

Specifies the android provided location for an ad.

String

The maximum ad content rating for this request.

@NonNull Bundle

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

@NonNull Bundle

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

int

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

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.

@NonNull String

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

boolean

Specifies if publisher is asking for a test ad.

Public constructors

MediationAppOpenAdConfiguration

public MediationAppOpenAdConfiguration(
    @NonNull Context context,
    @NonNull String bidResponse,
    @NonNull Bundle serverParameters,
    @NonNull Bundle mediationExtras,
    boolean isTesting,
    Location location,
    int taggedForChildDirectedTreatment,
    int taggedForUnderAgeTreatment,
    String maxAdContentRating,
    @NonNull String watermark
)

Public methods

getBidResponse

public @NonNull String getBidResponse()

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

getContext

public @NonNull Context getContext()

The context passed by this publisher for this specific request.

getLocation

public Location getLocation()

Specifies the android provided location for an ad.

getMaxAdContentRating

public String getMaxAdContentRating()

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.

getMediationExtras

public @NonNull Bundle getMediationExtras()

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

getServerParameters

public @NonNull Bundle getServerParameters()

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

getTaggedForChildDirectedTreatment

public int getTaggedForChildDirectedTreatment()

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

getTaggedForUnderAgeTreatment

public int getTaggedForUnderAgeTreatment()

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).

getWatermark

public @NonNull String getWatermark()

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

isTesting

public boolean isTesting()

Specifies if publisher is asking for a test ad.