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

# Type: Campaign Object

# Link: https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/campaign-v1/campaign-object.md

## Description: A Google Ads campaign managed through the Wix Promote interface.
A campaign can be either a Smart Campaign or a Performance Max campaign, determined by the campaignType field.
New Smart Campaigns can no longer be created, so use PERFORMANCE_MAX_LEADS or PERFORMANCE_MAX instead.
Existing Smart Campaigns aren't affected.

## Schema:

```json
 Type: Campaign Object | type: Campaign
 Description: A Google Ads campaign managed through the Wix Promote interface.
A campaign can be either a Smart Campaign or a Performance Max campaign, determined by the campaignType field.
New Smart Campaigns can no longer be created, so use PERFORMANCE_MAX_LEADS or PERFORMANCE_MAX instead.
Existing Smart Campaigns aren't affected.
       - name: id  | type: string | description: Unique campaign ID.
           - name: value  | type: string | description: 
       - name: accountId  | type: string | description: Wix internal account ID associated with this campaign.
       - name: campaignType  | type: string | description: Type of the campaign, either Smart or Performance Max. Set when the campaign is created and can't be changed.
           enum: UNKNOWN, SMART, PERFORMANCE_MAX, PERFORMANCE_MAX_LEADS
       - name: status  | type: string | description: Current campaign status, synced from Google Ads on each read.
           enum: UNKNOWN, LIVE, PAUSED, ENDED, IN_REVIEW, ERROR, DISAPPROVED, NOT_SERVING, DRAFT, LEARNING
       - name: resourceName  | type: string | description: Google Ads resource name for this campaign, e.g. customers/{customerId}/campaigns/{campaignId}.
       - name: name  | type: string | description: Display name of the campaign.
       - name: createdDate  | type: string | description: Date and time the campaign was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the campaign was last updated.
       - name: actionDate  | type: string | description: Date and time of the most recent lifecycle action (pause, resume, launch, etc.).
       - name: budget  | type: CampaignBudget | description: Daily budget for the campaign.
           - name: resourceName  | type: string | description: Google Ads resource name for the campaign budget.
           - name: amountMicros  | type: string | description: Daily budget amount in micros using the account's local currency. 1,000,000 micros equals 1 currency unit (e.g. 6,400,000 = $6.40). Google caps monthly spend at 30.4 times this amount. Minimum is approximately $6.40 USD for standard subscribers; maximum is approximately $127.60 USD standard, or up to $1,500 for high-spend accounts.
       - name: locations  | type: Array<LocationCriterion> | description: Geographic locations targeted by this campaign.
           - name: resourceName  | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}
           - name: location  | type: Location | description: The location being targeted.
               - ONE-OF:
                   - name: geoTargetConstant  | type: string | description: Google geo target constant resource name (e.g. geoTargetConstants/1023191).
                   - name: proximity  | type: ProximityAddress | description: Proximity criterion defining a circular area by geo point and radius.
           - name: displayName  | type: string | description: Human-readable location name shown in the UI (e.g. "New York, New York").
       - name: adSchedule  | type: WeeklyAdSchedule | description: Weekly ad schedule defining the days and hours when ads can run.
           - name: adShowAnytime  | type: boolean | description: Whether ads show at any time during the day. When `true`, the daily schedules below are ignored.
           - name: sunday  | type: DailyAdSchedule | description: Sunday ad show range.
               - name: resourceName  | type: string | description: Campaign criterion resource names have the form: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}
               - name: startTime  | type: AdTime | description: The start time of showing an ad in a specific day.
               - name: endTime  | type: AdTime | description: Stop showing the ad at this time in a specific day.
           - name: monday  | type: DailyAdSchedule | description: Monday ad show range.
           - name: tuesday  | type: DailyAdSchedule | description: Tuesday ad show range.
           - name: wednesday  | type: DailyAdSchedule | description: Wednesday ad show range.
           - name: thursday  | type: DailyAdSchedule | description: Thursday ad show range.
           - name: friday  | type: DailyAdSchedule | description: Friday ad show range.
           - name: saturday  | type: DailyAdSchedule | description: Saturday ad show range.
       - name: reportingKey  | type: string | description: Value used as the utm_campaign parameter for conversion tracking.
       - name: campaignBrief  | type: CampaignBrief | description: The brief used to generate this campaign. Only present on campaigns created via the GetCampaignSuggestions endpoint of SuggestionsService.
           - name: id  | type: string | description: Campaign brief ID (Wix internal)
           - name: platformType  | type: string | description: The type of platform the campaign will be created on (Google/FB)
               enum: UNKNOWN, GOOGLE, FACEBOOK, OPENAI
           - name: goal  | type: string | description: Goal of the campaign
           - name: audience  | type: string | description: Audience the campaign should target
       - ONE-OF:
           - name: smartCampaign  | type: SmartCampaign | description: Smart Campaign details. Present when campaignType is SMART. New Smart Campaigns can no longer be created, so use PERFORMANCE_MAX_LEADS or PERFORMANCE_MAX instead. Existing Smart Campaigns aren't affected.
               - name: keywordThemes  | type: Array<KeywordCriterion> | description: Keyword themes that tell Google which search queries to match. Up to 10 themes are allowed.
                   - name: resourceName  | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}
                   - name: displayName  | type: string | description: Human-readable keyword theme label shown in the UI.
                   - ONE-OF:
                       - name: keywordThemeConstant  | type: string | description: Google Ads keyword theme constant resource name (e.g. keywordThemes/12345).
                       - name: freeFormKeywordTheme  | type: string | description: Free-text keyword theme. Google maps this to a matching keyword theme constant on a best-effort basis.
               - name: excludedSearchTerms  | type: Array<ExcludedKeywordCriterion> | description: Search terms to exclude from keyword matching, used in the keyword manager.
                   - name: resourceName  | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}
                   - name: freeFormKeywordTheme  | type: string | description: Free-text search term to exclude. Google maps this to a matching keyword theme constant on a best-effort basis.
                   - name: displayName  | type: string | description: Human-readable label for the excluded keyword shown in the UI.
               - name: adGroups  | type: Array<AdGroup> | description: Ad groups containing the ad copy (headlines and descriptions) shown to users.
                   - name: resourceName  | type: string | description: Google Ads resource name for the ad group. Format: customers/{customerId}/adGroups/{adGroupId}
                   - name: ads  | type: Array<SmartCampaignAd> | description: Ads belonging to this ad group. Each ad contains the headlines and descriptions shown to users.
               - name: phone  | type: PhoneNumber | description: Phone number displayed in call-based ads. This is a PII field.
                   - name: countryCode  | type: string | description: Country code. For example, `+972`.
                   - name: phoneNumber  | type: string | description: Phone number.
                   - name: resourceName  | type: string | description: Campaign call-asset resource name.
               - name: businessName  | type: string | description: Name of the advertised business shown in ads.
               - name: url  | type: string | description: Landing page URL that the campaign directs users to.
               - name: languageCode  | type: string | description: BCP-47 language code for the campaign, e.g. "en" or "fr".
               - name: rejectionInfo  | type: RejectionInfo | description: Policy rejection information returned by Google Ads, if any assets or settings were disapproved.
                   - name: rejections  | type: Array<Rejection> | description: List of individual policy rejections. Maximum 100 items.
               - name: businessProfileLocationId  | type: string | description: Google Business Profile location ID linked to this campaign.
           - name: performanceMaxCampaign  | type: PerformanceMaxCampaign | description: Performance Max campaign details. Present when campaignType is PERFORMANCE_MAX or PERFORMANCE_MAX_LEADS.
               - name: endDate  | type: string | description: Date on which the campaign ends, set by Google Ads.
               - name: biddingStrategy  | type: string | description: Bidding strategy for the campaign. Server-enforced to MAXIMIZE_CONVERSIONS; callers do not need to set this field.
                   enum: UNKNOWN, MAXIMIZE_CONVERSIONS, MAXIMIZE_CONVERSION_VALUE
               - name: locationGroups  | type: Array<LocationGroupCriterion> | description: Not supported. Always empty.
                   - name: isNegative  | type: boolean | description: Whether this is an excluded (negative) location group.
                   - name: geoTargetConstant  | type: string | description: Geo target constant restricting the geographic scope within the feed. Currently only one geo target constant is allowed. Cannot be set together with AssetSet fields.
                   - name: radiusUnits  | type: string | description: Unit of the radius value. Miles and meters are supported for geo target constants. Milli miles and meters are supported for feed item sets and asset sets. Required on CREATE operations.
                   - name: feed  | type: string | description: Feed specifying the locations for targeting. Cannot be set together with AssetSet fields. Required on CREATE operations.
                   - name: radius  | type: string | description: Distance from the targeted locations, in the units specified by radiusUnits. Required on CREATE operations.
               - name: languages  | type: Array<LanguageCriterion> | description: Languages targeted by the campaign.
                   - name: resourceName  | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}
                   - name: languageConstant  | type: string | description: Google Ads language constant resource name (e.g. languageConstants/1000).
                   - name: languageCode  | type: string | description: BCP-47 language code (e.g. "en", "iw", "zh_CN").
               - name: conversionGoals  | type: Array<CampaignConversionGoal> | description: Not supported. Always empty.
                   - name: resourceName  | type: string | description: Google Ads resource name for the campaign conversion goal. Format: customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}
                   - name: category  | type: string | description: Category of conversions associated with a ConversionAction (e.g. PURCHASE, LEAD).
                   - name: origin  | type: string | description: Location where the conversion can occur (e.g. WEBSITE, APP, STORE, CALL_FROM_ADS).
               - name: feedLabel  | type: string | description: Google Merchant Center feed label that selects the products a retail PERFORMANCE_MAX campaign advertises. Always `SALES_CHANNELS`. Not set for PERFORMANCE_MAX_LEADS campaigns.
               - name: rejectionInfo  | type: RejectionInfo | description: Policy rejection information returned by Google Ads, if any assets or settings were disapproved.
               - name: assetGroups  | type: Array<AssetGroup> | description: Collections of creative assets (text, images, videos) used to auto-generate ads across Google channels.
                   - name: resourceName  | type: string | description: Google Ads resource name for the asset group. Format: customers/{customer_id}/assetGroups/{asset_group_id}
                   - name: assetGroupListingGroupFilters  | type: Array<AssetGroupListingGroupFilter> | description: Listing group filters that restrict which products from the feed are associated with this asset group.
                   - name: assetGroupAssets  | type: AssetGroupAssets | description: Creative assets belonging to the asset group. Applicable to PERFORMANCE_MAX_LEADS only.
                   - name: assetGroupSignals  | type: AssetGroupSignals | description: Signals guiding Google's targeting for the asset group. Applicable to PERFORMANCE_MAX_LEADS only.
                   - name: status  | type: string | description: Current serving status of the asset group.
               - name: url  | type: string | description: Landing page URL that the campaign directs users to. Applicable to PERFORMANCE_MAX_LEADS only.
               - name: excludedKeywords  | type: Array<ExcludedKeywordCriterion> | description: Negative keywords that prevent the campaign from serving on matching queries. Applicable to PERFORMANCE_MAX_LEADS only. Up to 10,000.
               - name: assetAutomationSettings  | type: Array<AssetAutomationSetting> | description: Asset automation settings controlling which types of auto-generated assets Google may create.
                   - name: type  | type: string | description: The type of asset automation this setting applies to.
                   - name: status  | type: string | description: Whether this automation type is opted in or opted out.
               - name: daysInLearning  | type: number | description: Number of days elapsed in the current learning period. Applicable to PERFORMANCE_MAX_LEADS only. Absent when the campaign is not in a learning phase.
                   - name: value  | type: number | description: 
               - name: phone  | type: PhoneNumber | description: Phone number displayed in call-based ads. Applicable to PERFORMANCE_MAX_LEADS only. This is a PII field.
               - name: businessProfileLocationLink  | type: BusinessProfileLocationLink | description: Google Business Profile location linked to this campaign. Applicable to PERFORMANCE_MAX_LEADS only. Omit to unlink. The server links it asynchronously; read `status` for progress.
                   - name: locationId  | type: string | description: Google's location id as returned by the GBP location service (numeric, no `locations/` prefix).
                   - name: status  | type: string | description: Set by the server. PENDING right after save, CONNECTED once the campaign is linked to the location on Google Ads.
                   - name: campaignAssetSetResourceName  | type: string | description: Google Ads CampaignAssetSet that links the campaign to its location group. Set by the server.

```