I have a library project that I’m using as the engine for 2 separate apps. Can I keep all the AdMob stuff in the library or do I have to make separate ones for each app? Also, where’s the best place to store the AdMob ID? Right now I have it in strings.xml but I don’t know if it’s something that needs to be kept private or not.
Thanks!
AdMob AdViews need to be added to a layout in each one of your apps. Unless your library constructs layouts, you’ll probably need to have some AdMob code in each app. You’ll probably want to keep all of the AdMob code in each app, unless there are common implmentations between the two apps, such as the same way of setting up an ad request, or the same AdListener implementation.
The publisher ID is not that private a number. It can be found in LogCat when your app requests ads.