From eaef86d8486866d8f5f65a335f409d1499d55161 Mon Sep 17 00:00:00 2001 From: Yuriy Velichko Date: Wed, 5 Jan 2022 22:45:11 +0200 Subject: [PATCH] add warning for GAM integration on iOS. (#3482) Co-authored-by: Yuriy Velichko --- prebid-mobile/modules/rendering/ios-sdk-Integration.md | 6 +++--- .../modules/rendering/ios-sdk-integration-gam.md | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/prebid-mobile/modules/rendering/ios-sdk-Integration.md b/prebid-mobile/modules/rendering/ios-sdk-Integration.md index 53bbdc04af..2114faa855 100644 --- a/prebid-mobile/modules/rendering/ios-sdk-Integration.md +++ b/prebid-mobile/modules/rendering/ios-sdk-Integration.md @@ -34,17 +34,17 @@ pod 'PrebidMobile/MoPubAdapters' The rendering API is introduced as a beta release. In order to integrate it you have to set the beta version explisitly: ``` -pod 'PrebidMobile', '1.13.0-beta1' +pod 'PrebidMobile', '1.13.0-beta2' ``` If you need to integrate Prebid with GAM or MoPub add these pods respectively ``` # + Google Ad Manager (optional) -pod 'PrebidMobileGAMEventHandlers', '1.13.0-beta1' +pod 'PrebidMobileGAMEventHandlers', '1.13.0-beta2' # + MoPub (optional) -pod 'PrebidMobileMoPubAdapters', '1.13.0-beta1' +pod 'PrebidMobileMoPubAdapters', '1.13.0-beta2' ``` diff --git a/prebid-mobile/modules/rendering/ios-sdk-integration-gam.md b/prebid-mobile/modules/rendering/ios-sdk-integration-gam.md index b3074df0fa..156ac3dc14 100644 --- a/prebid-mobile/modules/rendering/ios-sdk-integration-gam.md +++ b/prebid-mobile/modules/rendering/ios-sdk-integration-gam.md @@ -10,6 +10,16 @@ sidebarType: 2 The integration of Prebid Rendering API with Google Ad Manager (GAM) assumes that publisher has an account on GAM and has already integrated the Google Mobile Ads SDK (GMA SDK) into the app project. If you do not have GMA SDK in the app yet, refer the the [Google Integration Documentation](https://developers.google.com/ad-manager/mobile-ads-sdk/ios/quick-start). + +{: .alert.alert-warning :} +**Warning:** GMA SDK is a closed library that sometimes works in an unexpected way. The `GADMobileAds.sharedInstance().start()` should be called in all bundles where it is used. Otherwise, GMA SDK won't load the ads with error: `adView:didFailToReceiveAdWithError: SDK tried to perform a networking task before being initialized.` + +To avoid the error add the following line to your app right after initialization of GMA SDK: + +``` +GAMUtils.shared.initializeGAM() +``` + ## GAM Integration Overview