Hi guys,
With the new adMob paid-plugin, there are some changes to the API calls.
In the old API, I just show a banner ad on page (without preload), and at the same time, I preload a ‘interstitial’ ad so it is ready for the user to view (when the user goes to another page).
In the new docs, it has this important note :
Before attempting to show an ad, you must first load one via admob.load() and confirm it's ready to be shown. See the example below for basic usage details.
Is it necessary to preload a banner ad ?
Any issues if I don’t check whether the ad is already preloaded and just call admob.show() ?
What is the best way to show a banner ad on page, and preload a interstitial ad in the background ?
Would it be better for me to create 2 variables and initialise/preload/show/hide them all separately ? 1 for banner, 1 for interstitial (like below)
local ads\_banner = require( "plugin.admob" ) local ads\_interstitial = require( "plugin.admob" )
Old reference : https://forums.coronalabs.com/topic/37839-admob-integrate-both-banner-and-interstitual-issue