Stay organized with collections
Save and categorize content based on your preferences.
firebase::
gma::
AdResult
#include <types.h>
Information about the result of an ad operation.
Summary
Constructors and Destructors
An object representing an error which occurred during an ad operation.
bool
Returns true if the operation was successful.
For debugging and logging purposes, successfully loaded ads provide a ResponseInfo
object which contains information about the adapter which loaded the ad.
Public functions
AdResult
AdResult
(
const
AdError
&
ad_error
)
ad_error
const
AdError
&
ad_error
()
const
An object representing an error which occurred during an ad operation.
If the AdResult::is_successful()
returned true, then the AdError
object returned via this method will contain no contextual information.
is_successful
bool
is_successful
()
const
Returns true if the operation was successful.
response_info
const
ResponseInfo
&
response_info
()
const
For debugging and logging purposes, successfully loaded ads provide a ResponseInfo
object which contains information about the adapter which loaded the ad.
If the ad failed to load then the object returned from this method will have default values. Information about the error should be retrieved via AdResult::ad_error()
instead.
~AdResult
virtual
~
AdResult
()
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."],[],["`AdResult` provides details about an ad operation's outcome. Key actions include constructing an `AdResult` with or without an `AdError`, and checking the operation's success via `is_successful()`. If successful, `response_info()` offers debugging data about the ad adapter. Conversely, `ad_error()` retrieves an error object if a failure occurred. The default constructor, destructor and a constructor taking an `AdError` are provided. `AdError` will contain no contextual info if operation was successful.\n"]]