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

Creates one or more budget rules without the campaignId info? #221

Closed CoderWeiAden closed 6 months ago

CoderWeiAden commented 6 months ago

when i create one budget rule for sp Campaign , i do not know how to set the campaignId for this Params the document url is :

https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod#tag/BudgetRules/operation/CreateBudgetRulesForSPCampaigns

because the interface:

POST /sp/budgetRules

without campaignId ,so my request is success,but there is nothing happen,and the response is {},nothing,

please tell me how to create a budget for sp campaign ,and i wish the all params,thank you .

ramreal commented 6 months ago

Hello @CoderWeiAden, it seems like the only thing you need to do is associate the budget rule to the campaign. Here is a guide on how to that: https://advertising.amazon.com/API/docs/en-us/guides/rules/budget-rules/schedule-based#example-sponsored-products

ramreal commented 6 months ago

Thank you for submitting this issue! I will close this issue, but feel free to reopen if you have any further questions.