TheDocumentation 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.
AdMob class is the main entry point for the AdMob Plus plugin. It provides methods to initialize the SDK, configure global settings, and access all ad format classes.
Properties
Ad Format Classes
The AdMob class exposes all ad format classes as readonly properties:Interstitial Ad format class. See InterstitialAd for details.
Rewarded Ad format class. See RewardedAd for details.
Rewarded Interstitial Ad format class. See RewardedInterstitialAd for details.
Events
Methods
start()
Initializes the AdMob SDK. This method must be called before creating or loading any ads. The method is idempotent - calling it multiple times will return the same promise.The version of the AdMob SDK that was initialized.
Example
configure()
Configures global AdMob settings. This method can be called at any time to update SDK configuration.Parameters
Configuration object for AdMob SDK settings.
Maximum ad content rating for ad requests:
'G'- Content suitable for general audiences, including families'PG'- Content suitable for most audiences with parental guidance'T'- Content suitable for teen and older audiences'MA'- Content suitable only for mature audiences''- Content suitability is unspecified
Tag requests for child-directed treatment:
true- Tag for child-directed treatmentfalse- Tag for non-child-directed treatmentnull- Do not tag
Tag requests for users under the age of consent:
true- Tag for under age of consentfalse- Tag for not under age of consentnull- Do not tag
Array of test device IDs to receive test ads. Use this during development to avoid policy violations.
Whether the app’s audio is muted. Affects ad audio playback.
App volume level (0.0 to 1.0). Affects ad audio playback volume.
Enable publisher first-party ID for improved ad targeting and measurement.
Deprecated. Use
publisherFirstPartyIDEnabled instead.Example
Global Instance
A globaladmob instance is available throughout your application: