Google Mobile Ads Unity Plugin Reference
Reference docs for the Google Mobile Ads Unity Plugin.
Classes
|
AdapterResponseInfo
|
Response information for an individual ad network in an ad response. |
AdapterStatus
|
An immutable snapshot of a mediation adapter's initialization status. |
AdError
|
Error information about why an ad operation failed. |
AdInspectorError
|
Error information about why the ad inspector failed. |
AdRequest
|
An AdRequest contains targeting information used to fetch an ad. |
AdSize
|
The size of a banner ad. |
AdValue
|
The monetary value earned from an ad. |
ApplicationPreferences
|
Interface for accessing and modifying application preference data (SharedPreferences on Android and NSUserDefaults on iOS). |
AppOpenAd
|
App open ads are used to display ads when users launch your app. |
AppStateEventNotifier
|
Notifies changes in app foreground/background. |
BannerView
|
Banner views occupy a spot within an app's layout. |
InitializationStatus
|
An immutable snapshot of the Unity plugin's initialization status, categorized by mediation adapter. |
InterstitialAd
|
A full page ad experience at natural transition points, such as a page change or an app launch. |
LoadAdError
|
Error information about why an ad load operation failed. |
MaxAdContentRating
|
The maximum ad content rating. |
MobileAds
|
Contains logic that applies to the Google Mobile Ads SDK as a whole. |
MobileAds.Utils
|
Contains methods for returning the device scale and safe width. |
NativeAdOptions
|
Ad options for configuring the view of native ads. |
NativeOverlayAd
|
Native Overlay ads use the Native ad format to show overlays on top of the application. |
NativeTemplateId
|
Defines ID constants for templates to render native ads. |
NativeTemplateStyle
|
Style options for native templates. |
NativeTemplateTextStyle
|
Text style options for native templates. |
PreloadConfiguration
|
Configuration for preloading ads. |
RequestConfiguration
|
Global configuration used for every AdRequest. |
ResponseInfo
|
Information about an ad response. |
Reward
|
Describes a reward credited to a user for interacting with rewarded ads. |
RewardedAd
|
Rewarded ads reward users with in-app items for interacting with video ads, playable ads, or surveys. |
RewardedInterstitialAd
|
Rewarded interstitial ads can serve without requiring the user to opt-in to viewing. |
ServerSideVerificationOptions
|
Options for rewarded ad types server-side verification callbacks. |
VideoOptions
|
Options for controlling video playback in supported ad formats. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-02 UTC.
[null,null,["Last updated 2025-05-02 UTC."],[[["This webpage provides reference documentation for the Google Mobile Ads Unity Plugin, focusing on classes and namespaces."],["It covers core functionalities like ad requests, ad formats (banner, interstitial, rewarded), and initialization status."],["The documentation details classes for AdMob and Ad Manager, including features specific to each platform."],["It includes information about User Messaging Platform (UMP) for managing user consent, and mediation for integrating ad networks."],["Developers can find details about adapter responses, error handling, and application preferences within the reference."]]],["This document outlines the Google Mobile Ads Unity Plugin, detailing classes for ad management and user consent. Key actions include defining `AdRequest` and `AdManagerAdRequest` for ad targeting, handling `BannerView`, `InterstitialAd`, and `RewardedAd` for various ad formats. Error handling is addressed with classes like `AdError` and `LoadAdError`. User consent is managed using `ConsentInformation`, `ConsentForm`, and related classes. There are configurations for native, rewarded and video ads, along with server side verification.\n"]]