Update Google Ads monthly spend cap

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Sets the account's monthly spend cap.

Send monthly_limit_dollars in whole units of the account currency, not micros. It must be above zero and Base44 enforces an upper bound, so an unreasonably large value is rejected with a 422.

Raising the cap opens more spend, so it needs a chargeable account and a workspace that is not on a billing hold. Base44 pushes the new cap to Google Ads, so Google can reject it and that comes back as a 400 with its reason.

<Warning>A 409 means the change may or may not have been applied. The request to Google Ads timed out after it was sent. Read the campaign back with Get campaign before retrying, or you can end up applying it twice.</Warning>

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time. Send only the fields documented here. Other request fields are not supported and their behavior can change.</Warning>

patch/api/apps/{app_id}/google-ads/accounts/{account_id}/budget-limit

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/google-ads/accounts/{account_id}/budget-limit
  • Auth: HTTP bearer

Path parameters

app_idstring required

ID of the app whose Google Ads campaigns to manage.

account_idstring required

ID of the Google Ads account, as returned in id by Get Google Ads account. An account that belongs to a different app returns a 403.

Request body

monthly_limit_dollarsinteger required

Monthly spend cap in whole units of the account currency, not micros. Must be above zero, and Base44 enforces an upper bound.

Response

Successful Response

account_idstring required

Account the cap applies to.

monthly_limit_dollarsinteger required

The cap now in effect, in whole units of the account currency rather than micros.

Example response

{
  "account_id": "68b1c0d4e7b91d003c45a1f8",
  "monthly_limit_dollars": 500
}

Changes