can't monetize my app on admob

喜夏-厌秋 提交于 2019-12-13 21:09:00

问题


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 ?


回答1:


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);


来源:https://stackoverflow.com/questions/26226572/cant-monetize-my-app-on-admob

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!