> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Campaign

# Type: Campaign Object

# Link: https://dev.wix.com/docs/api-reference/business-management/marketing/emails/email-marketing/campaign/campaign-object.md

## Description: An email marketing campaign that distributes promotional content to a set of contacts via email and a public landing page. A campaign tracks engagement statistics such as opens, clicks and bounces after the email is sent.

## Schema:

```json
 Type: Campaign Object | type: Campaign
 Description: An email marketing campaign that distributes promotional content to a set of contacts via email and a public landing page. A campaign tracks engagement statistics such as opens, clicks and bounces after the email is sent.
       - name: campaignId  | type: string | description: Campaign ID.
       - name: title  | type: string | description: Campaign title. Used to identify the campaign in the dashboard. Defaults to the email subject if not provided.
           - name: value  | type: string | description: 
       - name: firstImageUrl  | type: string | description: URL of the first image after the logo.
       - name: editorType  | type: string | description: Editor type that determines the format of `composerDataJson`.
           enum: WEB, MOBILE, MJML, HTML
       - name: status  | type: string | description: Campaign status.
           enum: ACTIVE, ARCHIVED, DELETED
       - name: visibilityStatus  | type: string | description: Whether the campaign is a draft, published, or a template.
           enum: DRAFT, PUBLISHED, TEMPLATE
       - name: distributionStatus  | type: string | description: Campaign distribution status.
           enum: NOT_STARTED, SCHEDULED, IN_DETECTION, IN_MODERATION, SAMPLING, SENDING, REJECTED, TERMINATED, DISTRIBUTED, PAUSED
       - name: publishingData  | type: PublishingData | description: Publishing data. The field is returned empty if the campaign isn't published.
           - name: landingPageUrl  | type: string | description: Landing page URL.
           - name: statistics  | type: CampaignStatistics | description: Campaign engagement statistics.
               - name: landingPage  | type: LandingPageStatistics | description: Landing page statistics.
               - name: emailCampaign  | type: DistributionStatistics | description: Email distribution statistics.
               - name: total  | type: TotalStatistics | description: Combined statistics of landing page and email distribution.
           - name: datePublished  | type: string | description: Date and time the campaign was published.
               - name: seconds  | type: string | description: 
               - name: nanos  | type: number | description: 
           - name: wasResentToNonOpeners  | type: boolean | description: Whether the campaign was resent to recipients who didn't open the original email.
       - name: dateCreated  | type: string | description: Date and time the campaign was created.
       - name: dateUpdated  | type: string | description: Date and time the campaign was updated.
       - name: dateScheduled  | type: string | description: Date and time the campaign is scheduled to be sent. Returned only for campaigns published with `emailDistributionOptions.sendAt` or resent with `sendAt`, and kept after the campaign is sent or its scheduling is paused.
       - name: rejectionData  | type: RejectionData | description: Reasons the campaign was rejected. Returned only for campaigns with a `REJECTED` distribution status.
           - name: rejectionReasons  | type: Array<Enum> | description: Reasons the campaign was rejected.
               enum: LOW_ENGAGEMENT, SENDER_DETAILS, SPAM_TRAPS, OTHER, ADULT_SEXUAL_CONTENT, AFFILIATE_MARKETING, BETTING_OR_GAMBLING, CREDIT_REPAIR_OR_DEBT_RELIEF, GET_RICH_QUICK_SCHEME, ILLEGAL_SUBSTANCES_OR_WEAPONS, MISLEADING_SUBJECT_LINE, TRADING_OR_CRYPTOCURRENCIES, UNSOLICITED_CONTENT, MAX_AUDIENCE_SIZE_EXCEEDED
       - name: emailSubject  | type: string | description: Email subject of the campaign (initially copied from the template).
       - name: samplingData  | type: SamplingData | description: SamplingData is only present if the campaign's audience was sampled before sending. Populated once the campaign enters SAMPLING. If the sample fails, distributionStatus is TERMINATED.
           - name: totalContactCount  | type: number | description: Number of contacts in the campaign's audience.
           - name: newContactCount  | type: number | description: Number of audience contacts that were not previously emailed.
           - name: sampleContactCount  | type: number | description: Number of contacts the campaign was sent to as the sample.
           - name: evaluation  | type: SamplingEvaluation | description: Sampling results. Only present after the sample was evaluated.
               - name: hardBounces  | type: SamplingThresholdCheck | description: Hard bounces check.
               - name: spamComplaints  | type: SamplingThresholdCheck | description: Spam complaints check.
               - name: spamTraps  | type: SamplingThresholdCheck | description: Spam traps check.
           - name: userActions  | type: SamplingUserActions | description: Actions the user took after sampling failed. Read-only: set when the user acts in the Wix dashboard.
               - name: labelKey  | type: string | description: Key of the label that was added to the contacts the campaign wasn't sent to.
               - name: dateResent  | type: string | description: Date and time the campaign was resent to the contacts it wasn't sent to.

```