Skip to main content

Google Mobile Ads (GMA) Instructions

caution

Please Note GMA SDK integration support with Outbrain SDK is available starting from SDK version 5.4.0

Intro

Google Mobile Ads (GMA) is Google's industry-leading ad platform that enables publishers to seamlessly integrate high-quality demand from Google's vast network of advertisers.

By integrating GMA with the Outbrain SDK, our publishers can unlock new revenue opportunities by accessing premium programmatic demand, increasing competition for their inventory, and optimizing ad performance within the Outbrain widget.

This integration enhances monetization by introducing a broader range of advertisers bidding on placements, possibly leading to higher eCPMs and improved fill rates. Additionally, GMA's advanced ad serving technology.

SDK Integration High Level

Integrating Google Mobile Ads (GMA) SDK via the Outbrain SDK is simple and does not introduce any direct dependency between the two. Instead of coupling Outbrain SDK with GMA SDK, we've designed an adapter file, GoogleBannerView.swift, which serves as an intermediary. This file is placed within the app project and acts as a bridge, handling all interactions with GMA.

Since all calls to GMA happen within GoogleBannerView.swift, the app itself is responsible for integrating the GMA SDK, while the Outbrain SDK remains completely independent. This ensures that Outbrain can continue operating without any dependency on GMA, providing maximum flexibility for publishers while enabling seamless access to Google’s premium ad demand.

This approach keeps your project modular, maintainable, and ensures that any updates to GMA SDK do not impact the Outbrain SDK directly.

Integration Guidelines

Step 1

Integrate Outbrain SDK into your project by following the instructions in Outbrain Developers Site

Step 2

Integrate Google Mobile Ads SDK (GMA) by following the instructions in the Getting Started page.

caution

Make sure to update your project Info.plist according to "Update your Info.plist" instructions

Step 3

Add a single Swift file called GoogleBannerView.swift to your app project.

Please download GoogleBannerView.swift - and add it "as is" to the project.

Step 4

Right before calling Outbrain.initializeOutbrain, please add one line of code:

GoogleBannerView.forceLoad()

For Example:

GoogleBannerView.forceLoad()
Outbrain.initializeOutbrain(withPartnerKey: partnerKey)

Step 5

Build and Run