publishCampaign( )


Publishes and sends a specified campaign.

If the email_distribution_options object isn't passed in the request, the campaign is only published as a landing page.

Method Declaration
Copy
Method Parameters
campaignIdstringRequired

Campaign ID


optionsPublishCampaignOptions

Options to use when publishing a campaign.

Returns
Return Type:Promise<PublishCampaignResponse>
Errors
428Failed Precondition

There is 1 error with this status code.

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

Did this help?