firebase::gma::AdResult

#include <types.h>

Information about the result of an ad operation.

Summary

Constructors and Destructors

AdResult()
Default Constructor.
AdResult(const AdError & ad_error)
Constructor.
~AdResult()
Destructor.

Public functions

ad_error() const
const AdError &
An object representing an error which occurred during an ad operation.
is_successful() const
bool
Returns true if the operation was successful.
response_info() const
const ResponseInfo &
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()

Default Constructor.

AdResult

 AdResult(
  const AdError & ad_error
)

Constructor.

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()

Destructor.