Google Admob SDK replacement issue in android application

六月ゝ 毕业季﹏ 提交于 2019-12-11 19:18:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!