curl --location --request GET 'https://advertising-api.amazon.com/sp/budgetRules?pageSize=10' \
--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 ''
{
"budgetRulesForAdvertiserResponse": [
{
"createdDate": 1666125983543,
"lastUpdatedDate": 1666125983543,
"ruleDetails": {
"budgetIncreaseBy": {
"type": "PERCENT",
"value": 98
},
"duration": {
"dateRangeTypeRuleDuration": {
"endDate": null,
"startDate": "20221018"
},
"eventTypeRuleDuration": null
},
"name": "Test 2",
"performanceMeasureCondition": {
"comparisonOperator": "GREATER_THAN_OR_EQUAL_TO",
"metricName": "CTR",
"threshold": 1
},
"recurrence": {
"daysOfWeek": null,
"type": "DAILY"
},
"ruleType": "PERFORMANCE"
},
"ruleId": "fc8cd791-e1cd-4a23-934a-3214e11295c3",
"ruleState": "ACTIVE",
"ruleStatus": "ACTIVE",
"ruleStatusDetails": null
},
{
"createdDate": 1666125918468,
"lastUpdatedDate": 1666125918468,
"ruleDetails": {
"budgetIncreaseBy": {
"type": "PERCENT",
"value": 98
},
"duration": {
"dateRangeTypeRuleDuration": {
"endDate": "20221021",
"startDate": "20221018"
},
"eventTypeRuleDuration": null
},
"name": "Test 1",
"performanceMeasureCondition": null,
"recurrence": {
"daysOfWeek": null,
"type": "DAILY"
},
"ruleType": "SCHEDULE"
},
"ruleId": "aaae82a7-6114-4825-8d37-574b98fbfd5a",
"ruleState": "ACTIVE",
"ruleStatus": "ACTIVE",
"ruleStatusDetails": null
},
{
"createdDate": 1666125878397,
"lastUpdatedDate": 1666125878397,
"ruleDetails": {
"budgetIncreaseBy": {
"type": "PERCENT",
"value": 98
},
"duration": {
"dateRangeTypeRuleDuration": null,
"eventTypeRuleDuration": {
"endDate": "20221101",
"eventId": "b7c1f022-e721-5635-8bce-8375ce163ebd",
"eventName": "Halloween",
"startDate": "20221027"
}
},
"name": "Halloween",
"performanceMeasureCondition": null,
"recurrence": {
"daysOfWeek": null,
"type": "DAILY"
},
"ruleType": "SCHEDULE"
},
"ruleId": "1698dab1-e5ef-4716-8b45-f10e37765a03",
"ruleState": "ACTIVE",
"ruleStatus": "PENDING_START",
"ruleStatusDetails": null
}
],
"nextToken": null
}