> To build a Wix site agentically, or add Wix features like bookings or a store to a site you already have, follow https://www.wix.com/headless/skill.md
> 
> 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

# GetEligibilityInfo

# Package: platform

# Namespace: EligibilityService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/ads/platform/eligibility-v1/get-eligibility-info.md

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

## Introduction

Retrieves whether a site can advertise with Wix, and which requirements it meets.

The site is taken from the request context, so the method takes no parameters.

To advertise with Wix, a site must be published, have a Premium plan, and have a custom domain connected. `eligibilityInfo.eligible` is `true` only when the site meets all of these requirements. `eligibilityInfo.criterias` lists each requirement with whether the site meets it, so you can tell the site owner what's missing.

The same requirements apply to every Wix ad platform, such as Google Ads and Facebook Ads, both for starting to advertise and for keeping ads running. If a site stops meeting a requirement, for example the site is unpublished or its Premium plan is canceled, its ads stop serving.

---

## REST API

### Schema

```
 Method: getEligibilityInfo
 Description: Retrieves whether a site can advertise with Wix, and which requirements it meets.  The site is taken from the request context, so the method takes no parameters.  To advertise with Wix, a site must be published, have a Premium plan, and have a custom domain connected. `eligibilityInfo.eligible` is `true` only when the site meets all of these requirements. `eligibilityInfo.criterias` lists each requirement with whether the site meets it, so you can tell the site owner what's missing.  The same requirements apply to every Wix ad platform, such as Google Ads and Facebook Ads, both for starting to advertise and for keeping ads running. If a site stops meeting a requirement, for example the site is unpublished or its Premium plan is canceled, its ads stop serving.
 URL: https://www.wixapis.com/pa-platform/eligibility/v1/eligibility
 Method: GET
 Return type: GetEligibilityInfoResponse
  - name: eligibilityInfo | type: EligibilityInfo | description: Site's eligibility to advertise with Wix.  
     - name: eligible | type: boolean | description: Whether the site can advertise with Wix. `true` only when the site meets every requirement in `criterias`.  
     - name: criterias | type: array<EligibilityCriteria> | description: Requirements for advertising with Wix, each with whether the site meets it. Contains one entry per requirement.  | validation: maxItems 10
        - name: eligible | type: boolean | description: Whether the site meets this requirement.  
        - name: type | type: EligibilityCriterionType | description: Requirement type.  
             - enum:
             -     SITE_PUBLISHED: The site is published.
             -     HAS_PREMIUM: The site has a Premium plan (a paid Wix site plan).
             -     DOMAIN_CONNECTED: A custom domain is connected to the site.


```

### Examples

### Get Eligibility Info
Retrieves the eligibility of a site that has no custom domain connected.

```curl
curl -X GET \
'https://www.wixapis.com/pa-platform/eligibility/v1/eligibility' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.paidAds.eligibility.getEligibilityInfo()
 Description: Retrieves whether a site can advertise with Wix, and which requirements it meets.  The site is taken from the request context, so the method takes no parameters.  To advertise with Wix, a site must be published, have a Premium plan, and have a custom domain connected. `eligibilityInfo.eligible` is `true` only when the site meets all of these requirements. `eligibilityInfo.criterias` lists each requirement with whether the site meets it, so you can tell the site owner what's missing.  The same requirements apply to every Wix ad platform, such as Google Ads and Facebook Ads, both for starting to advertise and for keeping ads running. If a site stops meeting a requirement, for example the site is unpublished or its Premium plan is canceled, its ads stop serving.
 Return type: PROMISE<GetEligibilityInfoResponse>
  - name: eligibilityInfo | type: EligibilityInfo | description: Site's eligibility to advertise with Wix.  
     - name: eligible | type: boolean | description: Whether the site can advertise with Wix. `true` only when the site meets every requirement in `criterias`.  
     - name: criterias | type: array<EligibilityCriteria> | description: Requirements for advertising with Wix, each with whether the site meets it. Contains one entry per requirement.  | validation: maxItems 10
        - name: eligible | type: boolean | description: Whether the site meets this requirement.  
        - name: type | type: EligibilityCriterionType | description: Requirement type.  
             - enum:
             -     SITE_PUBLISHED: The site is published.
             -     HAS_PREMIUM: The site has a Premium plan (a paid Wix site plan).
             -     DOMAIN_CONNECTED: A custom domain is connected to the site.


```

### Examples

### Get Eligibility Info
Retrieves the eligibility of a site that meets every requirement.

```javascript
import { eligibility } from "@wix/paid-ads";

async function getEligibilityInfo() {
  const eligibilityInfoResponse = await eligibility.getEligibilityInfo();

  return eligibilityInfoResponse;
}

/* Promise resolves to:
 * {
 *   "eligibilityInfo": {
 *     "eligible": true,
 *     "criterias": [
 *       {
 *         "eligible": true,
 *         "type": "SITE_PUBLISHED"
 *       },
 *       {
 *         "eligible": true,
 *         "type": "HAS_PREMIUM"
 *       },
 *       {
 *         "eligible": true,
 *         "type": "DOMAIN_CONNECTED"
 *       }
 *     ]
 *   }
 * }
 */

```

### getEligibilityInfo (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 { eligibility } from '@wix/paid-ads';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function getEligibilityInfo() {
  const response = await myWixClient.eligibility.getEligibilityInfo();
};
```

---