New admob paid plugin don't show banner ads

Hi, 

I’m testing the new admob plugin

I start with my appId and I want to use banners and interstitial.

Interstitials work fine but banners are not displayed

what is the problem?

This is the code.

Thank you.

[lua]

local function adListener(event)

– Successful initialization of AdMob

if ( event.phase == “init” ) then

admob.load( “banner”, { adUnitId=bannerunitID} ) 

admob.load( “interstitial”, { adUnitId=intersticialID})

end

end

admob.init( adListener, { appId=appID , testMode = true} )

–later banner

if ( admob.isLoaded( “banner” ) ) then

    

    admob.show( “banner”, { y = 15000, bgColor="#000000" } )

    --preload next banner

    admob.load( “banner”, { adUnitId=bannerunitID} )

end

–later Instersticial

if ( admob.isLoaded( “interstitial” ) ) then

    

    admob.show( “interstitial” )

    admob.load( “interstitial”, { adUnitId=intersticialID})

end

[/lua]

For interstitials it’s recommended to load new ads in the “closed” phase of the event listener, otherwise the loading of a new ad can interfere with the currently displayed ad as the SDK only caches one at a time.

Banner ads only need to be loaded one time. Once it’s loaded you can show() and hide() the banner.

Also I’d recommend to use y=“bottom” instead of a large y value. 

Thank you Ingemar

The solution was to load the banners only once

For interstitials it’s recommended to load new ads in the “closed” phase of the event listener, otherwise the loading of a new ad can interfere with the currently displayed ad as the SDK only caches one at a time.

Banner ads only need to be loaded one time. Once it’s loaded you can show() and hide() the banner.

Also I’d recommend to use y=“bottom” instead of a large y value. 

Thank you Ingemar

The solution was to load the banners only once