How to integrate the latest admob sdk to Android app - android

I have an app in the store which has Admob. But now I want to update the Admob sdk just to be up-to-date
I was reading that. Now we do not need to install the sdk from Admob site. As it is already included with Android sdk.
Is that correct. What shall I do now.... Is there any link or tutorial for that.

The Admob libraries are now part of Google Play Services.
You need to include Play Services.
You can find the latest version of the Admob libraries by looking in
ANDROID-SDK_HOME\extras\google\m2repository\com\google\android\gms\play-services-ads.
As of 9-AUG-2015 it is 7.5.0

Related

How to add google play services to eclipce

I used to use old version of Google Play Services in my projects. But now I keep getting warnings when I upload my apps to Google Play. These warnings says that I have to update my Google Play Services.
I have the latest version of Google Play Services in SDK manager with Rev.49
In the last versions of Google Play Services, I can find the Google Play library in the following directory:
SDK --> /extras/google/google_play_services/libproject/google-play-services_lib/
But now there is no libproject/google-play-services_lib/. Where can I get the library?
Check out this answer: https://stackoverflow.com/a/37311511/8294916
Or the answer directly below it: https://stackoverflow.com/a/37356709/8294916
Hopefully you can migrate over to Android Studio, but if you're stuck with Eclipse because you're working on a legacy project, I feel for you! :(

Is it possible to build google play service lib only for GCM in eclipse?

I have created an android app in eclipse. When upload app in google play store,
Google has put a new option on their Pricing and Distribution page of their Google Play Developer Console that requires publishers to declare if they have ads or not. I got following warning message.
We detected Ad SDKs in one or more of your active APKs:
version: XXXXX, sdk: AdMob
If your app is serving ads, please change your ads declaration to
'Yes'. Failure to accurately declare the presence of ads is a policy
violation and may result in your app's removal from Google Play. You
can visit our Help Center to learn more.
Our app does not have ads, yet we are being flagged as having the AdMob SDK. I think it's because we are using google play service library which includes a transitive dependency on AdMob.
Is it possible to build google play service lib only for GCM in eclipse ?
If yes, then how ?
Go for android studio dude, Google play services has a separate instance for Google Could messaging and you can add it into gradle like this.
compile 'com.google.android.gms:play-services-gcm:x.x.x'
I don't have much idea about eclipse. But in android studio we can do that.
Google Cloud Messaging
com.google.android.gms:play-services-gcm:8.3.0
you can check more on Google developer Link

Where to download Google Mobile Ads SDK

I want add ads to my application.
I made account on AdMob, but next step is download & integrate Google Mobile Ads SDK to Eclipse.
Here is download link
https://developers.google.com/mobile-ads-sdk/download?hl=en_US#downloadplay
With no download button. Its comic at all. If i change tab to iOS or WP8 there are .zip to download. But on Android tab there isnt any.
Install them with the SDK manager.
you also need this dependency (you can add it via maven):
com.google.android.gms:play-services
From that same link:
Google Mobile Ads is now offered through Google Play services. This is
the recommended way of enabling ads on your Android app.
And the instructions to set up Google Play Services is here.
You can get the latest SDK from following this link.
https://firebase.google.com/docs/admob/android/eclipse#download_the_google_play_services_sdk
Here you can get all the related ads SDK jar file that will be needed for integration to developme mobile app with ads.
http://www.java2s.com/Code/Jar/g/GoogleAdMobAdsSdk.htm

how to upgrade the GoogleAdmobAdSdk-6.4.1.jar?

Hi i have used flurryAgent.jar for flurry admob , i just want to replace furry into google admob sdk but it says need to upgrade if still using GoogleAdmobAdSdk-6.4.1.jar as from https://developers.google.com/mobile-ads-sdk/docs/#android
so i need to upgrade google admob sdk to latest and want to replace flurry into google admob sdk i have updated my android sdk into latest version and imported google play service lib as reference for my native app to support google add mob sdk but still getting error as Jar mismatch for google-play-services_lib
Please tell me how to resolve this error and how to upgrade the GoogleAdmobAdSdk-6.4.1.jar into latest?
As they where update instead of GoogleAdmobAdSdk-6.4.1.jar now they were replaced withe Google play service.first of all try to update Google play service in the sdk manager under Extras folder and the difference from before to latest admob you can find here and the Google Mobile Ads SDK

Where do I get the admob jar?

I'm sure this is a stupid question, but I can't find a link anywhere and their wiki just says "Copy the AdMob Jar file into that libs directory." but not where to get it.
There is a much simpler way for obtaining the AdMob SDK - just download it from
Google AdMob Ads SDK Downloads
A much simpler way is to go to :
Google AdMob Ads SDK Downloads.You will get the latest copy of Google AdMob SDK.
You have to register at http://www.admob.com/register/.
Then after activating your account, you need to config one application in your acccount. After that against that application Admob will provide you the Android SDK for Admob
containing admob.jar and working example (LunarLander).
The Google Mobile Ads SDK for Android is now a part of the Google Play services platform.
It is no longer available as a standalone SDK.
All the versions of available jars can be found here.
Use This Link
Android addmob sdk
Download and unzip and you will get the GoogleAdMobAdsSdk-6.4.1.jar file.
Latest AdMob Sdk Jar file:-
GoogleAdMobAdsSdk-6.4.1.jar (Click to Download)
If you want to download the Google Admob library for Android just hit the link you will get it in few seconds:
Google AdMob Ads SDK for Android 6.4.1:
For Android Studio:
compile 'com.google.android.gms:play-services:4.0.30'

Categories

Resources