HowTo: Get AdMob Unit Id for advertising in Smart Devices

Unofficial Content

In GeneXus, when the Ads (Advertising) are enabled and the selected provider is AdMob, you must fill Ad Unit Id property of the Ads View control. This article explains how to get the identifier for this property step to step.

Step 1: Register in AdMob

Register in the AdMob website site to be a publisher.

Step 2 - Monetize your app

Go to Home tab, and click on "MONETIZE NEW APP" button.
This will redirect you to another web panel to instantiate a new app.
Paso12_png

Step 3 - Create an advertisement

Once in the new web panel, select "Add your app manually" tab and you must do four steps.

3.a)  Enter an App name, select the Platform Android.
Then, click on "ADD APP" button and AdMob will give you an App ID (it is not the same as the Ad unit ID).
Paso2_png
3.b) After that, select your preferences for the ad format and name ad unit on its respective field.
This will give you an Ad unit ID.
Paso3_png
3.c) This step is optional.
In this case, simply click on "SKIP" button.
Paso4_png
3.d)  Finally, AdMob site allows you to download some tools (there are not necessary) and shows you a summarize of the previous steps.
Click on "DONE" button and finish.
Paso5_png

Step 4 - Get the AdMob Unit Id

Once you've done the previous steps, on the left side you can see all your apps with ads.
Select the app that you configure before and it shows you all the ads associated with it.

Simply copying the Ad unit ID number on GeneXus's  AdMob Unit Id property, automatically your Android app will have ads on it.
Paso6_png

Sample Units

Due creating ads must be validated by Google, AdMob offers Sample Ads Units for each platform which can be used for testing purposes instantaneously. 

See also