# firebase::gma::ResponseInfo Class Reference

# firebase::gma::ResponseInfo


`#include <types.h>`

Information about an ad response.

## Summary

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

| ### Public functions ||
|---|---|
| `ToString() const ` | `const std::string &` Gets a log friendly string version of this object. |
| `adapter_responses() const ` | `const std::vector< AdapterResponseInfo > &` Gets the [AdapterResponseInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info.md.txt#classfirebase_1_1gma_1_1_adapter_response_info) objects for the ad response. |
| `mediation_adapter_class_name() const ` | `const std::string &` A class name that identifies the ad network that returned the ad. |
| `response_id() 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.md.txt#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.md.txt#classfirebase_1_1gma_1_1_adapter_response_info) objects for the ad response.


| Details ||
|---|---|
| **Returns** | a vector of [AdapterResponseInfo](https://developers.google.com/admob/cpp/reference/class/firebase/gma/adapter-response-info.md.txt#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.