POST

Create Campaign


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a campaign and immediately activates it in the requested status. The campaign becomes visible in the site's Promote/Ads dashboard alongside any manually created campaigns.

Creating a Smart Campaign (campaignType SMART) is deprecated. Support for creating new Smart Campaigns will be removed in a future release, so use PERFORMANCE_MAX or PERFORMANCE_MAX_LEADS instead. Existing Smart Campaigns aren't affected and can still be retrieved, updated, paused, and resumed through this API.

PERFORMANCE_MAX creates a retail campaign from the account's linked Google Merchant Center feed, and fails with MERCHANT_CENTER_ACCOUNT_NOT_LINKED unless the account's merchantCenterAccountLinkStatus.status is ENABLED. It doesn't accept asset group assets, asset group signals, excluded keywords, a phone number or a url. To create a campaign from your own asset group (headlines, descriptions, images and logos) for the site's url, use PERFORMANCE_MAX_LEADS.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permission Scopes
Manage google ads campaigns
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/_serverless/pa-google/v1/campaigns

Errors
400Invalid Argument

There are 19 errors with this status code.

428Failed Precondition

There are 8 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?