Documentation Index
Fetch the complete documentation index at: https://mintlify.com/admob-plus/admob-plus/llms.txt
Use this file to discover all available pages before exploring further.
Overview
AdMob Plus provides targeting options to ensure appropriate ads are shown to your users based on content ratings, age, and other factors. These settings help you comply with regulations and improve ad relevance.Configuration Options
Targeting options can be set globally viaconfigure() or per-request when creating ads. Global configuration affects all subsequent ad requests.
RequestConfig Interface
TheRequestConfig interface defines targeting options:
Max Ad Content Rating
Set the maximum ad content rating for your app to control the maturity level of ads shown.Rating Values
Maximum ad content rating:
'G'- General audiences (suitable for all ages, including families)'PG'- Parental guidance suggested (suitable for most audiences)'T'- Teen (suitable for ages 13 and older)'MA'- Mature audiences only (suitable for ages 17 and older)''- Unspecified (default, no content rating filter)
Usage
Examples by App Type
Content ratings follow industry standards similar to movie/TV ratings (MPAA, TV Parental Guidelines).
Child-Directed Treatment
Indicate whether your app’s content is directed at children under 13 (COPPA compliance).Configuration
Tag for child-directed treatment:
true- Content is directed at children under 13false- Content is not directed at children under 13null- You have not indicated how you want your content treated (default)
Usage
Under Age of Consent
Indicate whether users are under the age of consent for GDPR purposes (typically 16 in most EU countries).Configuration
Tag for users under age of consent:
true- Users are under the age of consentfalse- Users are not under the age of consentnull- Not specified (default)
Usage
This setting affects how consent is collected and what data can be used for ad personalization under GDPR.
Per-Ad Targeting
While less common, you can set targeting options per ad request by extending the ad options:Additional Ad Options
When creating ads, you can also set these targeting parameters:Content URL
URL string for a webpage whose content matches the app content. Used for keyword targeting.
Keywords
Array of keywords for keyword targeting. Helps serve more relevant ads.
Non-Personalized Ads
Set to
'1' to request non-personalized ads (no behavioral targeting). Used for GDPR compliance when users don’t consent to personalized ads.Complete Examples
Family-Friendly App
Teen App with Keywords
European User Under Age of Consent
Dynamic Configuration Based on User
Server-Side Verification (Rewarded Ads)
For rewarded ads, you can add server-side verification parameters:User identifier for server-side verification callbacks.
Custom data to include in server-side verification callbacks.
Compliance Guidelines
COPPA (Children’s Online Privacy Protection Act)
Set
tagForChildDirectedTreatment: true if your app targets children under 13Use
maxAdContentRating: 'G' for child-directed appsEnsure your privacy policy complies with COPPA requirements
GDPR (General Data Protection Regulation)
Set
tagForUnderAgeOfConsent: true for EU users under 16Use
npa: '1' when users haven’t consented to personalized adsImplement proper consent flow (see Consent Guide)
Best Practices
When in doubt about which settings to use, consult with legal counsel familiar with advertising regulations.
Testing
Test your targeting configuration:Related
- Configuration - General SDK configuration
- Consent - User consent management for GDPR/CCPA
- Test Ads - Testing ads during development
- AdMob Policy Guidelines