GAM Mediation - pubnative/pubnative-hybid-android-sdk GitHub Wiki

To use HyBid SDK directly in Google Ads Manager Mediation you will need to integrate the Google Ads SDK and the Hybid SDK into your app.

Integrate Google Ads Manager SDK

To integrate Google Ads Manager SDK into your app you should follow the instructions in their website.

Integrate HyBid SDK

To integrate the HyBid SDK follow the instruction in the integration page.

You also need to import the Admob Adapters module from the HyBid SDK:

implementation 'net.pubnative:hybid.sdk:3.0.0'
implementation 'net.pubnative:hybid.adapters.admob:3.0.0'

Create a new mobile app

In the Inventory section, create a new mobile app that you would like to monetize:

Share app id for this app with your mobile developer - it would be in the format ca-app-pub-...~....

Create a new ad unit

In the Inventory section, create ad unit with relevant size:

Supported sizes are:

  • 320x50
  • 300x250
  • 320x480

Create a new mobile application tag

In the Ad unit section, create Mobile application tag:

Share the tag details with your mobile developer - it would be in the format /219576711/iOS_320x50_mediation

Create a new company and new ad network

In the Delivery section, go to * Yield Groups and create a new yield group.

For this step, you would need to create first:

New Ad network (e.g. can be called V-test-adnetwork) At this step you might need to create a new Company. You can create AdNetwork -> Choose Other Company -> Enable Mediation:

Create a new yield group

Add a new yield partner:

Choose: Yield Partner -> network from previous step Integration type -> custom event Status -> active Default CPM -> setup CPM to match waterfall position Checkbox Override dynamic CPM Label -> add a name for reporting Class Name -> net.pubnative.hybid.adapters.admob.mediation.HyBidMediationBannerCustomEvent (please refer to the mapping table below) Parameter -> should be obtained from account manager (e.g. { "pn_app_token": "3e98d63843d8437c8d35a05edab557dd","pn_zone_id": "1"}

Custom events:

  • Banner: net.pubnative.hybid.adapters.admob.mediation.HyBidMediationBannerCustomEvent
  • MRect: net.pubnative.hybid.adapters.admob.mediation.HyBidMediationMRectCustomEvent
  • Tablet Banner (Leaderboard): net.pubnative.hybid.adapters.admob.mediation.HyBidMediationLeaderboardCustomEvent
  • Interstitial: net.pubnative.hybid.adapters.admob.mediation.HyBidMediationInterstitialCustomEvent
  • Rewarded ads: net.pubnative.hybid.adapters.admob.mediation.HyBidMediationRewardedVideoCustomEvent

Create a new yield group and target the mobile app and inventory size:

Save yield group:


<- Admob Mediation