# Kepler adId retriver

**URL:** <https://community.amazondeveloper.com/t/kepler-adid-retriver/20403>\
**Category:** Q&A\
**Created:** [September 23, 2025, 9:53pm UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403 "2025-09-23T21:53:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![manoj\_d\_b](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@manoj\_d\_b](https://community.amazondeveloper.com/u/manoj_d_b)\
**Post date:** [September 23, 2025, 9:53pm UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/1 "2025-09-23T21:53:33Z")

</div>

I am trying to retrieve kepler device adid, I am followed the respective document → [AdIdRetriever](https://d32acggsvimfuc.cloudfront.net/NonPublicAPIsDocumentation/AdIdRetrieverapidocs/index.html?Expires=1777400056&Signature=2F1TOOIlpYhEnZ8~~j4hTKVTNos2ScvGtMwJDmR2f-olkyYb6LkQ6BS6GSiMWZ803b2FwJyAoNHXrsxKR5ED567GhjfAW2g5nzrtwVooY~nzHdpXtoxxFGI8f7S7yHr42142NJXRrOG9Z5LYF3CAOHGvdtiVYm8XZPeaoDlYJ6wafiFwzJCwPKdo0R5~H4yyslM31IPI-2UjRI72YGLrXMpZ9pKl87hN~AMXU7LFy4dFBJcTEqU1aStnxFZduhaEf5GXPbRCVvd8MGL-SbUn7nZeHB4J5hyuIIku19gySBRufH4e5mQwSbK16mNWqntOPydlajRGhbVJ~Z0iv5AYpg__&Key-Pair-Id=K2P1VJSLUJ0Y8)

When I add the dependency

“@amzn/kepler-adid-retriever”: “^1.0.4”,

and Manifest.toml changes

[wants]  
[[wants.service]]  
id = “com.amazon.admanager.service.main”

and try to build kepler app it’s giving me below error

2025-09-23 14:52:04.873 [warning] npm error code E401

npm error Incorrect or missing password.

2025-09-23 14:52:04.873 [warning] npm error If you were trying to login, change your password, create an

npm error authentication token or enable two-factor authentication then

npm error that means you likely typed your password in incorrectly.

npm error Please try again, or recover your password at:

npm error [https://www.npmjs.com/forgot](https://www.npmjs.com/forgot)

npm error

npm error If you were doing some other operation then your saved credentials are

npm error probably out of date. To correct this please try logging in again with:

npm error npm login

Note: I do have other dependency from @amzn registry.

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [September 24, 2025, 11:51am UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/3 "2025-09-24T11:51:53Z")

</div>

Hi @manoj_d_b  
Can you please verify if the contents of `~/.npmrc` for (Step:3) Set up Amazon repository access in [this document](https://developer.amazon.com/docs/kepler-tv/install-mac-linux.html#sdk-installation) matches what you used for your setup ?  
Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![manoj\_d\_b](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@manoj\_d\_b](https://community.amazondeveloper.com/u/manoj_d_b)\
**Post date:** [September 24, 2025, 6:09pm UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/4 "2025-09-24T18:09:55Z")

</div>

Hi @Ivy_Mahajan

Yes, the mentioned configuration is set in .npmrc file

![Screenshot 2025-09-24 at 11.09.42 AM](https://d3mq594dkmpl37.cloudfront.net/optimized/2X/c/cc27e4f4b341a6b1b9d40d81bae3eece56c894f5_2_690x59.png)

---

<div class="post-metadata">

**Author:** ![amen](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@amen](https://community.amazondeveloper.com/u/amen)\
**Post date:** [September 24, 2025, 10:04pm UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/5 "2025-09-24T22:04:08Z")

</div>

Hi @manoj_d_b,

This could be a token expiration issue. The Kepler token has a validity period of 90 days, after which a new token is automatically generated (see [this](https://developer.amazon.com/docs/kepler-tv/install-mac-linux.html#step-1-get-an-authentication-token) page). Kindly verify that your token hasn’t expired using the [Kepler Token Details](https://developer.amazon.com/kepler/console/kepler-token) page. Please let us know if you still face issues after.

---

<div class="post-metadata">

**Author:** ![manoj\_d\_b](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@manoj\_d\_b](https://community.amazondeveloper.com/u/manoj_d_b)\
**Post date:** [September 24, 2025, 11:12pm UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/6 "2025-09-24T23:12:17Z")

</div>

Hi @amen

I believe with respect to latest kepler version 0.20.3719 we no longer need this token, it’s replaced with ~./npmrc file configuration with generic token. Correct me if I am wrong!!

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [September 25, 2025, 7:28am UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/7 "2025-09-25T07:28:50Z")

</div>

Hi @manoj_d_b  
The Authorization Token is still unique, it’s not generic. It’s part of `~/.npmrc` content. You can follow [this document](https://developer.amazon.com/docs/kepler-tv/install-mac-linux.html#sdk-installation) to verify if the contents of your setup and the contents of `~/.npmrc` matches.

---

<div class="post-metadata">

**Author:** ![manoj\_d\_b](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@manoj\_d\_b](https://community.amazondeveloper.com/u/manoj_d_b)\
**Post date:** [September 25, 2025, 6:21pm UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/9 "2025-09-25T18:21:24Z")

</div>

Hi @Ivy

Yes my Token matches with the document u shared, it’s working for other @amzn dependencies I am facing above issue with following dependency only “@amzn/kepler-adid-retriever”: “^1.0.4”.

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [September 26, 2025, 8:19am UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/10 "2025-09-26T08:19:17Z")

</div>

Hi @manoj_d_b,

I tried to replicate this but successfully built the project without encountering the issue you reported.  
Although, Kepler SDK v_0.20.x_ supports `@amzn/kepler-adid-retriever` API v_1.0.12_, both of us used `"@amzn/kepler-adid-retriever": "^1.0.4"` in package.json.  
The system automatically used v_1.0.12_, ruling out API version as the cause.

To investigate further, could you please share your complete build logs?  
In the meantime I’ll also try to arrange a troubleshooting session for you with your Amazon Contact.  
Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![manoj\_d\_b](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@manoj\_d\_b](https://community.amazondeveloper.com/u/manoj_d_b)\
**Post date:** [September 29, 2025, 3:11am UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/11 "2025-09-29T03:11:05Z")

</div>

Hi @Ivy

sorry for the delayed response, I am able to import the following dependency!!

The issue was token path access from .env

Thank you

---

<div class="post-metadata">

**Author:** ![Ivy](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/ivy/32/5637_2.png) [@Ivy](https://community.amazondeveloper.com/u/Ivy)\
**Post date:** [September 29, 2025, 6:28am UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/12 "2025-09-29T06:28:47Z")

</div>

Hi @manoj_d_b  
Thank you for letting us know ! If you require any further assistance, please reach out to us.  
Warm regards,  
Ivy

---

<div class="post-metadata">

**Author:** ![system](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/system/32/5065_2.png) [@system](https://community.amazondeveloper.com/u/system)\
**Post date:** [October 21, 2025, 7:14am UTC](https://community.amazondeveloper.com/t/kepler-adid-retriver/20403/14 "2025-10-21T07:14:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
