---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://appmetrica.yandex.by/docs/en/sdk/flutter/analytics/get-ad-id.md
  - https://appmetrica.yandex.by/docs/ru/sdk/flutter/analytics/get-ad-id.md
  - href: en/sdk/flutter/analytics/get-ad-id.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.by/docs/en/llms.txt

# Getting advertising IDs

An advertising ID is a unique Google Play service identifier for displaying ads to users who agree to see personalized ads. The user can disable the personalization of ads or reset the ID in settings. In this case, advertising networks won't be able to use it to select relevant ads. The accuracy of traffic attribution will also decrease significantly.

For more information about getting advertising IDs, see the [page](https://appmetrica.yandex.by/docs/en/sdk/android/get-ad-id.md).

## Excluding the library of advertising IDs from the list of dependencies {#exclude}

The described method only works for the plugin version 1.0.0 and higher.

If you don't want to get advertising IDs (for example, for children's apps), add the following lines to the `android/app/build.gradle` file:

```java translate=no
configurations {
    all*.exclude group: 'com.yandex.android', module: 'mobmetricalib-identifiers'
}
```

<!-- source: en/_includes/feedback-button-3.md -->
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

<a href="../../../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../../../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button-3.md -->
