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
87 stars 33 forks source link

How to determine expressionType value? #258

Closed pythonicor closed 3 months ago

pythonicor commented 3 months ago

Describe the bug createTargetingClauses's expressionType[auto, manual] description is unclear,it is inconsequential arg?

URL of the content https://advertising.amazon.com/API/docs/en-us/sponsored-display/3-0/openapi#tag/Targeting/operation/createTargetingClauses

Description of what the documentation currently says It's say Tactic T00020 ad groups only allow manual targeting.But I create a group with parent campaign tactic is T00020 campaign,and I create targeting select similarProduct equals manual ,return code SUCCESS.When I get /sd/targets/{targetId} that discover the expressionType in data is auto It's say Tactic T00030 Expressions must specify either auto ASIN-grain (exact products), manual ASIN-grain (similar products), or manual category-grain targeting..But I create a group with parent campaign tactic is T00030 campaign,and I create targeting select similarProduct equals auto ,return code SUCCESS.

Description of what the documentation should say I want to know the expressionType real meaning.

Screenshots T00020 request body: [ { "expression": [ { "type": "similarProduct", } ], "bid": "1.25", "adGroupId":, "expressionType": "manual", "state": "enabled" } ] return: [{'code': 'SUCCESS', 'targetId':}]

T00030 request body: [ { "expression": [ { "type": "views", "value": [ { "type": "similarProduct" }, { "type": "lookback", "value": "30" } ] } ], "bid": "1.25", "adGroupId":, "expressionType": "auto", "state": "enabled" } ] return: [{'code': 'SUCCESS', 'targetId':}]