com.google.android.gms.ads
Stay organized with collections
Save and categorize content based on your preferences.
Contains classes for Google Mobile Ads.
Annotations
Interfaces
Classes
Enums
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 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["This package provides classes for integrating Google Mobile Ads into your Android application."],["It includes classes for ad requests, ad loading, displaying ads (like banners), handling ad events, and controlling video playback in ads."],["Developers can use these classes to request and display various ad formats, manage ad lifecycles, and access ad information like size, value, and errors."],["There are also tools for ad mediation, configuration, and accessing information about the Google Mobile Ads SDK itself."]]],["This document outlines the core components for integrating Google Mobile Ads within an Android application. Key elements include managing ad requests using `AdRequest` and `AdLoader`, displaying banner ads with `AdView`, and handling ad loading callbacks with `AdLoadCallback`. It defines error handling with `AdError` and `LoadAdError`, and offers ad response information via `ResponseInfo`. Configuration for ads can be done with `RequestConfiguration` with options to manage child-directed and age of consent treatment. Listeners such as `OnPaidEventListener` are also detailed.\n"]]