Skip to content

agramonte/CGAdMob

Repository files navigation

As I have done with my other extensions: Since Marmalade has an official version, I will no longer be updating this version. I want to thank all the people that helped me get this running originally.

CGAdMob

Extremely simplistic implementation of the AdMob Api.

Platform Support: Android, iOS (Library 7.0).

Built with Marmalade version: 7.5 and iOS 8 SDK

Instructions (test project demonstrates other options):

  1. Add the project CGAdMob

  2. Add the extra string value to deployment section. If you are using a function that needs an Id you need to replace the 0 with your id. Otherwise 0 is fine for AdMob.

deployment{ android-extra-strings='(gps_app_id,0)' }

  1. Set the a banner ad unit and an interstitial ad unitId:

SetGoogleAppKey("banner ad unit id", "interstitial ad unit id”);

  1. Initialize the entire thing:

InitAdView()

  1. Show banner ad:

BannerAdLoad();

  1. Show interstitial:

ShowInterstitialAd();

  1. Make sure to release it before your app closes.

Release();

About

Admob Extension for Marmalade

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors