AdMob Question

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.

  1. 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?

  1. 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.

  1. 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.

  1. If user click the hardware back button, will the adds refresh automatically stop? If not this would cause me lower eCPM.

  2. 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. :wink:

1.  No, that is exactly what goes in build.settings.

2.  Publisher ID is very likely the value needed for the AppID.

Please see the sample code here:

https://github.com/coronalabs/plugins-sample-ads-admob

  1. Permissions, I would suspect you only need the internet permission, though the sample code doesn’t show any.

Hi Rob

    We are able receive the admob ads (interstitial ads) in ipad and android but we are unable to receive the interstitial ads on iphone .Can you tell me what might be the issue. On iPhone we are able to receive the banner ads from admob but not interstitial ads everytime its saying the error loading the ad .Waiting for your reply.

Thanks in advance

Hi 

I downloaded the sample code, then build but i see only the space background on my device ( samsung galaxy s i9000)

Should i change something?

Also can anybody confirm that publisher id and appid is the same?

I know , basic questions but i cant find an answer :stuck_out_tongue:

I’ve heard back from the engineers, and any messages you see in event.response is coming from AdMob.  The message we get when testing it is that interstitials are only available on the iPad, much like it is with iAds. 

So AdMob apparently doesn’t support it on the iPhone.

Hi rob

    Thanks for your reply . If admob doesnot support iphone it should not come with any other technology . But We are able to receive the ads from the admob of interstitial on iphone from adobe air .  I think its the problem with corona itslef . Please Check and let me know . Waiting for your reply.

They may not through the plugin.  They may not have enough ads to fill your interstitial request which could be another reason they are generating that message.

Hi rob 

     Thanks for your reply. But we tried the both apps at same time on two different iphones one with the adobe air and one with the corona . If they are unable to generate the ads i should not get it using the adobe air also . As you said they are not using plugin for the adobe air but there should not be any problem with the plugin system . You can please  try this admob at your place on iphone and let us know exactly what was the issue.What’s the use of buying a pro version corona if you are not supporting the plugins properly . 

 Thanks

Can you test it on the iphone and print out the event table (in particular event.response)  in your Ad listener call back?  That message comes from AdMob.  Let me know what you’re getting.

Hi rob 

    I have checked it . It is saying that the admob interstetial ads are not supported from admob . But this message is from corona because its previously saying  (in the build 1149)  Erroe loading ad but when we updated it says that admob interstetial ads are not supported from admob. Please take it serious and solve the issue and let us know as we are able to interstitial ads using adobe air. Its the problem with corona. 

 Thanks 

  If any one is able to get the interstetial ads from the admob on iphone please post here .

1.  No, that is exactly what goes in build.settings.

2.  Publisher ID is very likely the value needed for the AppID.

Please see the sample code here:

https://github.com/coronalabs/plugins-sample-ads-admob

  1. Permissions, I would suspect you only need the internet permission, though the sample code doesn’t show any.

Hi @info8888,

I just bumped this up with the engineers and we’re looking into it. Note that if it becomes supported, the fill rate from AdMob may still be very low… simply a reminder, so you know what to expect.

Brent

Hi Rob

    We are able receive the admob ads (interstitial ads) in ipad and android but we are unable to receive the interstitial ads on iphone .Can you tell me what might be the issue. On iPhone we are able to receive the banner ads from admob but not interstitial ads everytime its saying the error loading the ad .Waiting for your reply.

Thanks in advance

Hi 

I downloaded the sample code, then build but i see only the space background on my device ( samsung galaxy s i9000)

Should i change something?

Also can anybody confirm that publisher id and appid is the same?

I know , basic questions but i cant find an answer :stuck_out_tongue:

I’ve heard back from the engineers, and any messages you see in event.response is coming from AdMob.  The message we get when testing it is that interstitials are only available on the iPad, much like it is with iAds. 

So AdMob apparently doesn’t support it on the iPhone.

i am very new to corona so i was just wondering where you get an app id for an android app

thanx,

Moksh

Hi rob

    Thanks for your reply . If admob doesnot support iphone it should not come with any other technology . But We are able to receive the ads from the admob of interstitial on iphone from adobe air .  I think its the problem with corona itslef . Please Check and let me know . Waiting for your reply.

They may not through the plugin.  They may not have enough ads to fill your interstitial request which could be another reason they are generating that message.

Hi rob 

     Thanks for your reply. But we tried the both apps at same time on two different iphones one with the adobe air and one with the corona . If they are unable to generate the ads i should not get it using the adobe air also . As you said they are not using plugin for the adobe air but there should not be any problem with the plugin system . You can please  try this admob at your place on iphone and let us know exactly what was the issue.What’s the use of buying a pro version corona if you are not supporting the plugins properly . 

 Thanks