firebase::gma

API for Google Mobile Ads with Firebase.

Summary

The GMA API allows you to load and display mobile ads using the Google Mobile Ads SDK. Each ad format has its own header file.

Deprecated. The Google Mobile Ads (GMA) C++ SDK is deprecated as of June 17, 2024 and should not be adopted in projects that don't already use it. It will enter End-of-Maintenance (EoM) on June 17, 2025. Note that versions of the SDK released before the EoM date will continue to function, but no further bug fixes or changes will be released after the EoM date.

Instead of the Google Mobile Ads C++ SDK, consider using the iOS and Android SDKs from AdMob. For support, reach out to the Google Mobile Ads SDK Technical Forum.

Enumerations

AdErrorCode{
  kAdErrorCodeNone,
  kAdErrorCodeUninitialized,
  kAdErrorCodeAlreadyInitialized,
  kAdErrorCodeLoadInProgress,
  kAdErrorCodeInternalError,
  kAdErrorCodeInvalidRequest,
  kAdErrorCodeNetworkError,
  kAdErrorCodeNoFill,
  kAdErrorCodeNoWindowToken,
  kAdErrorCodeAdNetworkClassLoadError,
  kAdErrorCodeServerError,
  kAdErrorCodeOSVersionTooLow,
  kAdErrorCodeTimeout,
  kAdErrorCodeInterstitialAlreadyUsed,
  kAdErrorCodeMediationDataError,
  kAdErrorCodeMediationAdapterError,
  kAdErrorCodeMediationInvalidAdSize,
  kAdErrorCodeInvalidArgument,
  kAdErrorCodeReceivedInvalidResponse,
  kAdErrorCodeRewardedAdAlreadyUsed,
  kAdErrorCodeMediationNoFill,
  kAdErrorCodeAdAlreadyUsed,
  kAdErrorCodeApplicationIdentifierMissing,
  kAdErrorCodeInvalidAdString,
  kAdErrorCodeAppNotInForeground,
  kAdErrorCodeMediationShowError,
  kAdErrorCodeAdNotReady,
  kAdErrorCodeAdTooLarge,
  kAdErrorCodeNotMainThread,
  kAdErrorCodeNotInTestMode,
  kAdErrorCodeInspectorFailedToLoad,
  kAdErrorCodeInsepctorAlreadyOpen,
  kAdErrorCodeImageUrlMalformed,
  kAdErrorCodeUnknown
}
enum
Error codes returned by Future::error().

Typedefs

AdParent typedef
void *
This is a platform specific datatype that is required to create a Google Mobile Ads ad.

Functions

DisableMediationInitialization()
void
Disables mediation adapter initialization on iOS during initialization of the GMA SDK.
DisableSDKCrashReporting()
void
Disables automated SDK crash reporting on iOS.
GetInitializationStatus()
Get the current adapter initialization status.
GetRequestConfiguration()