# firebase::gma::ResponseInfo


`#include <types.h>`

Information about an ad response.

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info_1ab8e095948d2c39e1afabbac46eb0447d()` Constructor creates an uninitialized [ResponseInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info). ||

| ### Public functions ||
|---|---|
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info_1a918e04ad4697ac76fc081a6241b79cb3() const ` | `const std::string &` Gets a log friendly string version of this object. |
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info_1abfb8fbd615729ca9c16958c0395eaae2() const ` | `const std::vector< https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info > &` Gets the [AdapterResponseInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info) objects for the ad response. |
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info_1a998498f85c6e6a4229ab675d2c26e1bf() const ` | `const std::string &` A class name that identifies the ad network that returned the ad. |
| `https://developers.google.com/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info_1a46431e0bc8ca9e0c2b8ad7da842c9860() const ` | `const std::string &` Gets the response ID string for the loaded ad. |

## Public functions

### ResponseInfo

```c++
 ResponseInfo()
```
Constructor creates an uninitialized [ResponseInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info).

### ToString

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

### adapter_responses

```c++
const std::vector< AdapterResponseInfo > & adapter_responses() const 
```
Gets the [AdapterResponseInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info) objects for the ad response.

<br />

| Details ||
|---|---|
| **Returns** | a vector of [AdapterResponseInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info) objects containing metadata for each adapter included in the ad response. |

### mediation_adapter_class_name

```c++
const std::string & mediation_adapter_class_name() const 
```
A class name that identifies the ad network that returned the ad.

Returns an empty string if the ad failed to load.

### response_id

```c++
const std::string & response_id() const 
```
Gets the response ID string for the loaded ad.

Returns an empty string if the ad fails to load.