# firebase::gma::AdapterResponseInfo


`#include <types.h>`

Response information for an individual ad network contained within a [ResponseInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info) object.

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info_1a00de265543c2c7879b8ec0b5496675d8()` Destructor. ||

| ### Public functions ||
|---|---|
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info_1ad20743e8bc720a9628f9628692ed3baa() const ` | `const std::string &` A log friendly string version of this object. |
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info_1a80a5d5c6cd932044b9c64773909fca5b() const ` | `https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-result#classfirebase_1_1gma_1_1_ad_result` Information about the result including whether an error occurred, and any contextual information about that error. |
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info_1afbdb71d41855a1da87beb02777077298() const ` | `const std::string &` Returns a string representation of a class name that identifies the ad network adapter. |
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info_1a68bb709492801402712672fb79d5a885() const ` | `int64_t` Amount of time the ad network spent loading an ad. |

## Public functions

### ToString

```c++
const std::string & ToString() const 
```
A log friendly string version of this object.

### ad_result

```c++
AdResult ad_result() const 
```
Information about the result including whether an error occurred, and any contextual information about that error.

<br />

| Details ||
|---|---|
| **Returns** | the error that occurred while rendering the ad. If no error occurred then the [AdResult](https://developers.google.com/admob/cpp/reference/class/firebase/gma/ad-result#classfirebase_1_1gma_1_1_ad_result)'s successful method will return true. |

### adapter_class_name

```c++
const std::string & adapter_class_name() const 
```
Returns a string representation of a class name that identifies the ad network adapter.

### latency_in_millis

```c++
int64_t latency_in_millis() const 
```
Amount of time the ad network spent loading an ad.

<br />

| Details ||
|---|---|
| **Returns** | number of milliseconds the network spent loading an ad. This value is 0 if the network did not make a load attempt. |

### \~AdapterResponseInfo

```c++
 ~AdapterResponseInfo()
```
Destructor.