Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Ad ID Retriever is a service on device that retrieves advertising ID and advertising tracking state.
Use cases:
  • Retrieve the app advertising ID for bidding, reporting impressions, and reporting attributions of ads. (fetchAdvertisingId)
  • Retrieve a user’s preference on interest-based advertisements. (isAdvertisingTrackingEnabled)

Get Started

Setup

  1. Add the following library dependency to the dependencies section of your package.json file.
  1. In your manifest.toml, add the following privileges required to access Ad ID Retriever.

Usage

This example demonstrates how to implement the Ad ID Retriever service. The example provides a simple UI with two buttons that showcases both core functionalities: fetching the advertising ID and checking the advertising tracking status.

Classes


Last modified on February 13, 2025