com.google.android.gms.ads
Contains classes for Google Mobile Ads.
Annotations
AdInspectorError.AdInspectorErrorCode | Constants supported by |
AdValue.PrecisionType | Allowed constants for |
MediaAspectRatio | Media aspect ratio. |
RequestConfiguration.MaxAdContentRating | Allowed constants for |
RequestConfiguration.TagForChildDirectedTreatment | Allowed constants for |
RequestConfiguration.TagForUnderAgeOfConsent | Allowed constants for |
Interfaces
MediaContent | Provides media content information. |
MuteThisAdListener | A listener that can be used to receive events when an ad is muted. |
MuteThisAdReason | An object used to represent the Mute This Ad reason. |
OnAdInspectorClosedListener | Interface definition for a callback to be invoked when the ad inspector UI closes. |
OnPaidEventListener | Interface definition for a callback to be invoked when an ad is estimated to have earned money. |
OnUserEarnedRewardListener | Interface definition for a callback to be invoked when the user earned a reward. |
Classes
AbstractAdRequestBuilder | A base builder class to help construct ad requests. |
AdError | Error information about why an ad operation failed. |
AdInspectorError | Error information about why the ad inspector failed. |
AdListener | A listener for receiving notifications during the lifecycle of an ad. |
AdLoadCallback | Callback to be invoked when an ad finishes loading. |
AdLoader | An object for requesting ads. |
AdLoader.Builder | Builder for a |
AdRequest | An |
AdRequest.Builder | Builds an |
AdSize | The size of a banner ad. |
AdValue | The monetary value earned from an ad. |
AdView | The |
AdapterResponseInfo | Response information for an individual ad network in an ad response. |
BaseAdView | The base ad |
FullScreenContentCallback | Callback to be invoked when ads show and dismiss full screen content, such as a fullscreen ad experience or an in-app browser. |
LoadAdError | Error information about why an ad load operation failed. |
MediationUtils | Utility methods for mediation adapters. |
MobileAds | Class contains logic that applies to the Google Mobile Ads SDK as a whole. |
RequestConfiguration | Global configuration that will be used for every |
RequestConfiguration.Builder | Builder for |
ResponseInfo | Information about an ad response. |
VersionInfo | Version info for Google Mobile Ads SDK. |
VideoController | An object that provides playback control for video ads. |
VideoController.VideoLifecycleCallbacks | Callback for receiving updates on video ad lifecycle events. |
VideoOptions | Options for controlling video playback in supported ad formats (e.g. Native Express). |
VideoOptions.Builder | Builder for |
Enums
AdFormat | Format of the ad being requested. |
RequestConfiguration.PublisherPrivacyPersonalizationState | Publisher privacy treatment personalization states. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.