TargetingStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
This guide explains how to provide targeting information to an ad request.
GADRequestConfigurationis used to collect targeting information that applies globally to all ad requests.
Specific settings withinGADRequestConfigurationinclude options for child-directed treatment, users under the age of consent (TFUA), maximum ad content rating, and publisher privacy treatment (PPT).
TheGADRequestobject is used to collect targeting information for a single ad request, including adding network extras and specifying a content URL.
GADRequestConfigurationis an object that collects targeting information to be applied globally through
theGADMobileAdsshared instance. It can be accessed with the following code:
To ensure that all ad requests apply the request configuration changes, set
the request configuration before youInitializeGoogle Mobile Ads SDK.
Set the age treatment
To help you manage your compliance with applicable privacy regulations related
to children and teens,Google Mobile Ads SDKprovides an age treatment setting. The
age treatment setting lets you indicate whetherGoogle Mobile Ads SDKshould apply
specific ad serving protections for children or teens. When using the setting,Google Mobile Ads SDKincludes atfatparameter in ad requests. Consult your legal
counsel to determine the applicable age treatment for your users based on your
legal and regulatory obligations.
// Indicates that ad requests should have child age treatment.GADMobileAds.sharedInstance.requestConfiguration.ageRestrictedTreatment=GADAgeRestrictedTreatmentChild;
// Indicates that ad requests should have teen age treatment.GADMobileAds.sharedInstance.requestConfiguration.ageRestrictedTreatment=GADAgeRestrictedTreatmentTeen;
// Indicates that ad requests should have unspecified age treatment.GADMobileAds.sharedInstance.requestConfiguration.ageRestrictedTreatment=GADAgeRestrictedTreatmentUnspecified;
As an app developer, you can indicate whether you want Google to treat your
content as child-directed when you make an ad request. When you indicate that
you want Google to treat your content as child-directed, Google takes steps
to disable IBA and remarketing ads on that ad request. The setting options are
as follows:
SettagForChildDirectedTreatmenttotrueto indicate that you want your
content treated as child-directed for purposes of COPPA. This prevents the
transmission of the Advertising Identifier, IDFA.
SettagForChildDirectedTreatmenttofalseto indicate that you don't want
your content treated as child-directed for purposes of COPPA.
Don't settagForChildDirectedTreatmentif you don't want to indicate how
you would like your content treated with respect to COPPA.
The following example indicates that you want your content to be treated as
child-directed for purposes of COPPA:
By setting this tag, you certify that this notification is accurate and you are
authorized to act on behalf of the owner of the app. You understand that abuse
of this setting may result in termination of your Google Account.
Users under the age of consent
You can mark your ad requests to receive treatment for users in the
European Economic Area (EEA) under the age of consent. This feature is
designed to help facilitate compliance with theGeneral
Data Protection Regulation (GDPR). Note that you may have other legal
obligations under GDPR. Review European Union guidance and consult with
your own legal counsel. Note that Google's tools are designed to facilitate
compliance and don't relieve any particular publisher of its obligations under
the law.Learn more about how the GDPR affects
publishers.
When using this feature, a Tag For Users under the Age of Consent in
Europe (TFUA) parameter will be included in all future ad requests.
This parameter disables personalized advertising, including remarketing, for
that specific ad request. It also disables requests to third-party ad vendors,
such as ad measurement pixels and third-party ad servers.
The setting can be used with all versions ofGoogle Mobile Ads SDKby
setting thetagForUnderAgeOfConsentproperty on theGADMobileAds.requestConfigurationobject and passing intrue.
SettagForUnderAgeOfConsenttotrueto indicate that you want ad
requests to be handled in a manner suitable for users under the age of
consent. This also prevents the transmission of the Advertising
Identifier, IDFA.
Not settingtagForUnderAgeOfConsentindicates that you don't want ad
requests to be handled in a manner suitable for users under the age of
consent.
The following example indicates that you want TFUA included in your ad request:
The tags to enable thechild-directed settingandtagForUnderAgeOfConsentshouldn't both simultaneously be set totrue.
If they are, the child-directed setting takes precedence.
Ad content filtering
Apps can set a maximum ad content rating for all ad requests using themaxAdContentRatingproperty ofGADRequestConfiguration. This setting applies
to all future ad requests for the remainder of the session. The possible values
for this property are based ondigital content label
classifications, and should be one
of the following constants:
GADMaxAdContentRatingGeneral
GADMaxAdContentRatingParentalGuidance
GADMaxAdContentRatingTeen
GADMaxAdContentRatingMatureAudience
The following code configures all ad requests to specify that ad content
returned should correspond to a Digital Content Label designation no higher thanGADMaxAdContentRatingGeneral.
ThePublisher Privacy Treatment(PPT) API is an optional tool that lets apps indicate whether to turn off ads
personalization for all ad requests using thepublisherPrivacyPersonalizationStateproperty ofGADRequestConfiguration. When using this feature, a publisher
privacy treatment (PPT) parameter is included in all future ad requests for the
remainder of the session.
By default, ad requests to Google are served personalized ads. The following
code turns off ads personalization for all ad requests:
What targeting gets used when an ad automatically refreshes?
On ad refresh, the previously specifiedGADRequestobject is used for
targeting again.
To set new targeting, explicitly callloadRequestonGADBannerViewwith a newGADRequestobject.
How do I pass extra targeting parameters to mediation networks?
SeeMediationto find out how to send targeting to
mediation networks.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-29 UTC."],[],["Ad targeting involves configuring `GADRequestConfiguration` to apply settings globally. Key actions include setting `tagForChildDirectedTreatment` for COPPA compliance and `tagForUnderAgeOfConsent` for GDPR, both disabling personalized ads and IDFA transmission. The `maxAdContentRating` property filters ad content, while `publisherPrivacyPersonalizationState` turns off ad personalization. Apps can also specify the content URL for keyword targeting within `GADRequest`. On refresh, `GADRequest` object targeting is reused.\n"]]