Reputation: 81
I need to find my AD_UNIT_ID for the line:
private static final String AD_UNIT_ID ="";
So can someone give me an example for an AD_UNIT_ID, i mean how it should look like?
So is it this one:
ca-app-pub-XXXXXXXXXXXXXXXX/yyyyyyyyyy
or only the yyyyyyyyyy?
Upvotes: 0
Views: 514
Reputation: 1
I have just created an AD_UNIT_ID myself and its in the ca-app-pub-XXXXXXXXXXXXXXXX/NNNNNNNNNN format, ads are being properly displayed in the app.
U can see more clarification in Google Mobile Ads SDK FAQ
Upvotes: 0
Reputation: 5951
Ad Unit Id is a unique ID for each Admob users.
To find the ad unit ID, once you are logged in Admob, click the Monetize tab. Click All apps from the left-hand side and select an app. The ad unit ID is under the ad unit name.
If you dont have one, here is how to create an Ad Unit ID from scratch to end. Create an ad unit
Upvotes: 2