Admob mediation

Hi

I’m trying to make admob mediation work with SDKBOX. I’m new to this so I bet it’s just a stupid setting I’ve forgotten somewhere.

  1. I’ve added chartboost as an ad mediation network in admob.
  2. I’ve set ‘Allow admob to automatically calculate eCPM’ and set default eCPM as $1000 so it should print several ads and then replace value with calculated one.
  3. I’ve imported chartboost (admob was already imported) using sdkbox import chartboost
  4. I’ve even called sdkbox::PluginChartboost::init() in my code.

Still, when I check mediation results in admob, it says that there have been 0 chartboost impressions.

I’ve tested it too using leadbolt with same results.

I’ve after that, added chartboost info in my sdkbox_config.json

Any hint, URL or idea would be highly appreciated.

Regards

So what you need to do I think - Add Admob thru sdkbox.
All other SDK’s attach to project as they are without sdkbox and any ID configurations in project. Check for mediaiton adapters for selected networks on admob site and add them also to project. After this your ready to set in Admbod dashboard ID’s for other mediation networks.

Adapters will do all stuff for you - attaching other ads networks no need to initialize or import any class of mediated networks - adpater will do it automatically.

Admob SDK must be installed. Also, most of all other advertising networks that I want to link to my admob must be installed too (there are a few that are listed as non-SDK on admob mediation page, but most important ones such as chartboost, leadbolt, adcolony, inmobi, vungle… all require SDK installed in our app too).

Problem is that I’m not sure about the reason of not getting any interstitial on my app from other networks. Official admob help site points out after point 8 that:

Be sure to implement the SDKs and adapters for each network you’re using for mediation. You don’t need to do this for networks you’ve specified to use SDK-less mediation.

And also specifies that enabling network optimization (as i’ve done), initial eCPM should be overwritten, so I’ve put there max eCPM to force initial interstitials from selected mediation network (Chartboost help site suggest using high eCPM too).

As you can see, I’ve done a bit of searching but still not sure why it’s not working.

Checking reports on admob says I get chartboost (or leadbolt if testing leadbolt) requests, but 0 impressions. As stated before, I’ve tested both linking all SDKs (sdkbox import admob + sdkbox import chartboost/leadbolt depending on what I want to test) and calling ::init() for each plugin too.

For testing purposes, I’ve added my chartboost/leadbolt parameters inside sdkbox_config.json although it shouldn’t be needed (it’s admob the one who queries the other network, not sdkbox as far as I understand how this works) but no luck either.

@nite, any suggestion on what to check?

Regards

It could be that there is no Ads for that networks in your area - I recommend for each testing network set in their dashboard test ads where possible.

After in admob dashboard set all networks to serve ads only in Gvatemala for example, but network you currently want to test set to server everywhere and set higher ecpm for it manually. Also this change could take 15-30 minutes to have effect on admob side. Also if you do this on Android you should put in manifest activites for each ads network otherwise interstitial will not be able to show itself.

Tested again enabling test mode on chartboost (not sure how to enable it on leadbolt once it’s published). After enabling test mode, waited for more than 1 hour. Tried again to show ads and logcat shown that:

Ads     : Ad opening.
Ads     : Ad opening.
Ads     : Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=Ct75nkTWTWOoez9q2B-zpqpAL-cnapgXR74W6kgEAEAggzeOML2DVpdoCqQIAAAAAgIQuQagDAaoEIE_Q3Ms_TnVRmOMtaw87G742tu-5zffUA58JfXKZN_fCkAYBwAYLgAeB-KkwmAcB0ggFCIJhEAE&num=1&cid=CAASBORogNE&sig=AOD64_1GjP61LIz4ilWmvcyLpTGIuvB7JQ&adurl=http://example.com
Ads     : Instantiating mediation adapter: com.google.ads.mediation.appfireworks.AppfireworksAdapter
Ads     : Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=CWzbbkTWTWOoez9q2B-zpqpAL-cnapgXR74W6kgEAEAggzeOML2DVpdoCqQIAAAAAgIQuQagDAaoEIE_Q3Ms_TnVRmOMtaw87G742tu-5zffUA790ZVKgVrTEkAYBwAYLgAeB-KkwmAcB0ggFCIJhEAE&num=1&cid=CAASBORogNE&sig=AOD64_3FtA_PWbloHHC1EPDt2bnijtMWVQ&adurl=http://example.com
Ads     : Instantiating mediation adapter: com.google.ads.mediation.chartboost.ChartboostAdapter
Ads     : Trying mediation network:
Ads     : Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
Ads     : Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-------------------------\/--------------\/cak=no_cache&cadc=ws&caqid=kDWTWJLoOufFxgLHwYbIBQ"}
DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Ads     : Starting ad request.
Ads     : Use AdRequest.Builder.addTestDevice("--------------------------------------") to get test ads on this device.
cr_Ime  : ImeThread is enabled.
art     : Background partial concurrent mark sweep GC freed 38468(2MB) AllocSpace objects, 45(5MB) LOS objects, 40% free, 17MB/29MB, paused 2.208ms total 149.498ms
cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 6452
Ads     : Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=CGCMDkjWTWP7aEMzWtgeJoLDAA_nJ2qYF0e-FupIBABAIIM3jjC9g1aXaAqkCAAAAAICELkGoAwGqBCBP0PiWSHc_79bN6clq0VjFoskbBOoj40RTgaqUBTFtkJAGAcAGC4AHgfipMJgHAdIIBQiCYRAB&num=1&cid=CAASBORoLBY&sig=AOD64_0zb_J5O8K--ihMzio55Tfia9fBRA&adurl=http://example.com
Ads     : Instantiating mediation adapter: com.google.ads.mediation.appfireworks.AppfireworksAdapter
Ads     : Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=COjpQkjWTWP7aEMzWtgeJoLDAA_nJ2qYF0e-FupIBABAIIM3jjC9g1aXaAqkCAAAAAICELkGoAwGqBCBP0PiWSHc_79bN6clq0VjFoskbBOoj40Rz_LK0PFAulpAGAcAGC4AHgfipMJgHAdIIBQiCYRAB&num=1&cid=CAASBORoLBY&sig=AOD64_3QW0s5zKegTPL5Va2YJrYIwdIKfg&adurl=http://example.com
Ads     : Instantiating mediation adapter: com.google.ads.mediation.chartboost.ChartboostAdapter
Ads     : Trying mediation network:
Ads     : Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
Ads     : Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-------------------------\/--------------\/cak=no_cache&cadc=ws&caqid=kjWTWJGhD-vDxgKU453ICQ"}
DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Ads     : Starting ad request.
Ads     : Use AdRequest.Builder.addTestDevice("--------------------------------------") to get test ads on this device.
cr_Ime  : ImeThread is enabled.
cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 6452
Ads     : Ad closing.
Ads     : Ad closing.
Ads     : Ad finished loading.
DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Ads     : Starting ad request.
Ads     : Use AdRequest.Builder.addTestDevice("--------------------------------------") to get test ads on this device.
cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 6452
Cocos2dxActivity: onResume()
Cocos2dxActivity: onWindowFocusChanged() hasFocus=true
Ads     : Ad finished loading.
Ads     : Ad finished loading.
Ads     : Ad finished loading.
Ads     : Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=CEirQlDWTWJfwMNfYtgfrmKqwDPnJ2qYF0e-FupIBABAIIM3jjC9g1aXaAqkCAAAAAICELkGoAwGqBCBP0NYAsOD6WFGd4ux-LUxezIWZxcnt1gMCWDBmYBxvFJAGAcAGC4AHgfipMJgHAdIIBQiCYRAB&num=1&cid=CAASBORo_-s&sig=AOD64_3JaTDs4Iaos6dqXrwbZS9liebizg&adurl=http://example.com
Ads     : Instantiating mediation adapter: com.google.ads.mediation.appfireworks.AppfireworksAdapter
Ads     : Trying mediation network: https://googleads.g.doubleclick.net/aclk?sa=L&ai=CVJJulDWTWJfwMNfYtgfrmKqwDPnJ2qYF0e-FupIBABAIIM3jjC9g1aXaAqkCAAAAAICELkGoAwGqBCBP0NYAsOD6WFGd4ux-LUxezIWZxcnt1gMiJShGWX0sEpAGAcAGC4AHgfipMJgHAdIIBQiCYRAB&num=1&cid=CAASBORo_-s&sig=AOD64_2ykov8sG7R5uz1JkXzeiQarzYrGQ&adurl=http://example.com
Ads     : Instantiating mediation adapter: com.google.ads.mediation.chartboost.ChartboostAdapter
Ads     : Trying mediation network:
Ads     : Instantiating mediation adapter: com.google.ads.mediation.admob.AdMobAdapter
Ads     : Server parameters: {"gwhirl_share_location":"1","pubid":"ca-app-pub-------------------------\/--------------\/cak=no_cache&cadc=ws&caqid=lDWTWLPDL42OxgLymaOQAw"}
DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
Ads     : Starting ad request.
Ads     : Use AdRequest.Builder.addTestDevice("--------------------------------------") to get test ads on this device.
cr_Ime  : ImeThread is enabled.
cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 6452
Ads     : Ad finished loading.
Ads     : Ad finished loading.

So I see messages like Instantiating mediation adapter: com.google.ads.mediation.chartboost.ChartboostAdapter
but still, it relies on admob. not sure what these doubleclick.net example.com are or why are they there either though.

As you may notice, in that example only chartboost was in test mode as admob still suggest me to switch to test mode. I’ve tested both with admob with & without test mode. Same result.

Best would be to share your project - it will be like ping pong - where u could make misstake.

Yeah, problem is that I’ve never used mediation before, so I’m not sure if I’m missing something on admob page, or if sdkbox doesn’t support mediation at all, as there is no guide or example about that either, so I’m curious about if anyone has managed to use other networks using admob mediation and sdkbox.

~I think i was trying to mediate thru sdkbox and it was working :smiley:

From you log like Ads : Instantiating mediation adapter: com.google.ads.mediation.chartboost.ChartboostAdapter

It seems it works but something not done properly… which paltform btw u testing:D Android ? Have u added activity for chartboost. For me chartboost doesnt sound like best network to test on :smiley:

I’ve tested both ChartBosst and attempted to test with LeadBolt too. Can you please suggest me better networks?

Thanks :slight_smile:

Inmobi, mopub, facebook audience :smiley: but now realised it probably easier to setup chartboost ;D then this :smiley:

Thanks, I’ll give a try to mopub and facebook. I’ve tested Inmobi in the past, and I don’t like how it performed, maybe I’ll give a try if I fail with mopub/facebook.

Btw, guess you integrate manually their SDK into your project, as they’re not supported by SDKBOX. Is there anything that I should take care of integrating them?

Thanks for being so patient :blush:

if it is mediation like I sayd before you just need to integrate Admob (SDKBOX or native) and then attach to project Adapter and Ads network - no specific code needed to call that other networks admob+adpater will do it in his way to make it work.

I think you are seeing about the Add Admob through SDKBox.
I recommend you Consoliads is the best network in which you can get the correct answer of your query.

[quote=“HasnainHassan, post:13, topic:34830, full:true”]
I think you are seeing about the Add Admob through SDKBox.
I recommend you Consoliads is the best network in which you can get the correct answer of your query.