Skip to content

arostaky/gc_admob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Closure DevKit Plugin: Admob

Admob only supports Android build targets.

Installation

Run devkit install https://github.com/jpdibacco/gc_admob#master from your devkit2 application directory.

Under the Android section, you can configure the Admob plugin:

	"android": {
		"versionCode": 1,
		"icons": {
			"36": "resources/icons/android36.png",
			"48": "resources/icons/android48.png",
			"72": "resources/icons/android72.png",
			"96": "resources/icons/android96.png"
		},
		"admobUnitid": "myadmobunitid",
		"testDeviceid":"mytestdeviceid"
	}

In your game Application.js you can configure the Admob plugin like this:

import plugins.Admob.admob as admob;

you cannot use yet the functions:

admob.showAd();

or

admob.hideAd();

(under development)

Testing

To test for successful integration, build your game:

devkit debug native-android --clean --open

Then watch logcat:

adb logcat | grep -i admob

Look out for warnings in the console that indicates a problem with your setup.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published