Heres my adverts lib, which works in
Pushdown Lite using AGK_V2_14b, Tier 1.
function LIBInitAds()
select game[1].sDeviceName //just an array with the contents of getDeviceType()
case "ios"
SetAdMobDetails ( "ca-app-pub-xxxxxxxxxxxxxxx/xxxxxxxxxxxxxxx" ) //pushdown_full_ios_admob_interstit
SetAdMobDetails ( "ca-app-pub-xxxxxxxxxxxxxxx/xxxxxxxxxxxxxxx" ) //pushdown_full_ios_admob_banner_
endcase
case "android"
setAdMobDetails ( "ca-app-pub-xxxxxxxxxxxxxxx/xxxxxxxxxxxxxxx" ) //pushdown_android_admob_interstitial
setAdMobDetails ( "ca-app-pub-xxxxxxxxxxxxxxx/xxxxxxxxxxxxxxx" ) //pushdown_android_admob_banner
endcase
endselect
endfunction
function LIBdisplayAdvertBanner()
//call this when you want a banner ad
CreateAdvert(0, 1, 0, 0)
SetAdvertVisible ( 1 )
RequestAdvertRefresh()
endfunction
function LIBdisplayAdvertFullscreen()
//call this when you want a full screen ad
LIBInitAds()
//PauseMusic() //full screen ads sometimes have sounds/music
CreateFullscreenAdvert()
SetAdvertVisible ( 1 )
RequestAdvertRefresh()
endfunction
This uses Admob though, I'd suggest using that first before adding setChartboostDetails in the LIBinitAds() function.
Twitter: @itanican
Facebook: https://www.facebook.com/PushdownGame
Website: www.push-down.com