So today I was checking out the AdMob website and Google for this.
On the AdMod website, I see this:
It asks for the link to my app on the market. As I said above, my app isn't on the market first.
I made a small search on this, where I understood that if my app isn't on the store yet, I should leave the URL field blank. Then I will be transfered to a new page where I will be able to download the code and embed it into my application.
But what about if my app is already in the market? Nothing different?
Also, I found and downloaded the code (https://developers.google.com/mobile-ads-sdk/download) and read this tutorial about how to declare an AdView in XML: https://developers.google.com/mobile-ads-sdk/docs/android/banner_xml
and this as well: https://developers.google.com/mobile-ads-sdk/docs/android/fundamentals
So I did it, but because I can't find my AdMob ID (maybe because I haven't published/registered my app yet) I left the
field as it is. When I ran the project on the emulator, it crashed. I checked a bit on stack-overflow and found someone that posted his ID, so I copied that and used it. However it still hasn't worked. On the url is posted above (https://developers.google.com/mobile-ads-sdk/docs/android/fundamentals) it says something about a minimum 3.2 SDK version?
This is what it says:
- Make sure you have the latest copy of the Android SDK and that you're compiling against at least Android v3.2 (set target in default.properties to android-13).
- The Google AdMob Ads SDK for Android requires a run-time of Android 1.5 or later (set android:minSdkVersion to at least 3 in your AndroidManifest.xml). This means you can develop with the latest version of the Android SDK and your app will still run on an earlier Android version (1.5 minimum).
Can someone explain to be how am I supposed to use it when I publish my app? Should I publish it first without ads and re-publish it with? Or embed the ads and publish the first time?
And what about the minimum required version? (My friend has 2.2 and I've seen some ads on some applications).
Thank you. Excuse my English.