Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prebid Mobile: Add warning for GAM integration on iOS. #3482

Merged
merged 1 commit into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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