MediationAdConfiguration

public class MediationAdConfiguration extends Object
Known Direct Subclasses

Data used to render mediation ads.

Nested Class Summary

@interface MediationAdConfiguration.TagForChildDirectedTreatment Tag for child directed treatment. 

Constant Summary

int TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE As returned by taggedForChildDirectedTreatment(), indicates that the app should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).
int TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE As returned by taggedForChildDirectedTreatment(), indicates that the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).
int TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED As returned by taggedForChildDirectedTreatment(), indicates that the publisher has not specified whether the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Public Method Summary

String
getBidResponse()
The encrypted data from the third party server containing information the third party SDK needs to render an ad.
Context
getContext()
The context passed by this publisher for this specific request.
String
getMaxAdContentRating()
Returns the maximum ad content rating for this request.
Bundle
getMediationExtras()
Additional parameters passed in by the publisher for this specific request.
Bundle
getServerParameters()
Parameters defined by the publisher in the AdMob or Google Ad Manager UI.
String
getWatermark()
Returns a base64-encoded watermark PNG file that identifies the source of the ad.
boolean
isTestRequest()
Returns true if the publisher is asking for test ads.
int
taggedForChildDirectedTreatment()
Returns whether the publisher indicated that the app is to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA) - //business.ftc.gov/privacy-and-security/childrens-privacy.
int
taggedForUnderAgeTreatment()
Returns whether 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 AdRequest.

Inherited Method Summary

Constants

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE

As returned by taggedForChildDirectedTreatment(), indicates that the app should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Constant Value: 0

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE

As returned by taggedForChildDirectedTreatment(), indicates that the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Constant Value: 1

public static final int TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED

As returned by taggedForChildDirectedTreatment(), indicates that the publisher has not specified whether the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

Constant Value: -1

Public Methods

public String getBidResponse ()

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

public Context getContext ()

The context passed by this publisher for this specific request.

public String getMaxAdContentRating ()

Returns the maximum ad content rating for this request. This content rating is the more conservative rating between the publisher-specified rating in the AdRequest, or the app rating provided by Google's ad server.

public Bundle getMediationExtras ()

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

public Bundle getServerParameters ()

Parameters defined by the publisher in the AdMob or Google Ad Manager UI.

public String getWatermark ()

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

public boolean isTestRequest ()

Returns true if the publisher is asking for test ads. Publishers request test ads by specifying a device ID, but this information is resolved to a boolean for convenience.

public int taggedForChildDirectedTreatment ()

Returns whether the publisher indicated that the app is to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA) - //business.ftc.gov/privacy-and-security/childrens-privacy.

If this method returns TAG_FOR_CHILD_DIRECTED_TREATMENT_TRUE, it indicates that the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

If this method returns TAG_FOR_CHILD_DIRECTED_TREATMENT_FALSE, it indicates that the app should not be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

If this method returns TAG_FOR_CHILD_DIRECTED_TREATMENT_UNSPECIFIED, it indicates that the publisher has not specified whether the app should be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA).

public int taggedForUnderAgeTreatment ()

Returns whether 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 AdRequest. This feature is designed to help facilitate compliance with the General Data Protection Regulation (GDPR).