amzn / ads-advanced-tools-docs

Code samples and supplements for the Amazon Ads advanced tools center
https://advertising.amazon.com/API/docs/en-us/index
MIT No Attribution
89 stars 33 forks source link

Missing Keywords in SB API without campaignIdFilter #312

Open ofhey opened 1 week ago

ofhey commented 1 week ago

Description:

I am experiencing an issue with the Sponsored Brands Keywords API. When querying without the campaignIdFilter, I do not receive all the expected keywords. However, if I include the campaignIdFilter, the keywords for that campaign are returned correctly.

Steps to Reproduce:

  1. Make a GET request to https://advertising-api.amazon.com/sb/keywords with the following parameters:
    • stateFilter=enabled,paused,archived
    • No campaignIdFilter
  2. Observe the incomplete results.
  3. Add campaignIdFilter with a specific campaign ID, and the missing keywords are retrieved.

Expected Behavior:

The API should return all keywords when filtering by state, regardless of whether the campaignIdFilter is applied.

Actual Behavior:

The API only returns complete results when the campaignIdFilter is included.

Environment:

Additional Context:

This seems to affect querying for keywords across multiple campaigns. A similar issue has been reported here: Link to related discussion​:contentReference[oaicite:0]{index=0}​:contentReference[oaicite:1]{index=1}. Please let me know if additional information is needed.