curl --location --request POST 'https://www.amazon.com/ap/oa/sp/budgetRules' \
--header 'Amazon-Advertising-API-ClientId: {{client_id}}' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Amazon-Advertising-API-Scope: {{profileId}}' \
--header 'Accept: application/json' \
--header 'Content-Type: text/plain' \
--data-raw '{
"budgetRulesDetails": [
{
"name": "ACOS < 20%",
"ruleType": "PERFORMANCE",
"duration": {
"dateRangeTypeRuleDuration": {
"startDate": "20230301",
"endDate": "20230430"
}
},
"recurrence": {
"type": "DAILY"
},
"budgetIncreaseBy": {
"type": "PERCENT",
"value": 20
},
"performanceMeasureCondition": {
"metricName": "ACOS",
"threshold": 20,
"comparisonOperator": "LESS_THAN_OR_EQUAL_TO"
}
}
]
}'
{
"responses": [
{
"associatedCampaignIds": null,
"code": "Ok",
"details": "Budget rule created",
"ruleId": "98ef675d-e436-4506-85c9-c60345318e08"
}
]
}