tidev / ti.admob

Use the Google AdMob SDK on iOS and Android with Titanium
52 stars 72 forks source link

AdMob Interstitials #20

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi- I would like to thank all of the contributors to this module, it has been important to us and your hard work is truly appreciated.

I wanted to find out, as I have tried to do my diligence in research, does this module support AdMob Interstitial and if show can you point me to some documentation on how to execute for iOS?

Thanks!

bitfabrikken commented 9 years ago

I needed it too, so I hired a freelancer to make it since I'm not good at the module stuff. I made a pull request to the main module 20 days ago. You can find my version with interstitial support here: https://github.com/bitfabrikken/ti.admob

ghost commented 9 years ago

Wow. Thank you so much for sharing. I really appreciate it!

ottopic commented 9 years ago

@bitfabrikken Thank you, great work! Interstitial works very well ! Have you implement last admob sdk 6.12.2 too? When I compile there are many warnings about iOS8 not officially supported by 6.12.0, but it seems works fine. I don't know!

bitfabrikken commented 9 years ago

@ottopic I haven't - haven't tried either - not sure how to do it :)

ottopic commented 9 years ago

Ok, thanks. I hope someone will update it.

Best regards

ottopic commented 9 years ago

When I run on device there is a strange warning:

Cannot find an ad network adapter with the name(s): ( GADMAdapterIAd ). Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target. Does it depends by my code ?
danny005 commented 9 years ago

Thanks, Interstitials works fine with your pull request.

I had to put the "view" outside the window and set a minimum width and height:

var adInterstitial = Admob.createView({
    bottom: -1,
    width: 1,
    height: 1,
    adUnitId: 'ca-app-pub-xxx',
    adBackgroundColor: '#fff',
    isInterstitial: true
});

win.add(adInterstitial);

Otherwise there seems to be a invisible layer over the screen that prevents all UI elements to be clickable.

So now we have Interstitial support for iOS but Android is still missing? The module "Admob Pro" from the marketplace seems to be outdated and unsupported.