AdMob plug-in interstitial behavior

I haven’t had any luck finding anything in the AdMob documentation, so perhaps whoever wrote the AdMob plugin handled this logic for us:

ads.show(“interstitial”) displays a banner ad on an iPhone. It displays a full screen interstitial ad on an iPad.

If I’m not in a situation (e.g. iPad) where an interstitial ad will be shown, I don’t want to call ads.show(“interstitial”) at all. I’d rather switch to RevMob and use their fullscreen ad (which works on smaller devices).

On iOS, the logic is easy: If I’m on an iPad, allow AdMob interstitial ads. Otherwise, skip trying and do something else.

What logic would I use on Android? What minimum screen dimensions are required for an Android device to be considered a “tablet” and show AdMob interstitials instead of banners only? 

Hi,

I tested the Android AdMob plugin and on the HTC Evo 4g(480x800) I still see interstitial ads on it which are full screen.  They are not banners.  I haven’t seen any devices yet which show a banner instead of an interstitial when an interstitial is called.  If you know of some devices where an interstitial is shown, I would be happy to look into it more.  Thanks.

How do we get the Android AdMob plugin working?  Is it different from iOS AdMob plugin?  I am unable to generate Android build using daily build 1089 and 1094.  Without the APK, I can’t proceed to test AdMob on Android device.  

Maybe I’m missing something?  @PuzzleRunner and @dchan, how do you get to build APK to install on Android device?  I get errors when I try.  See my post here:

http://forums.coronalabs.com/topic/34224-daily-build-1089-1094-cannot-generate-android-builds-google-play/

and

http://forums.coronalabs.com/topic/34226-cannot-build-android-version/

Naomi

@dchan I’ve got AdMob’s behavior figured out now. If you ask for an interstitial ad on an iPhone, AdMob will error you since it won’t do those, but you’ll have a chance to handle it in the listener you set. I was getting a banner on iPhone since I had some old code to retry with a banner :-) 

@Naomi I’m using 1093, but unfortunately it just worked for me on both iOS and Android as it is documented. The only problem I’ve run into is that I can’t get two plug-ins working at once (I’m trying to do AdMob + OpenUDID).

@PuzzleRunner, thank you for letting me know.  Ugh, I wonder why Corona doesn’t build Android version for me…

Naomi

Hi

  Is anyone know about Admob plugin detail setting value.

I saw the document ,it only show “interstitial”

Admob support a lot of different ads type. Is this plugin support them?

Currently the Admob plugins support “interstitial” and “banner” type ads.  “banner” ads are basically smart ads which fit the width of the screen.

I would like to hear an answer to one of the questions that @PuzzleRunner asked up top:

What logic would I use on Android? What minimum screen dimensions are required for an Android device to be considered a “tablet” and show AdMob interstitials instead of banners only? 

When my app tries to display Admob interstitial ads on smart phones (Nexus 4 and Galaxy SIII), the app crashes.  As far as my app is concerned, the request is responded with “The ad loaded successfully”.  I’d like to definitely avoid the crash, and if the only way to avoid the crash is not to show interstitial ads on a not-supported device, we need to know how we tell the app that the device on which the app is running cannot display the interstitial ads.

If event.isError comes back with true, I can have a fall back plan (that is, showing house ads or other form of ads that can work on the device), but the way it’s behaving on Android device, the fall back plan won’t work.

Naomi

Hi,

I tested the Android AdMob plugin and on the HTC Evo 4g(480x800) I still see interstitial ads on it which are full screen.  They are not banners.  I haven’t seen any devices yet which show a banner instead of an interstitial when an interstitial is called.  If you know of some devices where an interstitial is shown, I would be happy to look into it more.  Thanks.

How do we get the Android AdMob plugin working?  Is it different from iOS AdMob plugin?  I am unable to generate Android build using daily build 1089 and 1094.  Without the APK, I can’t proceed to test AdMob on Android device.  

Maybe I’m missing something?  @PuzzleRunner and @dchan, how do you get to build APK to install on Android device?  I get errors when I try.  See my post here:

http://forums.coronalabs.com/topic/34224-daily-build-1089-1094-cannot-generate-android-builds-google-play/

and

http://forums.coronalabs.com/topic/34226-cannot-build-android-version/

Naomi

@dchan I’ve got AdMob’s behavior figured out now. If you ask for an interstitial ad on an iPhone, AdMob will error you since it won’t do those, but you’ll have a chance to handle it in the listener you set. I was getting a banner on iPhone since I had some old code to retry with a banner :-) 

@Naomi I’m using 1093, but unfortunately it just worked for me on both iOS and Android as it is documented. The only problem I’ve run into is that I can’t get two plug-ins working at once (I’m trying to do AdMob + OpenUDID).

@PuzzleRunner, thank you for letting me know.  Ugh, I wonder why Corona doesn’t build Android version for me…

Naomi

Hi

  Is anyone know about Admob plugin detail setting value.

I saw the document ,it only show “interstitial”

Admob support a lot of different ads type. Is this plugin support them?

Currently the Admob plugins support “interstitial” and “banner” type ads.  “banner” ads are basically smart ads which fit the width of the screen.

I would like to hear an answer to one of the questions that @PuzzleRunner asked up top:

What logic would I use on Android? What minimum screen dimensions are required for an Android device to be considered a “tablet” and show AdMob interstitials instead of banners only? 

When my app tries to display Admob interstitial ads on smart phones (Nexus 4 and Galaxy SIII), the app crashes.  As far as my app is concerned, the request is responded with “The ad loaded successfully”.  I’d like to definitely avoid the crash, and if the only way to avoid the crash is not to show interstitial ads on a not-supported device, we need to know how we tell the app that the device on which the app is running cannot display the interstitial ads.

If event.isError comes back with true, I can have a fall back plan (that is, showing house ads or other form of ads that can work on the device), but the way it’s behaving on Android device, the fall back plan won’t work.

Naomi