Hello, I am about to finish my first game in Corona :) and I have decided to use AdMob for ads.
I am really new to this and googled several hours thou am still not sure on the following. On top of that I will have to borrow a device to test the apps on them.
- Now in the build settings…
plugins =
{
[“CoronaProvider.ads.admob”] =
{
– required
publisherId = “com.coronalabs”,
},
},
the publisherId shall be the 15 alpha-numeric id obtained throu AdMob and not “com.coronalabs”, right?
- The adds in lua are implemented by:
local appID = “???”
local ads = require “ads”
ads.init( “admob”, appID, adListener )
Now what shall appID be set to? I am planning to publish this app to Google Play for Android at the moment.
So i do not have any iTunes Bundle ID.
- Ill use the following to show the ads.
ads.show( “banner”, { x=100, y=display.contentHeight-150 } )
In my AdMob account, i set refresh rate to 60 seconds. So i presume that will handle refreshes. Now does the positioning of the banner work? Because my app has two buttons that are located left to the add.
-
If user click the hardware back button, will the adds refresh automatically stop? If not this would cause me lower eCPM.
-
What permissions are required to be included for build for Android? Are these correct or have too many?
Not really sure what read phone state does.
android =
{
usesPermissions =
{
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.READ_PHONE_STATE”,
},
Thanks for you help.