Getting Admob to Work in Phonegap for iOS

For educators around the world who use Construct 2 in classrooms

Post » Tue Sep 20, 2016 6:36 am

*I am sort of just stumbling around with all of this, so you've been warned*

I was in the middle of running my 7th build and writing a forum post asking for help but I just got Admob to work and thought I'd post my solution here for my own reference and for others reference.

How To:
1. Export Project utilizing admob and properly setup IDs within construct 2.
2. In the export destination folder in the www directory, open config.xml
3. Insert
Code: Select all
<gap:plugin name="cordova-plugin-ad-admob" source="npm" />

4. Save config.xml
5. Zip up the package, upload to Phonegap, download the .ipa and run.

Both interstitial and banner ads work great, although banner ads seem to not show when overlap is turned off.

Update: Adding the plugin per the official Scirra tutorial in Intel XDK returned an error during the build.
B
6
S
2
Posts: 4
Reputation: 508

Return to Education and Construct 2

Who is online

Users browsing this forum: No registered users and 0 guests