RequestConfiguration

data class RequestConfiguration(val maxAdContentRating: String?, val publisherPrivacyPersonalizationState: RequestConfiguration.PublisherPrivacyPersonalizationState, val tagForChildDirectedTreatment: Int, val tagForUnderAgeOfConsent: Int, val testDeviceIds: List<String?>?)

Sets the initial configuration of your AdMob instance for Android and iOS

Parameters

maxAdContentRating

The maximum content rating of the ads you wish to display

publisherPrivacyPersonalizationState

The privacy level of the ads

tagForChildDirectedTreatment

Should ads be appropriate for children

tagForUnderAgeOfConsent

Should ads be limited to content for children under the age of consent

testDeviceIds

A List of id String for testing devices

See also

Constructors

Link copied to clipboard
constructor(maxAdContentRating: String?, publisherPrivacyPersonalizationState: RequestConfiguration.PublisherPrivacyPersonalizationState, tagForChildDirectedTreatment: Int, tagForUnderAgeOfConsent: Int, testDeviceIds: List<String?>?)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Enum for the state of publisher privacy personalization.

Functions

Link copied to clipboard
fun RequestConfiguration.toAndroid(): RequestConfiguration