Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Using AdMob with both banner and interstial ads

Author
Message
tmu
8
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 28th Jun 2017 19:02
Is it possible to use AdMob with both banner and interstials? The tier 1 API seems to mix these up so you can only use one.

The SetAdMobDetails help page https://www.appgamekit.com/documentation/Reference/Advert/SetAdMobDetails.htm says "this only supports one or the other, you can either set a banner ad unit ID, or an interstitial ad unit ID, but not both at the same time.".

But looking at the AdMob API's, I don't see any reason why both could not be supported? Like the reward video has its own SetAdMobRewardAdDetails function.

I have Chartboost optionally set up to show interstials if AdMob does not have one loaded, and the flow seems to go there. But I would actually prefer to mainly do AdMob for both banner and interstial. Is this possible?
pinete
13
Years of Service
User Offline
Joined: 28th Jul 2011
Location:
Posted: 29th Jun 2017 18:12
Hi!
Yes it's possible, it's enough initializing both at same time, one after another.
you need just to do this:

SetAdMobDetails ( advkey_android_admob_inter ) // Intersticial admob
SetAdMobDetails ( advkey_android_admob_banner ) // Banner admob
SetChartboostDetails (advkey_android_chartboost_appid_inter, advkey_android_chartboost_signature_inter)

This is an example of how to display a full screen admob intersticial

if GetFullscreenAdvertLoadedAdMob() = 1
PauseMusic()
ShowFullscreenAdvertadmob()
SetAdvertVisible ( 1 )
RequestAdvertRefresh()
ResumeMusic()
endif

and this one, an Admob banner

function LIBdisplayAdvertBanner()

CreateAdvert(0, 1, 2, 1) // Test
SetAdvertVisible ( 1 )
RequestAdvertRefresh()

endfunction

Don't forget to initialize first the key chains before call any other functions..

You can find a lot more examples around
hope to be helpful.
tmu
8
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 30th Jun 2017 10:38
Thanks! Oddly enough, this seems to be working. So I will give it a try and see how it goes.

BTW, is there any way to filter the ads from AdMob? I seemed to get an ad video where someone beats up and shoots nurses or something..
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
tmu
8
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 30th Jun 2017 18:34
Thanks bunny. I also looked at those helps and could not quite find the filters since they layout did not seem to match what those pages say. In the end, I found the filtering functionality on AdMob site though.

But it is a bit more coarse-grained than I hoped for. For example, videogames seem to be all under "sensitive" tab as one big lump. So I guess it includes ads with big boobed chicks wearing little, game ads with violence and also word puzzles. I will play around a bit with those and see what gets filled and what not. Or maybe I need to prioritize Chartboost still even if it does not seem to work so well for me. Could be AdMob also targets based on user age etc, but who knows who plays on whose device..

Login to post a reply

Server time is: 2025-06-01 23:47:28
Your offset time is: 2025-06-01 23:47:28