AdMob在Android中需要哪些权限 [英] What are the permissions AdMob requires in android

查看:183
本文介绍了AdMob在Android中需要哪些权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google的网站上,他们只提及其中两个:

On Google’s site they only mention two of them:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

关于位置什么?可以吗?

Nothing about location? Is it ok?

我在论坛上注意到人们还使用其他权限,例如:

I noticed on forums that people also use other permissions, like:

<meta-data android:value="true" android:name="ADMOB_ALLOW_LOCATION_FOR_ADS" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />     
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> 

可以只使用前两个,还是应该将列表扩展到其他位置(以其他方式?)?

Is it ok to use only those two first, or shall I extend my list to location (anything else?) in order to serve better profiled ads?

推荐答案

如果启用了这些权限,则允许admob对您的广告进行地理位置定位.

If you enable these permissions then this allows admob to geo-target your ads.

当然,声明的唯一理由:

Of course, the only reason to declare:

<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" /> 

是因为您要在开发过程中尝试不同的位置.在发布应用时,您不需要此权限.

is because you want to try out different locations during development. You don't need this permission when your app is released.

这篇关于AdMob在Android中需要哪些权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆