Changes the average daily budget of a Google Ads campaign, in the account currency (a change to the connected ad account that changes spend); supports validateOnly.
curl -X POST "https://api.primaryapi.com/v1/run/google-ads.update_campaign_budget" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"customerId":"1234567890","campaignId":"111","amount":75}'{
"output": {
"found": true,
"data": {
"previousAmount": 50,
"amount": 75,
"amountMicros": 75000000,
"changed": true, …
}
},
"credits": 1
}Input and output
7 fields
1234567890.111.75.customerId THROUGH a manager (MCC) account: that manager account’s id (10 digits). Sent as the login-customer-id header. Omit for accounts the Google account can open directly.12 fields
Good to know
Changes your account. This call creates, edits or deletes something in the connected account, live. Confirm before running it. With an Idempotency-Key it never runs twice, and monitors can’t schedule it.
WRITE: changes how much the connected Google Ads account may spend.
amount is the average DAILY budget in the account’s own currency (not USD unless the account is in USD). Google may spend up to 30.4 times it in a month.
Needs the Google Ads capability. A Google account allowed to edit that ad account.
Use validateOnly. True to check first.
A budget shared by several campaigns is refused unless allowSharedBudget is true.
The same key and credits work for every API.