> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/ios-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/ios-integration/advanced/geo-tracking.md).

# Geo Tracking

### Geo Tracking Usage <a href="#geo-tracking-usage" id="geo-tracking-usage"></a>

Gravite and some of the ad networks included in AATKit will make use of location services if your app is authorized to do so and if your app allows AATKit and ad networks to use the geo location information, too. By default, usage of location information is disabled. Please note, that allowing the usage of geo location information for advertising may leverage your revenues.

Ad networks that use location services are:

* AdMob
* AppNexus
* DFP
* InMobi

If you want to give AATKit access to your geo data, please enable geo tracking with the [`AATConfiguration`](https://docs.gravite.net/aatkit/ios/docs/documentation/aatkit/aatconfiguration) object passed to AATKit’s initialization.

### Enabling and disabling Geo Tracking <a href="#enabling-and-disabling-geo-tracking" id="enabling-and-disabling-geo-tracking"></a>

Configure AATKit like this:

{% tabs %}
{% tab title="Swift" %}

```swift
let configuration = AATConfiguration()
configuration.isUseGeoLocation = true
AATSDK.initAATKit(with: configuration)
```

{% endtab %}

{% tab title="Objective-C" %}

```objectivec
AATConfiguration* configuration = [[AATConfiguration alloc] init];
configuration.isUseGeoLocation = YES;
[AATSDK initAATKitWith:configuration];
```

{% endtab %}
{% endtabs %}

### Change Geo Tracking Setting <a href="#change-geo-tracking-setting" id="change-geo-tracking-setting"></a>

You can change this setting at runtime:

{% tabs %}
{% tab title="Swift" %}

```swift
let runtimeConfiguration = AATRuntimeConfiguration()
runtimeConfiguration.isUseGeoLocation = true
AATSDK.reconfigure(configuration: runtimeConfiguration)
```

{% endtab %}

{% tab title="Objective-C" %}

```objectivec
AATRuntimeConfiguration* runtimeConfiguration = [[AATRuntimeConfiguration alloc] init];
runtimeConfiguration.isUseGeoLocation = YES;
[AATSDK reconfigureWithConfiguration: runtimeConfiguration];
```

{% endtab %}
{% endtabs %}
