-
Notifications
You must be signed in to change notification settings - Fork 2
Advertisements
zeitt edited this page Nov 26, 2014
·
1 revision
To use advertisements you need AdMob account and have created advertisement's on there.
Firstly you need to add your AdMob publisher id to res/strings.xml under name "AdMobPublisherID" it always begins with "ca-app-pub-" and can be found from your AdMob account.
After you have enabled advertisement's this way you can just use two functions to show and hide them.
javaFunc::ShowAdBanner(string adID, Origin = "Origin::Bottom", vec2 offset = "Vec2(0,0)");
javaFunc::CloseAd(string adID);
string adID: Invidual adID found from AdMob after creating ad there.
Origin: Where you want ad.
Vec2 offset: How much offset there is from origin