New admob, that uses google play services
Monkey Targets Forums/Android/New admob, that uses google play services
| ||
The old admob will go away in november of this year, the new one needs a bit more fiddling to get working FIrst you have to start up your trusty android sdk manager and download google play services then you see a new folder in there androidsdkfolder/sdk/extras/google/google_play_services/samples/admob this is your example project to get an ad on the screen you will need to add this line to project.properties android.library.reference.1=../../libproject/google-play-services_lib it has to be a RELATIVE file path, so it will have to change when you try to put ads in a game (because it will be in a different folder on your PC) your game/project is including this project in the libproject folder (as referenced in the above line) but it will have to be 'updated' first even though its not your main project/game so the command is: root/adt-bundle-linux-x86/sdk/tools/android update project -p /androidsdkfolder/sdk/extras/google/google_play_services/libproject/google-play-service_lib --target android-13 the sample will still not work unless you put your add unit ID in there I didnt know where to put it in the XML file so I used code instead this is just for the interstitial (full page ad) example: e.g. mInterstitial.setAdUnitId("ca-app-pub-3833619897803149/xxxxx"); actually it will STILL not work because there is a bug go to /androidsdkfolder/sdk/extras/google/google_play_services/samples/admob/res and edit all of the styles.xml files find the similar line and edit it to look like this: <style name="AppBaseTheme" parent="android:Theme.Holo.Light"> otherwise it will complain about a missing theme resource here is the most simple guide to getting an ad onscreen : https://developers.google.com/mobile-ads-sdk/docs/admob/advanced |
| ||
thanks for the heads up, while away before I really need to act on it tho so will leave it alone till then, wondering what will happen to the apps on the market now that are using the current system will they die after November ? |
| ||
From this blog: http://googleadsdeveloper.blogspot.com.au/2014/02/since-joining-google-play-services-back.html It says the standalone AdMob SDK will be deprecating in August... * On August 1, 2014, the Play Store will stop accepting new or updated apps that use the standalone Google AdMob SDK. The standalone SDK does not use the Advertising ID, and will therefore be non-compliant with the Google Play Ad Policy on this date. * We will stop offering technical support for questions specifically related to the standalone Android SDK on August 1, 2014. * Ad serving through the standalone SDK will continue to work after August 1, 2014. There are currently no plans to stop serving ads through the standalone SDK, but we strongly encourage you to update your apps sooner rather than later to avoid the August 1, 2014 deadline. |
| ||
thanks for the info therevills. |