Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the permissions AdMob requires in android

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?

like image 387
michael Avatar asked Nov 04 '22 05:11

michael


1 Answers

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.

like image 101
lynvie Avatar answered Nov 08 '22 05:11

lynvie