michael
michael

Reputation: 3290

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?

Upvotes: 6

Views: 16779

Answers (3)

Mateen Chaudhry
Mateen Chaudhry

Reputation: 661

it may help someone

You should never request location permissions from users for the sole purpose of advertising.

https://support.google.com/admob/answer/6373176?hl=en

Upvotes: 2

Dan Alboteanu
Dan Alboteanu

Reputation: 10232

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

this way you will get ads from the area(country) where the device is located

Upvotes: 1

lynvie
lynvie

Reputation: 1038

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.

Upvotes: 2

Related Questions