Search code examples
androidadmobpublish

AdMob at publishing


it´s a simple question. After having some problems with the implementation of the admob for an android app, finally it works.

I am programming in Android 2.2 (8) and I read that if I don´t want to have problems with the console etc, I have to change the target in properties (not in the manifest) to target13, and then simulate with the API 13 (a tablet view). OK, with this steps, the log cat works well and the console don´t give me a typical message saying "You must adActivity AndroidManifest..."

Now I have finish "my app". And my question is, I have to change again the target from 13 to 8 in eclipse, before publishing my app??? Or the project.properties file, doesn´t matter?

And finally, to get the ID of the publish from adMob first I have to had my app upload? If it is yes the basic steps could be this ones? First upload the app- then get the id of the publish from adMOb- write the id on the eclipse- and finally refresh my app again on the market??

Thanks a lot!!!!


Solution

  • To build your admob enabled app ready for market publishing, leave the target=13 in project.properties, only modify the minSDKVersion property in your AndroidManifest.xml point to your targeting version (8 in your case).

    You can get Admob publishID and use it into your application code before upload/publish app in android market, to get a publishID, sign in and login in your admob account, click Sites & Apps -> Add Site/App, choose create a Android App, in the setup menu, you will be ask to enter the application market URL, this does not need to be existed at this point. following Eg: market://details?id=packagename to make one. Admob will generate the publishID for you to use.

    You can actually test admob at this stage now, install your admob enabled application on you phone, play with it (click the ads several times), you will start earning revenue in your admob account.

    hope that help.