Stay organized with collections Save and categorize content based on your preferences.
Google Mobile Ads C++ API Reference
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-08-20 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 2025-08-20 UTC."],[[["\u003cp\u003eThis documentation provides a reference for the Google Mobile Ads C++ API, enabling developers to integrate ads into their C++ applications.\u003c/p\u003e\n"],["\u003cp\u003eIt outlines key classes and functionalities for displaying various ad formats like banner, interstitial, and rewarded ads within the firebase::gma namespace.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find details on ad request configurations, ad events, error handling, and user messaging platform (UMP) for consent management through the API reference.\u003c/p\u003e\n"],["\u003cp\u003eThe firebase namespace provides core functionalities including the App and Future classes, foundational for interacting with Firebase services.\u003c/p\u003e\n"],["\u003cp\u003eThe firebase::gma::ump namespace specifically focuses on consent information and functionalities related to the User Messaging Platform (UMP) SDK.\u003c/p\u003e\n"]]],["The Google Mobile Ads C++ API provides classes and structs for managing ads within applications. Key actions include loading and displaying ads via `AdView`, `InterstitialAd`, and `RewardedAd`. Developers can set targeting information with `AdRequest`, receive notifications via listeners like `AdListener` and `FullScreenContentListener`, and handle ad results with `AdResult` and `AdError`. The API also supports mediation, with classes like `AdapterInitializationStatus` and `AdapterResponseInfo`, alongside managing user consent with `ConsentInfo` and related structures.\n"],null,[]]