问题
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
回答1:
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.
来源:https://stackoverflow.com/questions/15440284/google-admob-sdk-replacement-issue-in-android-application