curl --location --request PUT '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": [
{
"lastUpdatedDate": null,
"ruleDetails": {
"ruleType": "PERFORMANCE",
"name": "Spring Budget Rule - Updated",
"duration": {
"dateRangeTypeRuleDuration": {
"startDate": "20230220",
"endDate": "20230308"
}
},
"recurrence": {
"type": "DAILY"
},
"budgetIncreaseBy": {
"type": "PERCENT",
"value": 75
},
"performanceMeasureCondition": {
"metricName": "ROAS",
"comparisonOperator": "GREATER_THAN_OR_EQUAL_TO",
"threshold": 2.0
}
},
"ruleId": "{{budgetRuleId}}",
"ruleState": "ACTIVE",
"ruleStatus": "ACTIVE",
"ruleStatusDetails": null
}
]
}'
{
"responses": [
{
"associatedCampaignIds": [
"102028944323821"
],
"code": "Ok",
"details": "Budget rule updated",
"ruleId": "f1eded08-af77-454a-b307-7783802657e2"
}
]
}