Skip to main content
POST
Apply a Google Ads budget recommendation

Authorizations

api_key
string
header
required

Personal API key.

Path Parameters

app_id
string
required

ID of the app whose Google Ads campaigns to manage.

campaign_id
string
required

Base44's ID for the campaign, as returned in id by List campaigns. This is not the Google Ads campaign ID, which is reported separately as google_campaign_id.

Body

application/json

Request shape for the user-approved budget-recommendation apply.

recommendation_resource_name is Google's customers/.../recommendations/... id (used for idempotency + server-side re-resolution). The route re-fetches the recommendation from Google and applies Google's own recommended amount for the recommendation's target campaign, so the request body amount is advisory only (what the user saw) and a tampered value can't change what is applied. It is still bounds-checked by update_campaign_budget.

recommendation_resource_name
string
required

Google's identifier for the recommendation, taken from action_payload on the suggestion you are applying.

Minimum string length: 1
Example:

"customers/1234567890/recommendations/AbC123"

The daily budget the suggestion showed, in micros. This confirms what you saw rather than choosing an amount: if Google's current figure differs, the call is rejected with a 409 and nothing changes.

Example:

45000000

recommendation_type
string
default:""

The suggestion's recommendation_type, recorded for auditing.

Example:

"CAMPAIGN_BUDGET"

Response

The campaign's budget after the change.

The campaign's budget after applying Google's recommendation.

id
string
required

Base44's ID for the campaign whose budget changed.

Example:

"68b1c0d4e7b91d003c45a1f2"

daily_budget_micros
integer
required

The campaign's daily budget after the change, in micros.

Example:

45000000

already_applied
boolean | null

true when this recommendation had already been applied and nothing changed on this call, so a retry is safe. Absent when the call applied the change.

Example:

true