Skip to main content
PATCH

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
field
enum<string>
required

Which part of the campaign to change. One section per request.

Available options:
name,
budget,
details,
ad_copy,
targeting,
images,
asset
value
any
required

The new value, shaped by field. name takes a string. budget takes the daily budget in micros, as a number. ad_copy takes an object with any of headlines, descriptions, long_headlines, and business_name. targeting, details, images, and asset take an object whose shape follows that section of the campaign.

Response

The campaign ID plus only the section that changed.

What an update returns: the ID, plus only the section that changed.

Every field except id is optional because the handler returns one section per request, so a rename comes back as id + campaign_name and a budget change as id + daily_budget_micros.

id
string | null

Base44's ID for the campaign. Absent when you changed images, which reports updated_field_types instead.

Example:

"68b1c0d4e7b91d003c45a1f2"

campaign_name
string | null

Present when you changed name.

Example:

"Spring sale in Berlin"

daily_budget_micros
integer | null

Present when you changed budget.

Example:

15000000