GoogleMobileAds.Api.RequestConfiguration.Builder

Summary

Constructors and Destructors

Builder()

Public functions

SetMaxAdContentRating(MaxAdContentRating maxAdContentRating)
Sets the maximum ad content rating.
SetSameAppKeyEnabled(bool enabled)
Controls whether the Google Mobile Ads SDK Same App Key is enabled.
SetTagForChildDirectedTreatment(TagForChildDirectedTreatment? tagForChildDirectedTreatment)
This method allows you to specify whether you would like your app to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA)
SetTagForUnderAgeOfConsent(TagForUnderAgeOfConsent? tagForUnderAgeOfConsent)
Indicates the publisher specified that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent.
SetTestDeviceIds(List< string > testDeviceIds)
The test device IDs corresponding to test device that will always request test ads.
build()

Public functions

Builder

 Builder()

SetMaxAdContentRating

Builder SetMaxAdContentRating(
  MaxAdContentRating maxAdContentRating
)

Sets the maximum ad content rating.

All Google ads will have this content rating or lower.

SetSameAppKeyEnabled

Builder SetSameAppKeyEnabled(
  bool enabled
)

Controls whether the Google Mobile Ads SDK Same App Key is enabled.

The value set persists across app sessions. The key is enabled by default.

SetTagForChildDirectedTreatment

Builder SetTagForChildDirectedTreatment(
  TagForChildDirectedTreatment? tagForChildDirectedTreatment
)

This method allows you to specify whether you would like your app to be treated as child-directed for purposes of the Children’s Online Privacy Protection Act (COPPA)

.

SetTagForUnderAgeOfConsent

Builder SetTagForUnderAgeOfConsent(
  TagForUnderAgeOfConsent? tagForUnderAgeOfConsent
)

Indicates the publisher specified that the ad request should receive treatment for users in the European Economic Area (EEA) under the age of consent.

SetTestDeviceIds

Builder SetTestDeviceIds(
  List< string > testDeviceIds
)

The test device IDs corresponding to test device that will always request test ads.

Returns an empty list if test device IDs were not previously set.

build

RequestConfiguration build()