Stay organized with collections
Save and categorize content based on your preferences.
firebase::gma::FullScreenContentListener
#include <types.h>
Listener to be invoked when ads show and dismiss full screen content, such as a fullscreen ad experience or an in-app browser.
Summary
Public functions
OnAdClicked
virtual void OnAdClicked()
Called when the user clicked the ad.
OnAdDismissedFullScreenContent
virtual void OnAdDismissedFullScreenContent()
Called when the ad dismissed full screen content.
OnAdFailedToShowFullScreenContent
virtual void OnAdFailedToShowFullScreenContent(
const AdError & ad_error
)
Called when the ad failed to show full screen content.
Details |
Parameters |
ad_error
|
An object containing detailed information about the error.
|
|
OnAdImpression
virtual void OnAdImpression()
Called when an impression is recorded for an ad.
OnAdShowedFullScreenContent
virtual void OnAdShowedFullScreenContent()
Called when the ad showed the full screen content.
~FullScreenContentListener
virtual ~FullScreenContentListener()
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\u003e\u003ccode\u003efirebase::gma::FullScreenContentListener\u003c/code\u003e is a class that listens for events related to full-screen content displayed by ads, such as full-screen ads and in-app browsers.\u003c/p\u003e\n"],["\u003cp\u003eIt provides virtual functions to handle various ad events like clicking, dismissing, showing, failing to show, and recording impressions.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can implement these functions to control the behavior of their app when interacting with full-screen ad content.\u003c/p\u003e\n"],["\u003cp\u003eThe listener includes functionalities to get information about errors when an ad fails to show full-screen content.\u003c/p\u003e\n"],["\u003cp\u003eThis class helps manage and track user interactions and ad performance within full-screen ad experiences.\u003c/p\u003e\n"]]],["The `FullScreenContentListener` monitors full-screen ad events. Key actions include: `OnAdClicked`, triggered upon user ad clicks; `OnAdDismissedFullScreenContent`, indicating ad dismissal; `OnAdFailedToShowFullScreenContent`, reporting display failures with error details; `OnAdImpression`, recording ad impressions; and `OnAdShowedFullScreenContent`, signaling successful ad display. The destructor, `~FullScreenContentListener`, handles object cleanup. These functions are called virtually.\n"],null,["# firebase::gma::FullScreenContentListener Class Reference\n\nfirebase::gma::FullScreenContentListener\n========================================\n\n\n`#include \u003ctypes.h\u003e`\n\nListener to be invoked when ads show and dismiss full screen content, such as a fullscreen ad experience or an in-app browser.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [~FullScreenContentListener](#classfirebase_1_1gma_1_1_full_screen_content_listener_1a17ee097cfb8baf327bc2165afd9184c4)`()` ||\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|\n| [OnAdClicked](#classfirebase_1_1gma_1_1_full_screen_content_listener_1a168f000bd84a0f9400e43b01860ce804)`()` | `virtual void` Called when the user clicked the ad. |\n| [OnAdDismissedFullScreenContent](#classfirebase_1_1gma_1_1_full_screen_content_listener_1a17da8203476b7316f35ae588bc2663c5)`()` | `virtual void` Called when the ad dismissed full screen content. |\n| [OnAdFailedToShowFullScreenContent](#classfirebase_1_1gma_1_1_full_screen_content_listener_1af5524228ad9f16df0aa7a8cd794beef6)`(const `[AdError](/admob/cpp/reference/class/firebase/gma/ad-error#classfirebase_1_1gma_1_1_ad_error)` & ad_error)` | `virtual void` Called when the ad failed to show full screen content. |\n| [OnAdImpression](#classfirebase_1_1gma_1_1_full_screen_content_listener_1af8dd70af758f246622fdfaec7d7aa6fa)`()` | `virtual void` Called when an impression is recorded for an ad. |\n| [OnAdShowedFullScreenContent](#classfirebase_1_1gma_1_1_full_screen_content_listener_1a4b3cbb3207dd53c46603c25d911346e9)`()` | `virtual void` Called when the ad showed the full screen content. |\n\nPublic functions\n----------------\n\n### OnAdClicked\n\n```c++\nvirtual void OnAdClicked()\n``` \nCalled when the user clicked the ad. \n\n### OnAdDismissedFullScreenContent\n\n```c++\nvirtual void OnAdDismissedFullScreenContent()\n``` \nCalled when the ad dismissed full screen content. \n\n### OnAdFailedToShowFullScreenContent\n\n```c++\nvirtual void OnAdFailedToShowFullScreenContent(\n const AdError & ad_error\n)\n``` \nCalled when the ad failed to show full screen content.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------|------------------------------------------------------------| | `ad_error` | An object containing detailed information about the error. | |\n\n### OnAdImpression\n\n```c++\nvirtual void OnAdImpression()\n``` \nCalled when an impression is recorded for an ad. \n\n### OnAdShowedFullScreenContent\n\n```c++\nvirtual void OnAdShowedFullScreenContent()\n``` \nCalled when the ad showed the full screen content. \n\n### \\~FullScreenContentListener\n\n```c++\nvirtual ~FullScreenContentListener()\n```"]]