Good morning my dear, helpful friends.
Okay, So I have finished my very first app using Construct2. I have launched it and it is available and searchable on The Google PlayStore. But how do I display banner ads?
Does it involve creating Jsons, XMLs or any files or simply clicking here and there?
Can you send a full reply?
Thank you
Hello there,
First, you need account with AdMob: https://www.google.com/admob/ then if you are done. sign-in to your account then go, Monetize New App --> Add Your App Manually. Then write your app name and chose the platform. click Add after that, then chose Banner and write a name for it down by "Ad unit name". After that click skip at Firebase for now. Finally Cilck at "Done".
it will take you back to new window. Chose your App from the left. Look at the right and copy your "Ad unit ID"
look at the picture:
http://imgur.com/ru44fcS
Second, in your C2 Project open it and do as follows: Insert New Object --> Admob Ads
Third, click at the Admob Ads in your C2. You will see its properties. paste your "Ad unit ID" to "Banner ID ( Android )" Or
Banner ID ( IOS ).
Fourth, do as follow:
Add event -> System -> On Start of Layout
-Add action -> AdmobAds -> Preload banner ad
-Add action -> AdmobAds -> Show banner -> Position: Bottom center -> size: Smart Banner -> Done
if you are building your app using Phonegap then add this plugin to your Config.xml File:
<plugin name="github.com/cranberrygame/cordova-plugin-ad-admob" source="npm" ></plugin>[/code:1v4b3rj2]
I hope this help...
Good Luck