AdMob on Android, Cocos2d-x V3.3 , Banner & Interstitial

Sharing my approach to show AdMob ads (banner / interstitial)
on Android with Cocos2d-x V3.3

It uses the Google Play services library (included in the file)
which is needed to submit an Android app with AdMob
on Google Play.

I used various resources to get this working in 3.3.

Surprised that i haven’t found any code that really worked, or has used the lifecycle
methods on Android like onPause/onResume/onDestroy to show Admob ads.

Files (2MB):

on Dropbox

Hi,

Is it still there?
I looked up for your file on the link that you provided but it is not available there!!

Also, can you help me with google leaderboards or analytics if you know?

Thanxx :smile:

The following Cocos2d-x project on GitHub is a wrapper for many Google services including Google AdMob. https://github.com/cpinan/Cocos2dX_GooglePlayGamesServices

@code_game_chef The file is still available at the above link.

@raydelto Better implementation for iOS and Android (Google Play, Amazon) for leaderboards is here https://github.com/hovergames/avalon

1 Like

Hey,
is it possible for you to upload it here or somewhere else like dropbox or other place because there it shows me that file is temporarily not available. And it shows me the same each time I visit it!

thanks :smile:

@code_game_chef It’s now on Dropbox. Enjoy

3 Likes