Skip to content

Commit

Permalink
add warning for GAM integration on iOS. (#3482)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuriy Velichko <[email protected]>
  • Loading branch information
YuriyVelichkoPI and YuriyVelichkoOpenX authored Jan 5, 2022
1 parent 2a0b199 commit eaef86d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prebid-mobile/modules/rendering/ios-sdk-Integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```


Expand Down
10 changes: 10 additions & 0 deletions prebid-mobile/modules/rendering/ios-sdk-integration-gam.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eaef86d

Please sign in to comment.