使用admob android时应包括哪些权限 [英] Which permissions should i include when i use admob android
问题描述
当我使用admob android使其通过用户位置来提高广告收入时,我应该包括哪些权限?
i正在使用这些权限和功能
Which permissions should i include when i use admob "android" to make it using user location to improve earning from ads? i am using these permissions and features
<meta-data
android:name="ADMOB_ALLOW_LOCATION_FOR_ADS"
android:value="true" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-feature android:name="android.hardware.location.gps" />
我的情况不需要什么许可?我不想让应用程序要求用户在安装时使用位置,并让admob同时使用位置数据
What permission unneeded in my case? I dont want app ask user to use location when he install it and let admob using location data at the same time
推荐答案
构建Android应用时,无需包含任何特殊权限即可使用AdMob。 SDK随附具有适当权限的自己的清单文件,这些清单文件将通过清单合并。
You don't need to include any special permissions to use AdMob when building an Android app. The SDK comes with its own manifest file with the appropriate permissions, and these will be included in your app's final APK automatically via manifest merging.
Android Studio当前存在一个错误,该错误可能导致使用移动广告时出现权限警告SDK,但您的应用仍然可以编译并正常运行。我们的例如,Native Ads Express 在其应用清单中没有权限,但仍然可以正确加载和显示广告。
There's currently a bug in Android Studio that can cause a warning about permissions to appear when using the Mobile Ads SDK, but your app should still compile and run just fine. Our official sample for Native Ads Express has no permissions in its app manifest, for example, but still loads and displays ads correctly.
这篇关于使用admob android时应包括哪些权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!