Reputation: 69
I am a beginner at using admob with android app and I have already created an admob account but I can't monetize my app because I haven't uploaded my app on the market because there is no ad unit in my app, and to make an ad unit code you have to monetize your uploaded app on the market, so I don't how to deal with this issue.
should I upload my app on the market without any ad and after that menotize it and then add the ad unit to my app by updating it in the market ?
Upvotes: 0
Views: 1009
Reputation: 7927
You don't have to publish your app before integrating ad units.
You can "Add your app manually".
Ad units will be generated after adding your app. Integrate it in your app and publish it.
After 48hrs of publishing to the play store, you can then "link your app".
To prevent click fraud(which leads to account bans), make sure you don't click the ads. However, if you want to click on the ads when testing, use test devices ids.
Example:
AdView adView = (AdView)this.findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder()
.addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
.addTestDevice("TEST_DEVICE_ID")
.build();
adView.loadAd(adRequest);
Upvotes: 4