Google Play Services with AdMob. Check availability? - android

I'm in the process of migrating from AdMob SDK to Google Play Services. I've done most of the job and things seem to be working fine, but I'm not sure I understand the logic behind some of the interaction.
The changes I've made can be found here: Google Play Services Migration.
When am I utilizing Google Play Services with my new code? The site "Set up Google Play Services SDK" states that your app should verify the version available before attempting to perform API transactions. However, when running my app on an emulator that does not have Google Play Services, I am still able to fetch an ad using an AdView and AdRequest.Builder(). I do however note the LogCat warning Google Play services is missing.. How can the ad still be showing?
Also, will the Google Play Services referenced library be included in the APK export, or is this just for the development environment?

Google Play Services consists of two components. One is the jar linked to the app and the other is part of the system (Android OS). The AdMob ad display component is in the jar while other play services are in the system.
If a app is built with Google Play Services you will have the ability to display AdMob ads, but you won't get some of the other Google Play Services features.
So yes, when your app is linked to the library some Google Play Service classes will be included in your APK.
It is also possible to display AdMob ads by using the older (now deprecated) AdMob SDK.

Related

Does any Android app in Play console appear in Google Api Console

i have an app that uses game services. i was told to check something in the Google Api Console , but i can't see my project in the projects list at the Google Api Console. So , should my app appear there or no?
If your App uses Game Services it should appear there. This would have been created automatically by the Play Console when you added services to your game.

Update Google Play services for an old app

I have an old app which uses Google play services 5.08. Since the app uses kiosk mode, we never updated google play services on the device. Now I have to update the google play services to 8.4. I also want the already existing users to use the app without getting crashes. So how do I support both of 5.08 and 8.4 APIs to support in the app? I see Google doesn't expose the APIs of 5.08 when I use 8.4 in Gradle file.
Create a newer version of the app that will use the latest google play service(8.4). Retain the older version of the app for the current google play service(5.08).
The version of the Google Play Service will depend on the APIs your application implements. Supporting both google play service in an app will affect your application performance in a negative way or it is not applicable. Every update of Google Play service adds new APIs connected and older APIs improved. Consider the APIs your application will implement, then decide which version of google play services should your user update to have a smooth running application.
The Google Play services client
library
The client library contains the interfaces to the individual Google
services and allows you to obtain authorization from users to gain
access to these services with their credentials. It also contains APIs
that allow you to resolve any issues at runtime, such as a missing,
disabled, or out-of-date Google Play services APK. The client library
has a light footprint if you use
ProGuard as
part of your build process, so it won't have an adverse impact on your
app's file size.
If you want to access added features or products, you can upgrade to a
new version of the client library as they are released. However,
upgrading is not necessary if you don't care about new features or bug
fixes. We anticipate more Google services to be continuously added, so
be on the lookout for these updates.

Project showing up in Google Play Dev Console, but not in Google Developer Console

I have a google play app, linked to a google play game services project. However, I believe I accidentally deleted the google play game services project from the google developer console, so now it shows up in google play developer console, but not in the google developer console. In the google play developer console, in the game services project, I'm constantly getting
An unexpected error occurred. Please try again later. (1700404)
(I'm assuming this is because the underlying developer console project was deleted). Well, now it's really screwed up because I can't add a new game services project, but the current one isn't going to work. Any help would be appreciated, thanks.
I recommend that you start again from the beginning with a new app in the Google Play Developer Console (i.e. use a different apk name). Do not make changes to Google Play Game Services apps in the developer console (if indeed that is its current name) unless specifically instructed to do so by a reliable source (e.g. a google guide).
You will find many tales of woe on Stack Overflow concerning problems arising from making changes in the developer console to Google Play Game Services apps. e.g :
Google Play Game Services - unable to sign in

admob GoogleAdMobAdsSdk-6.2.1.jar not clickable

I have created an android app with GoogleAdMobAdsSdk-6.2.1.jar as lib.
My app shows the ad on the page but I am not able to click on the ads.
Can you tell me how to fix that?
Google is trying to shift their advertising services towards Google play services and are ending support for legacy admob sdk.
"Deprecated. On August 1, 2014, Google Play will stop accepting new or updated apps that use the old standalone Google Mobile Ads SDK v6.4.1 or lower. You must upgrade to the Google Play services version of the Mobile Ads SDK by then."
Source : https://developers.google.com/mobile-ads-sdk/docs/?hl=en_US#android
It's better to switch to google play services sdk to display ads

Google Mobile Ads and Kindle Fire

I recently replaced AdMob library with Google Mobile Ads and I have a question about that: Will ads appear on Amazon Kindle Fire devices?
I ask this because I know that Google Mobile Ads depends on Google Play Services, so I'm a little confused.
Google Play Services still supports devices that don't have the Google Play store
installed on it. The only difference is that devices without the Play
Store (and the accompanied Google Play Services app) on it will not receive automatic
updates, so you'll still want to grab new versions of the library
provided in Android SDK manager and include them when releasing your
app.
As you can see above, if Google Play Services is not installed on the device, it will fall back to the version you included with your app as a library.
https://groups.google.com/forum/#!topic/google-admob-ads-sdk/obflEHgq_og

Categories

Resources