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
AdIdRetriever provides APIs for retrieving advertising IDs and advertising tracking state.

Constructors

new AdIdRetriever()

new AdIdRetriever(): AdIdRetriever

Returns

AdIdRetriever

Methods

fetchAdvertisingId()

static fetchAdvertisingId(): string Get the advertising ID. Return the advertising ID regardless of the advertising tracking state. Advertising ID is effective in bidding for “interest-based advertisements” only when advertising tracking is enabled. See more details on when to use advertising ID: https://developer.amazon.com/docs/policy-center/advertising-id.html#when-to-use-the-advertising-id

Returns

string

getMajorVersion()

static getMajorVersion(): number Get the Major version of the underlying native module. This can be used to make version checks.

Returns

number
Last modified on September 30, 2025