Location in SDK 6

If your application uses Location Services, the SDK will automatically send location data on the publisher’s behalf with ad requests. Location data enables more relevant advertisements to reach your users. The SDK uses passive location provider in order to be respectful of the end-user’s battery.

Enabling Location in Your App

To enable location within your application, simply include the <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> permission in your Android manifest file.

Note: SDK 6 makes use of the passive provider model for accessing location to minimize battery usage.

Disabling SDK 6 Location

If your application does not need location and you do not want to use location for targeting, simply remove the <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> permission from you Android manifest file.

There may be circumstances where a your application may have access to location, but you do not wish to use that data for monetization purposes. For situations like this, it is possible to explicitly disable SDK 6 from accessing location data. To explicitly disable sending location data with ad requests set the MMSDK.setLocationEnabled method to false.

Note: SDK 6 makes use of the passive provider model for accessing location to minimize battery usage.