Stay organized with collections
Save and categorize content based on your preferences.
firebase::gma::ResponseInfo
#include <types.h>
Information about an ad response.
Summary
Public functions
|
ToString() const
|
const std::string &
Gets a log friendly string version of this object.
|
adapter_responses() const
|
|
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
ResponseInfo()
ToString
const std::string & ToString() const
Gets a log friendly string version of this object.
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
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.
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."],[[["\u003cp\u003e\u003ccode\u003efirebase::gma::ResponseInfo\u003c/code\u003e provides information about an ad response, including details like the ad network and adapter responses.\u003c/p\u003e\n"],["\u003cp\u003eIt includes functions to access adapter response information, the ad network's class name, and the response ID.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eToString()\u003c/code\u003e function provides a log-friendly string representation of the \u003ccode\u003eResponseInfo\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve a vector of \u003ccode\u003eAdapterResponseInfo\u003c/code\u003e objects to get metadata for each adapter involved in the ad response.\u003c/p\u003e\n"],["\u003cp\u003eThe response ID and mediation adapter class name can be accessed, but they may be empty if the ad load failed.\u003c/p\u003e\n"]]],["`ResponseInfo` provides data about an ad response. It can be initialized with a constructor. Key actions include retrieving information via public functions: `ToString` gets a log-friendly string, `adapter_responses` retrieves `AdapterResponseInfo` objects, `mediation_adapter_class_name` identifies the ad network, and `response_id` fetches the loaded ad's response ID. The ad network and response ID functions return empty strings if ad loading fails.\n"],null,["# firebase::gma::ResponseInfo Class Reference\n\nfirebase::gma::ResponseInfo\n===========================\n\n\n`#include \u003ctypes.h\u003e`\n\nInformation about an ad response.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ResponseInfo](#classfirebase_1_1gma_1_1_response_info_1ab8e095948d2c39e1afabbac46eb0447d)`()` Constructor creates an uninitialized [ResponseInfo](/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info). ||\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ToString](#classfirebase_1_1gma_1_1_response_info_1a918e04ad4697ac76fc081a6241b79cb3)`() const ` | `const std::string &` Gets a log friendly string version of this object. |\n| [adapter_responses](#classfirebase_1_1gma_1_1_response_info_1abfb8fbd615729ca9c16958c0395eaae2)`() const ` | `const std::vector\u003c `[AdapterResponseInfo](/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info)` \u003e &` Gets the [AdapterResponseInfo](/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info) objects for the ad response. |\n| [mediation_adapter_class_name](#classfirebase_1_1gma_1_1_response_info_1a998498f85c6e6a4229ab675d2c26e1bf)`() const ` | `const std::string &` A class name that identifies the ad network that returned the ad. |\n| [response_id](#classfirebase_1_1gma_1_1_response_info_1a46431e0bc8ca9e0c2b8ad7da842c9860)`() const ` | `const std::string &` Gets the response ID string for the loaded ad. |\n\nPublic functions\n----------------\n\n### ResponseInfo\n\n```c++\n ResponseInfo()\n``` \nConstructor creates an uninitialized [ResponseInfo](/admob/cpp/reference/class/firebase/gma/response-info#classfirebase_1_1gma_1_1_response_info). \n\n### ToString\n\n```c++\nconst std::string & ToString() const \n``` \nGets a log friendly string version of this object. \n\n### adapter_responses\n\n```c++\nconst std::vector\u003c AdapterResponseInfo \u003e & adapter_responses() const \n``` \nGets the [AdapterResponseInfo](/admob/cpp/reference/class/firebase/gma/adapter-response-info#classfirebase_1_1gma_1_1_adapter_response_info) objects for the ad response.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | a vector of [AdapterResponseInfo](/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. |\n\n### mediation_adapter_class_name\n\n```c++\nconst std::string & mediation_adapter_class_name() const \n``` \nA class name that identifies the ad network that returned the ad.\n\nReturns an empty string if the ad failed to load. \n\n### response_id\n\n```c++\nconst std::string & response_id() const \n``` \nGets the response ID string for the loaded ad.\n\nReturns an empty string if the ad fails to load."]]