Create Google Ads campaign

Changed on

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

Creates a campaign on the app's Google Ads account and starts serving it.

This spends money. The workspace needs a payment method on file and an account in good standing. Without either, the call returns a 402 and no campaign is created. A campaign is also created paused when the app's conversion tracking is not yet verified, so check status on the response rather than assuming it is serving.

Set campaign_type to PERFORMANCE_MAX. Google stopped accepting new Smart campaigns on September 23, 2026, so SMART and any other type return a 400 before anything is created. daily_budget_micros is in micros of the account currency and has a per-currency floor Google enforces. A budget below it comes back as a 400 carrying Google's reason, and the campaign is not created. Advertisers in the EU must declare whether the campaign carries political advertising. The call is rejected until that declaration is on file.

Google validates the campaign as it is created, so a rejected ad text, an unreachable landing page, or a budget below the floor comes back as a 400 with Google's own reason.

<Note>This endpoint accepts a personal API key. Workspace API keys are not authorized for it and are rejected with a 403.</Note>

<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>

post/api/apps/{app_id}/google-ads/campaigns

Request

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

Path parameters

app_idstring required

ID of the app to advertise.

Request body

campaign_namestring required

Name for the campaign.

campaign_type'PERFORMANCE_MAX'

Which campaign type to create.

daily_budget_microsinteger required

Daily budget in micros of the account currency, so 15000000 is 15.00. Google enforces a per-currency minimum and rejects anything below it with a 400.

landing_pagestring

URL the ads send clicks to. Google rejects the campaign if it cannot reach this page.

logo_urlstring

URL of the logo, at least 128×128. Required for a PERFORMANCE_MAX campaign. It follows the same hosting rules as images[].url, but unlike an image a logo Base44 cannot fetch fails the request instead of being left out. A logo that is not square is padded to square.

keyword_themesstring[]

Themes to match searches on.

headlinesstring[]

Ad headlines. Google reviews these against its advertising policies.

descriptionsstring[]

Ad description lines. Google reviews these against its advertising policies.

geo_targetsstring[]

Google Ads geo target constant IDs to target.

business_namestring

Business name shown in the ad.

phone_numberstring

Phone number shown in the ad, as a call asset. It must be in international format with the country code (e.g. +18506168085) — Google needs the country alongside the number, and any other format is rejected with a 400. Omit for no phone.

long_headlinesstring[]

Long headlines for a PERFORMANCE_MAX campaign, up to 5. Each is shortened to 90 characters without cutting a word. When you send none, the first headline is used. Google reviews these against its advertising policies.

excluded_geo_targetsstring[]

Google Ads geo target constant IDs to keep the ads out of. A location can't be both targeted and excluded.

excluded_termsstring[]

Search terms the ads must not show for, up to 25, matched exactly. A comma or semicolon splits an entry into separate terms.

schedule_typestring

Set to custom to run the ads only in the schedule_days windows. Any other value runs them all the time.

youtube_videosstring[]

Up to 5 YouTube videos for a PERFORMANCE_MAX campaign, each a YouTube link or an 11-character video ID. To use a video file, upload it with Upload a Google Ads video and pass the ID it returns.

advertise_productsboolean

Set to true to advertise the products in the app's product feed on a PERFORMANCE_MAX campaign. The feed must be ready, and it can't be combined with proximity. Available only when product campaigns are enabled for your account; otherwise the request returns a 404.

excluded_product_idsstring[]

Product IDs from the feed that the campaign must not advertise, up to 100. They stay in the feed. Only with advertise_products.

keywordsstring[]

Deprecated and not used for targeting. Send keyword_themes.

youtube_videostring

Deprecated. A single video, added to youtube_videos.

contains_eu_political_advertisingboolean

Whether the campaign carries political advertising. Required before an EU advertiser can create a campaign.

Example request

{
  "images": [
    {
      "url": "https://storage.base44.com/gads-assets/b7f3a1c8-landscape.png",
      "field_type": "MARKETING_IMAGE",
      "name": "Showroom landscape"
    }
  ],
  "sitelinks": [
    {
      "text": "Visit our showroom",
      "url": "https://example.com/showroom"
    }
  ]
}

Response

Successful Response

idstring required

Base44's ID for the campaign. Pass this as campaign_id on the other campaign endpoints.

google_campaign_idstring required

The campaign's ID in Google Ads. Empty while a just-created campaign is still being pushed to Google.

campaign_namestring required

Name shown for the campaign.

campaign_type'SMART' | 'PERFORMANCE_MAX' | 'SEARCH' | 'DISPLAY' | 'SHOPPING' | 'VIDEO' | 'DEMAND_GEN' | 'LOCAL' | 'UNKNOWN' required

Campaign type. Base44 creates PERFORMANCE_MAX; SMART campaigns are ones it created before Google retired Smart creation on 2026-09-23. The other values appear only on campaigns created outside Base44 and synced in.

status'ENABLED' | 'PAUSED' | 'REMOVED' | 'UNKNOWN' required

Serving state in Base44's cache. A status of REMOVED is a deleted campaign, which Google keeps for reporting.

daily_budget_microsinteger required

Daily budget in micros of the account currency, where 1,000,000 micros is one unit, so 15000000 is 15.00.

landing_pagestring required

URL the ads send clicks to.

geo_targetsstring[] required

Google Ads geo target constant IDs the campaign targets.

phone_numberstring required

Campaign phone number in E.164, empty when the campaign has none. Both channel types store the normalized form Google holds: a call asset on PERFORMANCE_MAX, smartCampaignSettings.phone_number on SMART.

learning_ends_atstring date-time nullable

When Smart Bidding's learning period is expected to end, about 14 days after creation, or null on a campaign that has not started learning.

review_statusstring required

Google's policy review status, passed through as Google reports it (REVIEWED, UNDER_REVIEW, …). Empty until the first sync after creation.

serving_statusstring required

Google's serving status, passed through as Google reports it. Can still report review gating after policy review clears, so read it alongside review_status.

primary_statusstring required

Google's summary of whether the campaign is serving well, passed through as Google reports it (ELIGIBLE, LIMITED, NOT_SERVING, …).

primary_status_reasonsstring[] required

Google's reasons behind primary_status, for example why a campaign is limited. Empty when there is nothing to explain.

created_datestring date-time required

When the campaign was created in Base44.

updated_datestring date-time required

When Base44 last changed its record of the campaign.

Example response

{
  "id": "68b1c0d4e7b91d003c45a1f2",
  "google_campaign_id": "21098765432",
  "campaign_name": "Spring sale in Berlin",
  "campaign_type": "PERFORMANCE_MAX",
  "status": "ENABLED",
  "daily_budget_micros": 15000000,
  "landing_page": "https://example.com/spring",
  "geo_targets": [
    "1003854"
  ],
  "phone_number": "+493012345678",
  "learning_ends_at": "2026-09-08T11:20:00Z",
  "review_status": "REVIEWED",
  "serving_status": "SERVING",
  "primary_status": "ELIGIBLE",
  "primary_status_reasons": [
    "CAMPAIGN_BUDGET_LIMITED"
  ],
  "created_date": "2026-08-25T11:20:00Z",
  "updated_date": "2026-08-25T14:05:00Z"
}

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • breaking

      removed the enum value SMART of the request property

    • info

      the endpoint scheme security PersonalAccessTokenAuth was added to the API

    • info

      the request property default value changed from SMART to PERFORMANCE_MAX