> 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

# GetCampaignSuggestions

# Package: googleAds

# Namespace: SuggestionsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/google-suggestion-v1/get-campaign-suggestions.md

## Permission Scopes:
View google ads campaigns: SCOPE.PROMOTE.VIEW-GOOGLE-ADS

## Introduction

Retrieves AI-generated campaign configurations, including assets, keywords, and geo targets.

Configurations are generated for Performance Max Leads campaigns, from the site's marketing settings
and pages. Smart campaign configurations are no longer generated, because new Smart campaigns can
no longer be created. A request with `campaignType` `SMART` fails with `UNSUPPORTED_CAMPAIGN_TYPE`.

For Performance Max Leads campaigns, the generated images are saved to the site's Media Manager,
in the "Google Ads AI generated images" folder.

Use a returned configuration as the starting point when you call
[Create Campaign](https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/campaign-v1/create-campaign.md).

The response can take up to 120 seconds.

---

## REST API

### Schema

```
 Method: getCampaignSuggestions
 Description: Retrieves AI-generated campaign configurations, including assets, keywords, and geo targets.  Configurations are generated for Performance Max Leads campaigns, from the site's marketing settings and pages. Smart campaign configurations are no longer generated, because new Smart campaigns can no longer be created. A request with `campaignType` `SMART` fails with `UNSUPPORTED_CAMPAIGN_TYPE`.  For Performance Max Leads campaigns, the generated images are saved to the site's Media Manager, in the "Google Ads AI generated images" folder.  Use a returned configuration as the starting point when you call [Create Campaign](https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/campaign-v1/create-campaign.md).  The response can take up to 120 seconds.
 URL: https://www.wixapis.com/_serverless/pa-google/v1/campaign-suggestions
 Method: POST
 Method parameters:
   param name: amount | type: amount | description: Number of campaign suggestions to generate.  Default: `1`  | validation: maximum 3, format int32
   param name: campaignBriefId | type: campaignBriefId | description: GUID of a previously created campaign brief to generate the campaign configurations from.  Used only for Smart campaigns, which are no longer supported.  | validation: format GUID
   param name: campaignType | type: CampaignType    
      - enum:
           UNKNOWN - Unknown campaign type.
           SMART - Simplified auto-managed campaign. Google handles bidding and ad delivery based on keyword themes and geo targets.
New campaigns of this type can no longer be created, so use PERFORMANCE_MAX_LEADS or PERFORMANCE_MAX instead.
Existing campaigns of this type aren't affected.
           PERFORMANCE_MAX - Retail Performance Max campaign that advertises the products in the account's linked Google Merchant Center feed
across all Google channels (Search, Shopping, Display, YouTube, etc.).
Requires a linked Merchant Center account whose link is approved (`merchantCenterAccountLinkStatus.status` is
`ENABLED` on the account); creation fails with `MERCHANT_CENTER_ACCOUNT_NOT_LINKED` otherwise. Ads are built from
the product feed, so asset group assets, asset group signals, excluded keywords, a phone number and a `url` aren't
supported.
           PERFORMANCE_MAX_LEADS - Performance Max campaign built from the asset group you provide: headlines, long headlines, descriptions,
a business name, marketing images, square marketing images and logos, sent to the campaign's `url`.
Optimized for leads such as phone calls and form fills. Doesn't need a Merchant Center account.
 Return type: GetCampaignSuggestionsResponse
  - name: campaignSuggestions | type: array<CampaignSuggestion> | description: Generated campaign configurations.  | validation: maxItems 3
     - name: campaign | type: Campaign | description: Suggested campaign configuration, including assets, keywords, and geo targets.  
        - 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.  | validation: maxItems 10
                 - ONE-OF: 
                    - name: keywordThemeConstant | type: string | description: Google Ads keyword theme constant resource name (e.g. keywordThemes/12345).  | validation: maxLength 1000
                    - name: freeFormKeywordTheme | type: string | description: Free-text keyword theme. Google maps this to a matching keyword theme constant on a best-effort basis.  | validation: maxLength 1000
                 - name: resourceName | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}  | read-only: true | validation: maxLength 1000
                 - name: displayName | type: string | description: Human-readable keyword theme label shown in the UI.  | validation: maxLength 1000
              - name: excludedSearchTerms | type: array<ExcludedKeywordCriterion> | description: Search terms to exclude from keyword matching, used in the keyword manager.  | validation: maxItems 1000
                 - name: resourceName | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}  | read-only: true | validation: maxLength 1000
                 - 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.  | validation: maxLength 1000
                 - name: displayName | type: string | description: Human-readable label for the excluded keyword shown in the UI.  | validation: maxLength 1000
              - name: adGroups | type: array<AdGroup> | description: Ad groups containing the ad copy (headlines and descriptions) shown to users.  | validation: maxItems 100
                 - name: resourceName | type: string | description: Google Ads resource name for the ad group. Format: customers/{customerId}/adGroups/{adGroupId}  | read-only: true | validation: maxLength 1000
                 - name: ads | type: array<SmartCampaignAd> | description: Ads belonging to this ad group. Each ad contains the headlines and descriptions shown to users.  | validation: maxItems 100
                    - name: resourceName | type: string | description: Actual ad resource name. customers/{customerId}/adGroupAds/{adGroupId}~{ad_id}  | read-only: true 
                    - name: headlines | type: array<string> | description: Headlines of the ad.  | validation: minItems 3, maxItems 3, maxLength 30
                    - name: descriptions | type: array<string> | description: Descriptions of the ad.  | validation: minItems 2, maxItems 2, maxLength 90
              - 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.  | read-only: true | validation: maxLength 1000
              - name: businessName | type: string | description: Name of the advertised business shown in ads.  | validation: maxLength 1000
              - name: url | type: string | description: Landing page URL that the campaign directs users to.  | validation: format WEB_URL
              - name: languageCode | type: string | description: BCP-47 language code for the campaign, e.g. "en" or "fr".  | validation: maxLength 1000
              - 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.  | validation: maxItems 100
                    - name: rejectionType | type: RejectionType | description: The category of the policy violation.  | read-only: true 
                             - enum:
                             -     UNSPECIFIED: No rejection type has been specified.
                             -     UNKNOWN: The rejection type is not known in this API version.
                             -     PROHIBITED: The resource violates policy and will not serve.
                             -     LIMITED: The resource violates policy under certain conditions and may serve in a limited capacity.
                             -     FULLY_LIMITED: The resource violates policy for all current targeting criteria and will not serve at all.
                             -     DESCRIPTIVE: The finding is informational and does not affect how the resource is served.
                             -     BROADENING: The resource may serve beyond the normally targeted audience due to broadened reach.
                             -     AREA_OF_INTEREST_ONLY: The resource is constrained in all targeted countries but may still serve via area of interest targeting.
                    - name: topic | type: string | description: The policy topic that triggered this rejection (e.g. "ADULT_CONTENT").  | read-only: true | validation: maxLength 1000
                    - name: evidences | type: array<RejectionEvidence> | description: Evidence from the campaign content that triggered the rejection.  | validation: maxItems 100
                       - name: languageCode | type: string | description: IETF language tag of the language in which the offending content was detected (e.g. "en-US").  | read-only: true | validation: maxLength 1000
                       - name: texts | type: array<string> | description: Snippets of text from the resource that caused the rejection.  | validation: maxItems 100, maxLength 1000
              - name: businessProfileLocationId | type: string | description: Google Business Profile location GUID linked to this campaign.  | validation: maxLength 1000
           - 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.  | read-only: true | validation: format date-time
              - name: biddingStrategy | type: BiddingStrategy | description: Bidding strategy for the campaign. Server-enforced to MAXIMIZE_CONVERSIONS; callers do not need to set this field.  
                     - enum:
                     -     UNKNOWN: Unknown bidding strategy.
                     -     MAXIMIZE_CONVERSIONS: Automatically sets bids to maximize the total number of conversions within the budget.
                     -     MAXIMIZE_CONVERSION_VALUE: Automatically sets bids to maximize the total conversion value within the budget.
              - name: locationGroups | type: array<LocationGroupCriterion> | description: Not supported. Always empty.  | validation: maxItems 1000
                 - 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.  | validation: maxLength 1000
                 - 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.  | validation: maxLength 1000
                 - name: feed | type: string | description: Feed specifying the locations for targeting. Cannot be set together with AssetSet fields. Required on CREATE operations.  | validation: maxLength 1000
                 - 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.  | validation: maxItems 100
                 - name: resourceName | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}  | read-only: true | validation: maxLength 1000
                 - name: languageConstant | type: string | description: Google Ads language constant resource name (e.g. languageConstants/1000).  | validation: maxLength 1000
                 - name: languageCode | type: string | description: BCP-47 language code (e.g. "en", "iw", "zh_CN").  | validation: maxLength 1000
              - name: conversionGoals | type: array<CampaignConversionGoal> | description: Not supported. Always empty.  | validation: maxItems 10
                 - name: resourceName | type: string | description: Google Ads resource name for the campaign conversion goal. Format: customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}  | read-only: true | validation: maxLength 1000
                 - name: category | type: string | description: Category of conversions associated with a ConversionAction (e.g. PURCHASE, LEAD).  | validation: maxLength 1000
                 - name: origin | type: string | description: Location where the conversion can occur (e.g. WEBSITE, APP, STORE, CALL_FROM_ADS).  | validation: maxLength 1000
              - 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.  | read-only: true | validation: maxLength 1000
              - 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.  | validation: maxItems 100
                 - name: resourceName | type: string | description: Google Ads resource name for the asset group. Format: customers/{customer_id}/assetGroups/{asset_group_id}  | read-only: true | validation: maxLength 1000
                 - name: assetGroupListingGroupFilters | type: array<AssetGroupListingGroupFilter> | description: Listing group filters that restrict which products from the feed are associated with this asset group.  | validation: maxItems 100
                    - name: resourceName | type: string | description: Google Ads resource name for the listing group filter. Format: customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}  | read-only: true | validation: maxLength 1000
                 - name: assetGroupAssets | type: AssetGroupAssets | description: Creative assets belonging to the asset group. Applicable to PERFORMANCE_MAX_LEADS only.  
                    - name: assets | type: array<AssetGroupAsset> | description: The creative assets (text, images, videos, etc.) belonging to the asset group.  | validation: maxItems 120
                       - ONE-OF: 
                          - name: headlineAsset | type: HeadlineTextAsset | description: Short headline text asset. Maximum 30 characters.  
                             - name: text | type: string | description: Headline text shown in the ad.  | validation: maxLength 30
                          - name: longHeadlineAsset | type: LongHeadlineTextAsset | description: Long headline text asset. Maximum 90 characters.  
                             - name: text | type: string | description: Long headline text shown in the ad.  | validation: maxLength 90
                          - name: descriptionAsset | type: DescriptionTextAsset | description: Description text asset. Maximum 90 characters.  
                             - name: text | type: string | description: Description text shown below the headline in the ad.  | validation: maxLength 90
                          - name: businessNameAsset | type: BusinessNameTextAsset | description: Business name text asset. Maximum 25 characters.  
                             - name: text | type: string | description: Business name shown in the ad.  | validation: maxLength 25
                          - name: imageAsset | type: ImageAsset | description: Image asset (landscape, square, portrait, or logo). The required size and aspect ratio depend on `asset_field_type`.  
                             - name: name | type: string | description: Display name for the image asset.  | validation: maxLength 1000
                             - name: url | type: string | description: URL of the image served from Wix Media Manager.  | validation: format WEB_URL
                       - name: resourceName | type: string | description: Google Ads resource name representing the asset group asset relationship. Format: customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}  | read-only: true | validation: maxLength 1000
                       - name: assetFieldType | type: AssetFieldType | description: The role this asset plays within the asset group (e.g. HEADLINE, MARKETING_IMAGE).  
                                 - enum:
                                 -     HEADLINE: Short headline shown in ads. At least 3 required; up to 15 allowed. Maximum 30 characters.
                                 -     LONG_HEADLINE: Longer headline used in certain ad formats. Exactly 1 required. Maximum 90 characters.
                                 -     DESCRIPTION: Description shown below the headline. At least 2 required; up to 4 allowed. Maximum 90 characters.
                                 -     BUSINESS_NAME: Business name shown in the ad. Exactly 1 required. Maximum 25 characters.
                                 -     MARKETING_IMAGE: Landscape marketing image with a 1.91:1 aspect ratio (e.g. 1200x628). Minimum 600x314. Multiple images allowed.
                                 -     SQUARE_MARKETING_IMAGE: Square marketing image with a 1:1 aspect ratio (e.g. 1200x1200). Minimum 300x300. Multiple images allowed.
                                 -     LOGO: Square logo with a 1:1 aspect ratio (e.g. 1200x1200). Minimum 128x128. A transparent background is recommended.
                                 -     PORTRAIT_MARKETING_IMAGE: Portrait marketing image with a 4:5 aspect ratio (e.g. 960x1200). Minimum 480x600. Multiple images allowed.
                                 -     LANDSCAPE_LOGO: Landscape logo with a 4:1 aspect ratio (e.g. 1200x300). Minimum 512x128.
                       - name: status | type: AssetGroupAssetStatus | description: Current serving status of the asset as reported by Google Ads.  | read-only: true 
                                 - enum:
                                 -     UNKNOWN: Unknown or unspecified status.
                                 -     ELIGIBLE: The asset is eligible to serve.
                                 -     LIMITED: The asset is serving in a limited capacity due to policy restrictions.
                                 -     PENDING: The asset is under Google Ads policy review and may serve in the future.
                                 -     PAUSED: The asset is paused because its campaign has been paused.
                                 -     DISAPPROVED: The asset has been disapproved by Google Ads and is not eligible to serve.
                                 -     NOT_ELIGIBLE: The asset is not eligible to serve for reasons other than policy disapproval.
                       - name: createdDate | type: string | description: Date and time the asset was added to the system.  | read-only: true | validation: format date-time
                 - name: assetGroupSignals | type: AssetGroupSignals | description: Signals guiding Google's targeting for the asset group. Applicable to PERFORMANCE_MAX_LEADS only.  
                    - name: signals | type: array<AssetGroupSignal> | description: Signals (search themes, audiences, etc.) that guide Google's targeting for the asset group.  | validation: maxItems 25
                       - ONE-OF: 
                          - name: searchTheme | type: SearchThemeInfo | description: Search theme signal that tells Google which search queries are relevant to this asset group.  
                             - name: text | type: string | description: The search theme text.  | validation: maxLength 1000
                       - name: resourceName | type: string | description: Google Ads resource name for the asset group signal. Format: customers/{customer_id}/assetGroupSignals/{asset_group_id}~{signal_id}  | read-only: true | validation: maxLength 1000
                       - name: approvalStatus | type: AssetGroupSignalApprovalStatus | description: Google Ads policy review result for this signal.  | read-only: true 
                                 - enum:
                                 -     APPROVED: Search theme passed Google Ads policy review and is fully eligible to serve.
                                 -     LIMITED: Search theme passed review but serves with restrictions due to policy.
                                 -     DISAPPROVED: Search theme was disapproved by Google Ads policy and will not serve.
                                 -     UNDER_REVIEW: Search theme is currently under Google Ads policy review.
                       - name: disapprovalReasons | type: DisapprovalReasons | description: Reasons why this signal was disapproved, if applicable.  | read-only: true 
                          - name: values | type: array<string> | description: List of disapproval reason strings. Maximum 50 items.  | validation: maxItems 50, maxLength 1000
                 - name: status | type: AssetGroupStatus | description: Current serving status of the asset group.  | read-only: true 
                         - enum:
                         -     UNKNOWN: Unknown or unexpected state.
                         -     ELIGIBLE: Asset group is eligible and serving normally.
                         -     LIMITED: Asset group is serving but with policy limitations.
                         -     PENDING: Asset group is pending policy review.
                         -     DISAPPROVED: Asset group has been disapproved by Google.
                         -     PAUSED: Asset group is paused because its campaign is paused.
                         -     UNSPECIFIED: Status has not been specified.
              - name: url | type: string | description: Landing page URL that the campaign directs users to. Applicable to PERFORMANCE_MAX_LEADS only.  | validation: format WEB_URL
              - 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.  | validation: maxItems 10000
              - name: assetAutomationSettings | type: array<AssetAutomationSetting> | description: Asset automation settings controlling which types of auto-generated assets Google may create.  | validation: maxItems 10
                 - name: type | type: AssetAutomationType | description: The type of asset automation this setting applies to.  
                         - enum:
                         -     UNKNOWN: Unknown asset automation type.
                         -     FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION: Automatically expand the final URL to match more relevant landing pages.
                         -     TEXT_ASSET_AUTOMATION: Automatically generate additional text assets (headlines, descriptions) to improve performance.
                         -     GENERATE_IMAGE_ENHANCEMENT: Automatically enhance existing images with generated variations.
                         -     GENERATE_ENHANCED_YOUTUBE_VIDEOS: Automatically generate enhanced versions of YouTube videos for better ad performance.
                         -     GENERATE_IMAGE_EXTRACTION: Automatically extract still images from videos to use as image assets.
                 - name: status | type: AssetAutomationStatus | description: Whether this automation type is opted in or opted out.  
                         - enum:
                         -     UNKNOWN: Unknown asset automation status.
                         -     OPTED_OUT: Google will not automatically generate assets of this type.
                         -     OPTED_IN: Google may automatically generate assets of this type to improve performance.
              - name: daysInLearning | type: integer | 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.  | validation: format int32
              - 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).  | validation: maxLength 1000
                 - name: status | type: BusinessProfileLinkStatus | description: Set by the server. PENDING right after save, CONNECTED once the campaign is linked to the location on Google Ads.  | read-only: true 
                         - enum:
                         -     UNSPECIFIED: 
                         -     PENDING: The link job is scheduled or retrying.
                         -     CONNECTED: The campaign is linked to its location group on Google Ads.
                         -     FAILED: The job gave up. Saving the campaign again retries.
                 - name: campaignAssetSetResourceName | type: string | description: Google Ads CampaignAssetSet that links the campaign to its location group. Set by the server.  | read-only: true | validation: maxLength 1000
        - name: id | type: string | description: Unique campaign GUID.  | read-only: true | validation: format GUID
        - name: accountId | type: string | description: Wix internal account GUID associated with this campaign.  | validation: format GUID
        - name: campaignType | type: CampaignType | description: Type of the campaign, either Smart or Performance Max. Set when the campaign is created and can't be changed.  
             - enum:
             -     UNKNOWN: Unknown campaign type.
             -     SMART: Simplified auto-managed campaign. Google handles bidding and ad delivery based on keyword themes and geo targets. New campaigns of this type can no longer be created, so use PERFORMANCE_MAX_LEADS or PERFORMANCE_MAX instead. Existing campaigns of this type aren't affected.
             -     PERFORMANCE_MAX: Retail Performance Max campaign that advertises the products in the account's linked Google Merchant Center feed across all Google channels (Search, Shopping, Display, YouTube, etc.). Requires a linked Merchant Center account whose link is approved (`merchantCenterAccountLinkStatus.status` is `ENABLED` on the account); creation fails with `MERCHANT_CENTER_ACCOUNT_NOT_LINKED` otherwise. Ads are built from the product feed, so asset group assets, asset group signals, excluded keywords, a phone number and a `url` aren't supported.
             -     PERFORMANCE_MAX_LEADS: Performance Max campaign built from the asset group you provide: headlines, long headlines, descriptions, a business name, marketing images, square marketing images and logos, sent to the campaign's `url`. Optimized for leads such as phone calls and form fills. Doesn't need a Merchant Center account.
        - name: status | type: CampaignStatus | description: Current campaign status, synced from Google Ads on each read.  | read-only: true 
             - enum:
             -     UNKNOWN: Used for return value only. Represents a value unknown in this version.
             -     LIVE: Campaign is currently serving ads, depending on budget information.
             -     PAUSED: Campaign has been paused by the user.
             -     ENDED: Campaign has been ended.
             -     IN_REVIEW: The campaign was created but its budget hasn't been charged yet.
             -     ERROR: Error state.
             -     DISAPPROVED: Campaign is not approved.
             -     NOT_SERVING: Campaign is currently not serving due to budget limitations.
             -     DRAFT: Campaign is a draft.
             -     LEARNING: Campaign is in the learning phase. Currently supported only for Google Ads Performance Max leads campaigns.
        - name: resourceName | type: string | description: Google Ads resource name for this campaign, e.g. customers/{customerId}/campaigns/{campaignId}.  | read-only: true | validation: maxLength 1000
        - name: name | type: string | description: Display name of the campaign.  | validation: maxLength 1000
        - name: createdDate | type: string | description: Date and time the campaign was created.  | read-only: true | validation: format date-time
        - name: updatedDate | type: string | description: Date and time the campaign was last updated.  | read-only: true | validation: format date-time
        - name: actionDate | type: string | description: Date and time of the most recent lifecycle action (pause, resume, launch, etc.).  | read-only: true | validation: format date-time
        - name: budget | type: CampaignBudget | description: Daily budget for the campaign.  
           - name: resourceName | type: string | description: Google Ads resource name for the campaign budget.  | read-only: true | validation: maxLength 1000
           - 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.  | validation: format DECIMAL_VALUE, decimalValue {"gte":"1","maxScale":0}
        - name: locations | type: array<LocationCriterion> | description: Geographic locations targeted by this campaign.  | validation: minItems 1, maxItems 1000
           - name: resourceName | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}  | read-only: true | validation: maxLength 1000
           - 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).  | validation: maxLength 1000
                 - name: proximity | type: ProximityAddress | description: Proximity criterion defining a circular area by geo point and radius.  
                    - name: address | type: Address | description: Full address. The address is a description of the geo point that does not affect ad serving.  
                       - name: postalCode | type: string | description: Postal code.  
                       - name: provinceCode | type: string | description: Province or state code.  
                       - name: countryCode | type: string | description: Country code.  
                       - name: provinceName | type: string | description: Province or state name.  
                       - name: streetAddress | type: string | description: Street address line 1.  
                       - name: streetAddress2 | type: string | description: Street address line 2.  
                       - name: cityName | type: string | description: Name of the city.  
                    - name: radiusUnits | type: RadiusUnits | description: The unit of measurement of the radius.  
                             - enum: MILES, KILOMETERS
                    - name: radius | type: integer | description: The radius of the proximity.  | validation: format int32
           - name: displayName | type: string | description: Human-readable location name shown in the UI (e.g. "New York, New York").  | validation: maxLength 1000
        - 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}  | read-only: true 
              - name: startTime | type: AdTime | description: The start time of showing an ad in a specific day.  
                 - name: hour | type: integer | description: Starting hour in 24 hour time. This field must be between 0 and 23, inclusive.  | validation: format int32
                 - name: minute | type: MinuteOfHour | description: Minutes after the start hour at which this schedule starts.  
                         - enum:
                         -     ZERO: Zero minutes past the hour.
                         -     FIFTEEN: Fifteen minutes past the hour.
                         -     THIRTY: Thirty minutes past the hour.
                         -     FORTY_FIVE: Forty-five minutes past the hour.
              - 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.  | read-only: true | validation: maxLength 1000
        - 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 GUID (Wix internal)  | read-only: true | validation: format GUID
           - name: platformType | type: PlatformType | description: The type of platform the campaign will be created on (Google/FB)  | read-only: true 
                 - enum: UNKNOWN, GOOGLE, FACEBOOK, OPENAI
           - name: goal | type: string | description: Goal of the campaign  | validation: maxLength 1000
           - name: audience | type: string | description: Audience the campaign should target  | validation: maxLength 1000
     - name: campaignMessaging | type: string | description: Summary of the campaign's main value proposition and messaging strategy.  | validation: maxLength 1000
  - name: costInMicrocents | type: string | description: Cost of generating the suggestions, in microcents. This cost isn't charged to the caller.  Returned only when a cost is reported.  | validation: format int64

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: UNSUPPORTED_CAMPAIGN_TYPE | Description: The campaign type isn't `PERFORMANCE_MAX_LEADS`. Smart campaign suggestions are no longer generated, because new Smart campaigns can no longer be created.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: MISSING_CAMPAIGN_BRIEF_ID | Description: `campaignBriefId` is required to generate Smart campaign suggestions.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: MAX_CAMPAIGNS_TO_SUGGEST_EXCEEDED | Description: Number of campaign suggestions exceeds the server's limit.


```

### Examples

### Get a Performance Max Leads campaign suggestion
```curl
curl -X POST \
'https://www.wixapis.com/_serverless/pa-google/v1/campaign-suggestions' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "amount": 1,
  "campaignType": "PERFORMANCE_MAX_LEADS"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.promoteGoogleAds.suggestions.getCampaignSuggestions(options)
 Description: Retrieves AI-generated campaign configurations, including assets, keywords, and geo targets.  Configurations are generated for Performance Max Leads campaigns, from the site's marketing settings and pages. Smart campaign configurations are no longer generated, because new Smart campaigns can no longer be created. A request with `campaignType` `SMART` fails with `UNSUPPORTED_CAMPAIGN_TYPE`.  For Performance Max Leads campaigns, the generated images are saved to the site's Media Manager, in the "Google Ads AI generated images" folder.  Use a returned configuration as the starting point when you call [Create Campaign](https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/campaign-v1/create-campaign.md).  The response can take up to 120 seconds.
 Method parameters:
   param name: options | type: GetCampaignSuggestionsOptions  none  
        - name: campaignBriefId | type: string | description: GUID of a previously created campaign brief to generate the campaign configurations from.  Used only for Smart campaigns, which are no longer supported.  | validation: format GUID
        - name: amount | type: integer | description: Number of campaign suggestions to generate.  Default: `1`  | validation: maximum 3, format int32
        - name: campaignType | type: CampaignType | description: Type of campaign to generate suggestions for. Only `PERFORMANCE_MAX_LEADS` is supported.  Default: `PERFORMANCE_MAX_LEADS`  
             - enum:
             -     UNKNOWN: Unknown campaign type.
             -     SMART: Simplified auto-managed campaign. Google handles bidding and ad delivery based on keyword themes and geo targets. New campaigns of this type can no longer be created, so use PERFORMANCE_MAX_LEADS or PERFORMANCE_MAX instead. Existing campaigns of this type aren't affected.
             -     PERFORMANCE_MAX: Retail Performance Max campaign that advertises the products in the account's linked Google Merchant Center feed across all Google channels (Search, Shopping, Display, YouTube, etc.). Requires a linked Merchant Center account whose link is approved (`merchantCenterAccountLinkStatus.status` is `ENABLED` on the account); creation fails with `MERCHANT_CENTER_ACCOUNT_NOT_LINKED` otherwise. Ads are built from the product feed, so asset group assets, asset group signals, excluded keywords, a phone number and a `url` aren't supported.
             -     PERFORMANCE_MAX_LEADS: Performance Max campaign built from the asset group you provide: headlines, long headlines, descriptions, a business name, marketing images, square marketing images and logos, sent to the campaign's `url`. Optimized for leads such as phone calls and form fills. Doesn't need a Merchant Center account.
 Return type: PROMISE<GetCampaignSuggestionsResponse>
  - name: campaignSuggestions | type: array<CampaignSuggestion> | description: Generated campaign configurations.  | validation: maxItems 3
     - name: campaign | type: Campaign | description: Suggested campaign configuration, including assets, keywords, and geo targets.  
        - 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.  | validation: maxItems 10
                 - ONE-OF: 
                    - name: keywordThemeConstant | type: string | description: Google Ads keyword theme constant resource name (e.g. keywordThemes/12345).  | validation: maxLength 1000
                    - name: freeFormKeywordTheme | type: string | description: Free-text keyword theme. Google maps this to a matching keyword theme constant on a best-effort basis.  | validation: maxLength 1000
                 - name: resourceName | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}  | read-only: true | validation: maxLength 1000
                 - name: displayName | type: string | description: Human-readable keyword theme label shown in the UI.  | validation: maxLength 1000
              - name: excludedSearchTerms | type: array<ExcludedKeywordCriterion> | description: Search terms to exclude from keyword matching, used in the keyword manager.  | validation: maxItems 1000
                 - name: resourceName | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}  | read-only: true | validation: maxLength 1000
                 - 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.  | validation: maxLength 1000
                 - name: displayName | type: string | description: Human-readable label for the excluded keyword shown in the UI.  | validation: maxLength 1000
              - name: adGroups | type: array<AdGroup> | description: Ad groups containing the ad copy (headlines and descriptions) shown to users.  | validation: maxItems 100
                 - name: resourceName | type: string | description: Google Ads resource name for the ad group. Format: customers/{customerId}/adGroups/{adGroupId}  | read-only: true | validation: maxLength 1000
                 - name: ads | type: array<SmartCampaignAd> | description: Ads belonging to this ad group. Each ad contains the headlines and descriptions shown to users.  | validation: maxItems 100
                    - name: resourceName | type: string | description: Actual ad resource name. customers/{customerId}/adGroupAds/{adGroupId}~{ad_id}  | read-only: true 
                    - name: headlines | type: array<string> | description: Headlines of the ad.  | validation: minItems 3, maxItems 3, maxLength 30
                    - name: descriptions | type: array<string> | description: Descriptions of the ad.  | validation: minItems 2, maxItems 2, maxLength 90
              - 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.  | read-only: true | validation: maxLength 1000
              - name: businessName | type: string | description: Name of the advertised business shown in ads.  | validation: maxLength 1000
              - name: url | type: string | description: Landing page URL that the campaign directs users to.  | validation: format WEB_URL
              - name: languageCode | type: string | description: BCP-47 language code for the campaign, e.g. "en" or "fr".  | validation: maxLength 1000
              - 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.  | validation: maxItems 100
                    - name: rejectionType | type: RejectionType | description: The category of the policy violation.  | read-only: true 
                             - enum:
                             -     UNSPECIFIED: No rejection type has been specified.
                             -     UNKNOWN: The rejection type is not known in this API version.
                             -     PROHIBITED: The resource violates policy and will not serve.
                             -     LIMITED: The resource violates policy under certain conditions and may serve in a limited capacity.
                             -     FULLY_LIMITED: The resource violates policy for all current targeting criteria and will not serve at all.
                             -     DESCRIPTIVE: The finding is informational and does not affect how the resource is served.
                             -     BROADENING: The resource may serve beyond the normally targeted audience due to broadened reach.
                             -     AREA_OF_INTEREST_ONLY: The resource is constrained in all targeted countries but may still serve via area of interest targeting.
                    - name: topic | type: string | description: The policy topic that triggered this rejection (e.g. "ADULT_CONTENT").  | read-only: true | validation: maxLength 1000
                    - name: evidences | type: array<RejectionEvidence> | description: Evidence from the campaign content that triggered the rejection.  | validation: maxItems 100
                       - name: languageCode | type: string | description: IETF language tag of the language in which the offending content was detected (e.g. "en-US").  | read-only: true | validation: maxLength 1000
                       - name: texts | type: array<string> | description: Snippets of text from the resource that caused the rejection.  | validation: maxItems 100, maxLength 1000
              - name: businessProfileLocationId | type: string | description: Google Business Profile location GUID linked to this campaign.  | validation: maxLength 1000
           - name: performanceMaxCampaign | type: PerformanceMaxCampaign | description: Performance Max campaign details. Present when campaignType is PERFORMANCE_MAX or PERFORMANCE_MAX_LEADS.  
              - name: endDate | type: Date | description: Date on which the campaign ends, set by Google Ads.  | read-only: true 
              - name: biddingStrategy | type: BiddingStrategy | description: Bidding strategy for the campaign. Server-enforced to MAXIMIZE_CONVERSIONS; callers do not need to set this field.  
                     - enum:
                     -     UNKNOWN: Unknown bidding strategy.
                     -     MAXIMIZE_CONVERSIONS: Automatically sets bids to maximize the total number of conversions within the budget.
                     -     MAXIMIZE_CONVERSION_VALUE: Automatically sets bids to maximize the total conversion value within the budget.
              - name: locationGroups | type: array<LocationGroupCriterion> | description: Not supported. Always empty.  | validation: maxItems 1000
                 - 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.  | validation: maxLength 1000
                 - 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.  | validation: maxLength 1000
                 - name: feed | type: string | description: Feed specifying the locations for targeting. Cannot be set together with AssetSet fields. Required on CREATE operations.  | validation: maxLength 1000
                 - 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.  | validation: maxItems 100
                 - name: resourceName | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}  | read-only: true | validation: maxLength 1000
                 - name: languageConstant | type: string | description: Google Ads language constant resource name (e.g. languageConstants/1000).  | validation: maxLength 1000
                 - name: languageCode | type: string | description: BCP-47 language code (e.g. "en", "iw", "zh_CN").  | validation: maxLength 1000
              - name: conversionGoals | type: array<CampaignConversionGoal> | description: Not supported. Always empty.  | validation: maxItems 10
                 - name: resourceName | type: string | description: Google Ads resource name for the campaign conversion goal. Format: customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}  | read-only: true | validation: maxLength 1000
                 - name: category | type: string | description: Category of conversions associated with a ConversionAction (e.g. PURCHASE, LEAD).  | validation: maxLength 1000
                 - name: origin | type: string | description: Location where the conversion can occur (e.g. WEBSITE, APP, STORE, CALL_FROM_ADS).  | validation: maxLength 1000
              - 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.  | read-only: true | validation: maxLength 1000
              - 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.  | validation: maxItems 100
                 - name: resourceName | type: string | description: Google Ads resource name for the asset group. Format: customers/{customer_id}/assetGroups/{asset_group_id}  | read-only: true | validation: maxLength 1000
                 - name: assetGroupListingGroupFilters | type: array<AssetGroupListingGroupFilter> | description: Listing group filters that restrict which products from the feed are associated with this asset group.  | validation: maxItems 100
                    - name: resourceName | type: string | description: Google Ads resource name for the listing group filter. Format: customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}  | read-only: true | validation: maxLength 1000
                 - name: assetGroupAssets | type: AssetGroupAssets | description: Creative assets belonging to the asset group. Applicable to PERFORMANCE_MAX_LEADS only.  
                    - name: assets | type: array<AssetGroupAsset> | description: The creative assets (text, images, videos, etc.) belonging to the asset group.  | validation: maxItems 120
                       - ONE-OF: 
                          - name: headlineAsset | type: HeadlineTextAsset | description: Short headline text asset. Maximum 30 characters.  
                             - name: text | type: string | description: Headline text shown in the ad.  | validation: maxLength 30
                          - name: longHeadlineAsset | type: LongHeadlineTextAsset | description: Long headline text asset. Maximum 90 characters.  
                             - name: text | type: string | description: Long headline text shown in the ad.  | validation: maxLength 90
                          - name: descriptionAsset | type: DescriptionTextAsset | description: Description text asset. Maximum 90 characters.  
                             - name: text | type: string | description: Description text shown below the headline in the ad.  | validation: maxLength 90
                          - name: businessNameAsset | type: BusinessNameTextAsset | description: Business name text asset. Maximum 25 characters.  
                             - name: text | type: string | description: Business name shown in the ad.  | validation: maxLength 25
                          - name: imageAsset | type: ImageAsset | description: Image asset (landscape, square, portrait, or logo). The required size and aspect ratio depend on `asset_field_type`.  
                             - name: name | type: string | description: Display name for the image asset.  | validation: maxLength 1000
                             - name: url | type: string | description: URL of the image served from Wix Media Manager.  | validation: format WEB_URL
                       - name: resourceName | type: string | description: Google Ads resource name representing the asset group asset relationship. Format: customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}  | read-only: true | validation: maxLength 1000
                       - name: assetFieldType | type: AssetFieldType | description: The role this asset plays within the asset group (e.g. HEADLINE, MARKETING_IMAGE).  
                                 - enum:
                                 -     HEADLINE: Short headline shown in ads. At least 3 required; up to 15 allowed. Maximum 30 characters.
                                 -     LONG_HEADLINE: Longer headline used in certain ad formats. Exactly 1 required. Maximum 90 characters.
                                 -     DESCRIPTION: Description shown below the headline. At least 2 required; up to 4 allowed. Maximum 90 characters.
                                 -     BUSINESS_NAME: Business name shown in the ad. Exactly 1 required. Maximum 25 characters.
                                 -     MARKETING_IMAGE: Landscape marketing image with a 1.91:1 aspect ratio (e.g. 1200x628). Minimum 600x314. Multiple images allowed.
                                 -     SQUARE_MARKETING_IMAGE: Square marketing image with a 1:1 aspect ratio (e.g. 1200x1200). Minimum 300x300. Multiple images allowed.
                                 -     LOGO: Square logo with a 1:1 aspect ratio (e.g. 1200x1200). Minimum 128x128. A transparent background is recommended.
                                 -     PORTRAIT_MARKETING_IMAGE: Portrait marketing image with a 4:5 aspect ratio (e.g. 960x1200). Minimum 480x600. Multiple images allowed.
                                 -     LANDSCAPE_LOGO: Landscape logo with a 4:1 aspect ratio (e.g. 1200x300). Minimum 512x128.
                       - name: status | type: AssetGroupAssetStatus | description: Current serving status of the asset as reported by Google Ads.  | read-only: true 
                                 - enum:
                                 -     UNKNOWN: Unknown or unspecified status.
                                 -     ELIGIBLE: The asset is eligible to serve.
                                 -     LIMITED: The asset is serving in a limited capacity due to policy restrictions.
                                 -     PENDING: The asset is under Google Ads policy review and may serve in the future.
                                 -     PAUSED: The asset is paused because its campaign has been paused.
                                 -     DISAPPROVED: The asset has been disapproved by Google Ads and is not eligible to serve.
                                 -     NOT_ELIGIBLE: The asset is not eligible to serve for reasons other than policy disapproval.
                       - name: _createdDate | type: Date | description: Date and time the asset was added to the system.  | read-only: true 
                 - name: assetGroupSignals | type: AssetGroupSignals | description: Signals guiding Google's targeting for the asset group. Applicable to PERFORMANCE_MAX_LEADS only.  
                    - name: signals | type: array<AssetGroupSignal> | description: Signals (search themes, audiences, etc.) that guide Google's targeting for the asset group.  | validation: maxItems 25
                       - ONE-OF: 
                          - name: searchTheme | type: SearchThemeInfo | description: Search theme signal that tells Google which search queries are relevant to this asset group.  
                             - name: text | type: string | description: The search theme text.  | validation: maxLength 1000
                       - name: resourceName | type: string | description: Google Ads resource name for the asset group signal. Format: customers/{customer_id}/assetGroupSignals/{asset_group_id}~{signal_id}  | read-only: true | validation: maxLength 1000
                       - name: approvalStatus | type: AssetGroupSignalApprovalStatus | description: Google Ads policy review result for this signal.  | read-only: true 
                                 - enum:
                                 -     APPROVED: Search theme passed Google Ads policy review and is fully eligible to serve.
                                 -     LIMITED: Search theme passed review but serves with restrictions due to policy.
                                 -     DISAPPROVED: Search theme was disapproved by Google Ads policy and will not serve.
                                 -     UNDER_REVIEW: Search theme is currently under Google Ads policy review.
                       - name: disapprovalReasons | type: DisapprovalReasons | description: Reasons why this signal was disapproved, if applicable.  | read-only: true 
                          - name: values | type: array<string> | description: List of disapproval reason strings. Maximum 50 items.  | validation: maxItems 50, maxLength 1000
                 - name: status | type: AssetGroupStatus | description: Current serving status of the asset group.  | read-only: true 
                         - enum:
                         -     UNKNOWN: Unknown or unexpected state.
                         -     ELIGIBLE: Asset group is eligible and serving normally.
                         -     LIMITED: Asset group is serving but with policy limitations.
                         -     PENDING: Asset group is pending policy review.
                         -     DISAPPROVED: Asset group has been disapproved by Google.
                         -     PAUSED: Asset group is paused because its campaign is paused.
                         -     UNSPECIFIED: Status has not been specified.
              - name: url | type: string | description: Landing page URL that the campaign directs users to. Applicable to PERFORMANCE_MAX_LEADS only.  | validation: format WEB_URL
              - 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.  | validation: maxItems 10000
              - name: assetAutomationSettings | type: array<AssetAutomationSetting> | description: Asset automation settings controlling which types of auto-generated assets Google may create.  | validation: maxItems 10
                 - name: type | type: AssetAutomationType | description: The type of asset automation this setting applies to.  
                         - enum:
                         -     UNKNOWN: Unknown asset automation type.
                         -     FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION: Automatically expand the final URL to match more relevant landing pages.
                         -     TEXT_ASSET_AUTOMATION: Automatically generate additional text assets (headlines, descriptions) to improve performance.
                         -     GENERATE_IMAGE_ENHANCEMENT: Automatically enhance existing images with generated variations.
                         -     GENERATE_ENHANCED_YOUTUBE_VIDEOS: Automatically generate enhanced versions of YouTube videos for better ad performance.
                         -     GENERATE_IMAGE_EXTRACTION: Automatically extract still images from videos to use as image assets.
                 - name: status | type: AssetAutomationStatus | description: Whether this automation type is opted in or opted out.  
                         - enum:
                         -     UNKNOWN: Unknown asset automation status.
                         -     OPTED_OUT: Google will not automatically generate assets of this type.
                         -     OPTED_IN: Google may automatically generate assets of this type to improve performance.
              - name: daysInLearning | type: integer | 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.  | validation: format int32
              - 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).  | validation: maxLength 1000
                 - name: status | type: BusinessProfileLinkStatus | description: Set by the server. PENDING right after save, CONNECTED once the campaign is linked to the location on Google Ads.  | read-only: true 
                         - enum:
                         -     UNSPECIFIED: 
                         -     PENDING: The link job is scheduled or retrying.
                         -     CONNECTED: The campaign is linked to its location group on Google Ads.
                         -     FAILED: The job gave up. Saving the campaign again retries.
                 - name: campaignAssetSetResourceName | type: string | description: Google Ads CampaignAssetSet that links the campaign to its location group. Set by the server.  | read-only: true | validation: maxLength 1000
        - name: _id | type: string | description: Unique campaign GUID.  | read-only: true | validation: format GUID
        - name: accountId | type: string | description: Wix internal account GUID associated with this campaign.  | validation: format GUID
        - name: campaignType | type: CampaignType | description: Type of the campaign, either Smart or Performance Max. Set when the campaign is created and can't be changed.  
             - enum:
             -     UNKNOWN: Unknown campaign type.
             -     SMART: Simplified auto-managed campaign. Google handles bidding and ad delivery based on keyword themes and geo targets. New campaigns of this type can no longer be created, so use PERFORMANCE_MAX_LEADS or PERFORMANCE_MAX instead. Existing campaigns of this type aren't affected.
             -     PERFORMANCE_MAX: Retail Performance Max campaign that advertises the products in the account's linked Google Merchant Center feed across all Google channels (Search, Shopping, Display, YouTube, etc.). Requires a linked Merchant Center account whose link is approved (`merchantCenterAccountLinkStatus.status` is `ENABLED` on the account); creation fails with `MERCHANT_CENTER_ACCOUNT_NOT_LINKED` otherwise. Ads are built from the product feed, so asset group assets, asset group signals, excluded keywords, a phone number and a `url` aren't supported.
             -     PERFORMANCE_MAX_LEADS: Performance Max campaign built from the asset group you provide: headlines, long headlines, descriptions, a business name, marketing images, square marketing images and logos, sent to the campaign's `url`. Optimized for leads such as phone calls and form fills. Doesn't need a Merchant Center account.
        - name: status | type: CampaignStatus | description: Current campaign status, synced from Google Ads on each read.  | read-only: true 
             - enum:
             -     UNKNOWN: Used for return value only. Represents a value unknown in this version.
             -     LIVE: Campaign is currently serving ads, depending on budget information.
             -     PAUSED: Campaign has been paused by the user.
             -     ENDED: Campaign has been ended.
             -     IN_REVIEW: The campaign was created but its budget hasn't been charged yet.
             -     ERROR: Error state.
             -     DISAPPROVED: Campaign is not approved.
             -     NOT_SERVING: Campaign is currently not serving due to budget limitations.
             -     DRAFT: Campaign is a draft.
             -     LEARNING: Campaign is in the learning phase. Currently supported only for Google Ads Performance Max leads campaigns.
        - name: resourceName | type: string | description: Google Ads resource name for this campaign, e.g. customers/{customerId}/campaigns/{campaignId}.  | read-only: true | validation: maxLength 1000
        - name: name | type: string | description: Display name of the campaign.  | validation: maxLength 1000
        - name: _createdDate | type: Date | description: Date and time the campaign was created.  | read-only: true 
        - name: _updatedDate | type: Date | description: Date and time the campaign was last updated.  | read-only: true 
        - name: actionDate | type: Date | description: Date and time of the most recent lifecycle action (pause, resume, launch, etc.).  | read-only: true 
        - name: budget | type: CampaignBudget | description: Daily budget for the campaign.  
           - name: resourceName | type: string | description: Google Ads resource name for the campaign budget.  | read-only: true | validation: maxLength 1000
           - 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.  | validation: format DECIMAL_VALUE, decimalValue {"gte":"1","maxScale":0}
        - name: locations | type: array<LocationCriterion> | description: Geographic locations targeted by this campaign.  | validation: minItems 1, maxItems 1000
           - name: resourceName | type: string | description: Google Ads campaign criterion resource name. Format: customers/{customerId}/campaignCriteria/{campaignId}~{criterionId}  | read-only: true | validation: maxLength 1000
           - 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).  | validation: maxLength 1000
                 - name: proximity | type: ProximityAddress | description: Proximity criterion defining a circular area by geo point and radius.  
                    - name: address | type: Address | description: Full address. The address is a description of the geo point that does not affect ad serving.  
                       - name: postalCode | type: string | description: Postal code.  
                       - name: provinceCode | type: string | description: Province or state code.  
                       - name: countryCode | type: string | description: Country code.  
                       - name: provinceName | type: string | description: Province or state name.  
                       - name: streetAddress | type: string | description: Street address line 1.  
                       - name: streetAddress2 | type: string | description: Street address line 2.  
                       - name: cityName | type: string | description: Name of the city.  
                    - name: radiusUnits | type: RadiusUnits | description: The unit of measurement of the radius.  
                             - enum: MILES, KILOMETERS
                    - name: radius | type: integer | description: The radius of the proximity.  | validation: format int32
           - name: displayName | type: string | description: Human-readable location name shown in the UI (e.g. "New York, New York").  | validation: maxLength 1000
        - 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}  | read-only: true 
              - name: startTime | type: AdTime | description: The start time of showing an ad in a specific day.  
                 - name: hour | type: integer | description: Starting hour in 24 hour time. This field must be between 0 and 23, inclusive.  | validation: format int32
                 - name: minute | type: MinuteOfHour | description: Minutes after the start hour at which this schedule starts.  
                         - enum:
                         -     ZERO: Zero minutes past the hour.
                         -     FIFTEEN: Fifteen minutes past the hour.
                         -     THIRTY: Thirty minutes past the hour.
                         -     FORTY_FIVE: Forty-five minutes past the hour.
              - 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.  | read-only: true | validation: maxLength 1000
        - 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 GUID (Wix internal)  | read-only: true | validation: format GUID
           - name: platformType | type: PlatformType | description: The type of platform the campaign will be created on (Google/FB)  | read-only: true 
                 - enum: UNKNOWN, GOOGLE, FACEBOOK, OPENAI
           - name: goal | type: string | description: Goal of the campaign  | validation: maxLength 1000
           - name: audience | type: string | description: Audience the campaign should target  | validation: maxLength 1000
     - name: campaignMessaging | type: string | description: Summary of the campaign's main value proposition and messaging strategy.  | validation: maxLength 1000
  - name: costInMicrocents | type: string | description: Cost of generating the suggestions, in microcents. This cost isn't charged to the caller.  Returned only when a cost is reported.  | validation: format int64

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: UNSUPPORTED_CAMPAIGN_TYPE | Description: The campaign type isn't `PERFORMANCE_MAX_LEADS`. Smart campaign suggestions are no longer generated, because new Smart campaigns can no longer be created.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: MISSING_CAMPAIGN_BRIEF_ID | Description: `campaignBriefId` is required to generate Smart campaign suggestions.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: MAX_CAMPAIGNS_TO_SUGGEST_EXCEEDED | Description: Number of campaign suggestions exceeds the server's limit.


```

### Examples

### Get a Performance Max Leads campaign suggestion
```javascript
import { suggestions } from "@wix/promote-google-ads";

async function getCampaignSuggestions() {
  const response = await suggestions.getCampaignSuggestions({
    amount: 1,
    campaignType: "PERFORMANCE_MAX_LEADS",
  });
}

/* Promise resolves to:
 * {
 *   "campaignSuggestions": [
 *     {
 *       "campaign": {
 *         "name": "Sunrise Bakery Custom Cakes",
 *         "locations": [
 *           {
 *             "location": {
 *               "geoTargetConstant": "geoTargetConstants/1023191"
 *             },
 *             "displayName": "New York,New York,United States"
 *           }
 *         ],
 *         "campaignType": "PERFORMANCE_MAX_LEADS",
 *         "performanceMaxCampaign": {
 *           "url": "https://www.sunrisebakery.com/custom-cakes",
 *           "languages": [
 *             {
 *               "languageCode": "en"
 *             }
 *           ],
 *           "assetGroups": [
 *             {
 *               "assetGroupAssets": {
 *                 "assets": [
 *                   {
 *                     "headlineAsset": {
 *                       "text": "Fresh Baked Daily"
 *                     },
 *                     "assetFieldType": "HEADLINE"
 *                   },
 *                   {
 *                     "headlineAsset": {
 *                       "text": "Order Custom Cakes"
 *                     },
 *                     "assetFieldType": "HEADLINE"
 *                   },
 *                   {
 *                     "headlineAsset": {
 *                       "text": "Artisan Breads in NYC"
 *                     },
 *                     "assetFieldType": "HEADLINE"
 *                   },
 *                   {
 *                     "longHeadlineAsset": {
 *                       "text": "Custom cakes for birthdays, weddings, and every occasion in New York"
 *                     },
 *                     "assetFieldType": "LONG_HEADLINE"
 *                   },
 *                   {
 *                     "descriptionAsset": {
 *                       "text": "Award-winning pastries made fresh every morning."
 *                     },
 *                     "assetFieldType": "DESCRIPTION"
 *                   },
 *                   {
 *                     "descriptionAsset": {
 *                       "text": "Tell us your idea and get a custom cake quote today."
 *                     },
 *                     "assetFieldType": "DESCRIPTION"
 *                   },
 *                   {
 *                     "imageAsset": {
 *                       "name": "Layered wedding cake",
 *                       "url": "https://static.wixstatic.com/media/a3c153_6e2b9d41f8c74a20.jpg"
 *                     },
 *                     "assetFieldType": "MARKETING_IMAGE"
 *                   },
 *                   {
 *                     "imageAsset": {
 *                       "name": "Fresh pastries",
 *                       "url": "https://static.wixstatic.com/media/a3c153_c84f1a07d2e94b63.jpg"
 *                     },
 *                     "assetFieldType": "SQUARE_MARKETING_IMAGE"
 *                   },
 *                   {
 *                     "imageAsset": {
 *                       "name": "Sunrise Bakery logo",
 *                       "url": "https://static.wixstatic.com/media/a3c153_2a7d5e90b1f34c18.png"
 *                     },
 *                     "assetFieldType": "LOGO"
 *                   },
 *                   {
 *                     "businessNameAsset": {
 *                       "text": "Sunrise Bakery"
 *                     },
 *                     "assetFieldType": "BUSINESS_NAME"
 *                   }
 *                 ]
 *               }
 *             }
 *           ]
 *         }
 *       },
 *       "campaignMessaging": "Reach local customers searching for fresh-baked goods and custom cakes."
 *     }
 *   ],
 *   "costInMicrocents": "1250000"
 * }
 */

```

### getCampaignSuggestions (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { suggestions } from '@wix/promote-google-ads';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { suggestions },
  // Include the auth strategy and host as relevant
});


async function getCampaignSuggestions(options) {
  const response = await myWixClient.suggestions.getCampaignSuggestions(options);
};
```

---