I have a DfpAdView that I'm using according to the documentation here:
https://developers.google.com/mobile-ads-sdk/docs/dfp/fundamentals#android
I've been using the GoogleAdMobAdsSdk-6.4.1. I just updated Google Play Services to version 13, and it seems that the AdMob SDK has been integrated into Google Play Services in this version. However, DFP is not supported as mentioned here:
https://developer.android.com/google/play-services/ads.html
Note: The SDK doesn’t currently support DFP, Ad Exchange or Search Ads for Mobile Apps but support is coming soon.
I have to use GooglePlayServices for the Maps SDK, but it breaks the required DFP ad that I'm using. Do I need to remove the DFP ad in favor of something else, or do I change the build order so that the AdMob jar takes precedence over the GPS library where package/class names conflict (is that possible?)
The best solution for now (if you are using DFP and one of the other Google Play services) is to excise the Admob classes from the Google Play Services library and use the Admob-6.4.1 SDK.
Not ideal, but I suspect DFP support will be delivered soon.
Alternate is t hold off on upgrading to the new GPS library until DFP support is available. Depends on your urgency.
Related
I'm trying to implement ads in my application . I have two choices Google mobile Ads or Google Admob . Can someone tell me the major differences between them ?
Thanks in advance.
They both are same, but Google has announced deprecation of Android Google AdMob SDK
The new library Google mobile Ads has full support for the Android Advertising ID, and is compliant with the latest Google Play Ad Policy.
Refer Link
I dont think these are two separate thing !! They are the same concept. Maybe you are refering the different sdk versions but what i know is the curren sdk name is admob.
You are refering to one thing and thats the service google provides that you can earn money helping google advertise through your app.
And beside that, you can find what your users are like and find great information and statistics about their activities and their interests.
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
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.
I'd like to implement banner-ads in my new app and stumbled across two possibilitys of doing this.
The first one is using the Android SDK: com.google.ads.*
The second one is using Google Play Services: com.google.android.gms.ads.*
I googled a lot and read the documentation but I found no resources which state the differences between both solutions.
What is the difference between both and which one is the best if I simply want to add banner-ads in my app?
Direct to the point,
The main difference is that if you use Google Play Services one then you will use Google play service APIs. If you use other modules of Google Play like maps, location, gcm, play games then you can use com.google.android.gms.ads.* but if you don't use other Services then use com.google.ads.*
Their behavior is same...
As Selvin did not post his comment as an answer I'll answer this question by myself:
Use the Google Play Services com.google.android.gms.ads.*
Don't use the Android SDK for Ads because it is deprecated:
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 version of the Mobile
Ads SDK by then.
Google Mobile Ads SDK
I have one android application and this application uses Google admob GoogleAdMobAdsSdk-4.1.0 version. Now i wants to update my google admob SDK.
This is the message on google admob site Here.
We are deprecating all SDK versions that were released in 2010 or earlier. For Android, this includes any SDK released on or before November 9, 2010. If your code references com.admob.android.ads.*, then you will need to update your SDK.
I am just try to replace this GoogleAdMobAdsSdk-4.1.0 version to GoogleAdMobAdsSdk-6.3.1 .
But i am getting error regarding import about com.admob.android.ads.* this.
Please let me know the solution regarding this
Thanks
com.admob.android.ads.* references old AdMob SDKs released in 2010 or earlier. If your app was only using GoogleAdMobAdsSdk-4.1.0, you should only have references to com.google.ads.*.
To can check the docs for how to set location. You'll use com.google.ads.AdRequest#setLocation(location). However, AdMob recommends that you only pass location in your AdRequest if your app already makes use of location, since it requires adding extra permissions in your app.