Stay organized with collections
Save and categorize content based on your preferences.
firebase::gma::AdInspectorClosedListener
This is an abstract class.
#include <types.h>
Listener to be invoked when the Ad Inspector has been closed.
Summary
Public functions
OnAdInspectorClosed
virtual void OnAdInspectorClosed(
const AdResult & ad_result
)=0
Called when the user clicked the ad.
The AdResult contains the status of the operation, including details of the error if one occurred.
~AdInspectorClosedListener
virtual ~AdInspectorClosedListener()
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::AdInspectorClosedListener\u003c/code\u003e is an abstract class that listens for when the Ad Inspector is closed.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a virtual function \u003ccode\u003eOnAdInspectorClosed\u003c/code\u003e which is called when the Ad Inspector is closed, providing an \u003ccode\u003eAdResult\u003c/code\u003e object containing the operation's status.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers need to implement the \u003ccode\u003eOnAdInspectorClosed\u003c/code\u003e function in their derived classes to handle the Ad Inspector closure event.\u003c/p\u003e\n"]]],["The `AdInspectorClosedListener` is an abstract class designed to listen for the closing of the Ad Inspector. Key actions involve implementing the `OnAdInspectorClosed` virtual function. This function is invoked when the Ad Inspector is closed, receiving an `AdResult` object. The `AdResult` indicates the operation's status, including error details. The class also includes a virtual destructor `~AdInspectorClosedListener`. This class's methods are designed to respond to the ad being clicked.\n"],null,["# firebase::gma::AdInspectorClosedListener Class Reference\n\nfirebase::gma::AdInspectorClosedListener\n========================================\n\n\n**This is an abstract class.**\n\n\n`#include \u003ctypes.h\u003e`\n\nListener to be invoked when the Ad Inspector has been closed.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [~AdInspectorClosedListener](#classfirebase_1_1gma_1_1_ad_inspector_closed_listener_1aeadd8f464dadc0fd8f91fc2a504892b5)`()` ||\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|\n| [OnAdInspectorClosed](#classfirebase_1_1gma_1_1_ad_inspector_closed_listener_1aa9129119e0746b281eccc0af86f85c46)`(const `[AdResult](/admob/cpp/reference/class/firebase/gma/ad-result#classfirebase_1_1gma_1_1_ad_result)` & ad_result)=0` | `virtual void` Called when the user clicked the ad. |\n\nPublic functions\n----------------\n\n### OnAdInspectorClosed\n\n```c++\nvirtual void OnAdInspectorClosed(\n const AdResult & ad_result\n)=0\n``` \nCalled when the user clicked the ad.\n\nThe [AdResult](/admob/cpp/reference/class/firebase/gma/ad-result#classfirebase_1_1gma_1_1_ad_result) contains the status of the operation, including details of the error if one occurred. \n\n### \\~AdInspectorClosedListener\n\n```c++\nvirtual ~AdInspectorClosedListener()\n```"]]