Admob mediation - publisher ID vs Mediation ID

会有一股神秘感。 提交于 2020-01-01 14:22:48

问题


I want to know what is the right paradigm for Admob mediation.
so far, I've got a normal AdView banner.

this is how think it should work:

  1. onFailedToReceiveAd - catch this event which mean admob cannot supply ads.
  2. create new AdView banner with the mediation id and make it VISIBLE

so, is this the best practice?
create two banners. one with the "regular" publisher ID
and the other one, with the mediation ID


回答1:


The correct approach is:

  1. Create a banner with a Mediation ID.
  2. When configuring that mediation placement on admob.com, configure AdMob as one of your ad networks within that mediation placement. If you want AdMob to be requested first every time, use an eCPM ordering and give AdMob the highest eCPM value.

This way, Mediation will always request an AdMob ad first. If it fails, Mediation will automatically try your next network for you. This saves you from having to do this retry logic on your own. onFailedToReceiveAd will only be invoked if all ad networks failed to return an ad.



来源:https://stackoverflow.com/questions/11798450/admob-mediation-publisher-id-vs-mediation-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!