The Campaign API creates, updates, launches, pauses, and deletes Google Ads campaigns for a Wix site. It supports Smart campaigns (auto-managed by Google) and Performance Max (PMAX) campaigns (multi-channel using asset groups). PMAX Leads is a Performance Max variant focused on lead generation.
Creating new Smart campaigns is deprecated. Support for it will be removed in a future release, so use Performance Max or PMAX Leads instead. Existing Smart campaigns aren't affected and can still be retrieved, updated, paused, and resumed.
GetCampaignChangeLog.CreateCampaign creates a campaign immediately in the status you specify, including DRAFT. If no status is provided, the campaign defaults to PAUSED.
LaunchCampaign to activate a campaign for the first time. Use ResumeCampaign to reactivate a campaign that was previously live and then explicitly paused.PauseCampaign to stop a running campaign without losing its configuration. Pass a scheduledResumeDate to schedule an automatic resume — a job runs at that time and fires a CampaignAutoResumed domain event. Pass null to cancel an existing scheduled resume.UpdateCampaign isn't a partial update. Retrieve the campaign with GetCampaign or ListCampaigns, change only the fields you want to update, and specify the entire campaign. The fields to update are inferred from the specified campaign, and fields you omit may be cleared or cause the request to fail.GetCampaignChangeLog to retrieve the full event history for a campaign. GetCampaignStatusHistory is a legacy method.A campaign's status is read-only and synced from Google Ads. It may change without developer action — for example, due to a policy violation or billing issue. The possible values are:
DRAFT — The campaign was created but not yet launched.LIVE — The campaign is active and serving ads.PAUSED — The campaign was paused by the user.LEARNING — The campaign is in the learning phase (PMAX Leads only, approximately 28 days after launch).IN_REVIEW — Wix is finalizing the payment setup for the campaign.DISAPPROVED — The campaign or its assets violate Google Ads policy and will not serve.NOT_SERVING — The campaign is not serving due to budget limitations.ENDED — The campaign has ended (PMAX campaigns with an endDate).ERROR — The campaign is in an error state.It's important to note the following points before starting to code:
DeleteCampaign permanently deletes the campaign. Deleted campaigns cannot be recovered.utm_campaign parameter in the campaign's final URL suffix for analytics attribution.Last updated: 20 October 2026