com.google.android.gms.ads

Kotlin|Java

Contains classes for Google Mobile Ads.

Annotations

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 aAdLoader.

AdRequest

AnAdRequest contains targeting information used to fetch an ad.

AdRequest.Builder

Builds anAdRequest.

AdSize

The size of a banner ad.

AdValue

The monetary value earned from an ad.

AdView

Theandroid.view.View to display banner ads.

AdapterResponseInfo

Response information for an individual ad network in an ad response.

BaseAdView

The base adandroid.view.View for displaying banner ads.

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 everyAdRequest.

RequestConfiguration.Builder

Builder forRequestConfiguration.

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 forVideoOptions.

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.