> 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`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# GetConversionActionsForCurrentSite

# Package: googleAds

# Namespace: AccountService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/ads/google-ads/google-account-v1/get-conversion-actions-for-current-site.md

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

## Introduction

Retrieves the conversion actions configured in Google Ads for the current Wix site.

---

## REST API

### Schema

```
 Method: getConversionActionsForCurrentSite
 Description: Retrieves the conversion actions configured in Google Ads for the current Wix site.
 URL: https://www.wixapis.com/_serverless/pa-google/v1/accounts/current-site/conversion-actions
 Method: GET
 Method parameters:
   query param name: metaSiteId | type: metaSiteId | description: Metasite GUID of the site whose conversion actions to retrieve.  | validation: maxLength 1000
 Return type: GetConversionActionsForCurrentSiteResponse
  - name: conversionActions | type: array<ConversionAction> | description: The conversion actions configured in Google Ads for the current site.  
     - name: id | type: string | description: Conversion action GUID.  
     - name: name | type: string | description: Human-readable name for the conversion action.  
     - name: conversionId | type: string | description: Google Ads conversion GUID used in the tracking snippet injected into the site's HTML.  
     - name: conversionLabel | type: string | description: Google Ads conversion label used in the tracking snippet injected into the site's HTML.  
     - name: category | type: ConversionActionCategoryEnum | description: Category that describes the type of user action this conversion tracks.  
        - name: category | type: ConversionActionCategory | description: The conversion action category.  
             - enum:
             -     UNKNOWN: Category is not recognized in this version.
             -     DEFAULT: Default category.
             -     PAGE_VIEW: User visiting a page.
             -     PURCHASE: Purchase, sales, or "order placed" event.
             -     SIGNUP: Signup user action.
             -     DOWNLOAD: Software download action (as for an app).
             -     ADD_TO_CART: Addition of items to a shopping cart on an advertiser site.
             -     BEGIN_CHECKOUT: Entry into the checkout flow on an advertiser site.
             -     SUBSCRIBE_PAID: Start of a paid subscription for a product or service.
             -     PHONE_CALL_LEAD: Phone call indicating interest in an advertiser's offering.
             -     IMPORTED_LEAD: Lead conversion imported from an external source into Google Ads.
             -     SUBMIT_LEAD_FORM: Form submission on an advertiser site indicating business interest.
             -     BOOK_APPOINTMENT: Appointment booking with an advertiser's business.
             -     REQUEST_QUOTE: Quote or price estimate request.
             -     GET_DIRECTIONS: Search for an advertiser's business location with intention to visit.
             -     OUTBOUND_CLICK: Click through to an advertiser's partner site.
             -     CONTACT: Any contact with an advertiser via call, SMS, email, chat, or similar channel.
             -     ENGAGEMENT: Website engagement event such as long session time or a Google Analytics Smart Goal.
             -     STORE_VISIT: Visit to a physical store location.
             -     STORE_SALE: Sale occurring in a physical store.
             -     QUALIFIED_LEAD: Imported lead that has been further qualified by the advertiser's marketing or sales team.
             -     CONVERTED_LEAD: Imported lead that has completed a desired downstream stage as defined by the advertiser.


```

### Examples

### Get Conversion Actions For Current Site
```curl
curl -X GET \
  'https://www.wixapis.com/google-ads/v1/accounts/current-site/conversion-actions' \
  -H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.promoteGoogleAds.accounts.getConversionActionsForCurrentSite(options)
 Description: Retrieves the conversion actions configured in Google Ads for the current Wix site.
 Method parameters:
   param name: options | type: GetConversionActionsForCurrentSiteOptions  none  
        - name: metaSiteId | type: string | description: Metasite GUID of the site whose conversion actions to retrieve.  | validation: maxLength 1000
 Return type: PROMISE<GetConversionActionsForCurrentSiteResponse>
  - name: conversionActions | type: array<ConversionAction> | description: The conversion actions configured in Google Ads for the current site.  
     - name: _id | type: string | description: Conversion action GUID.  
     - name: name | type: string | description: Human-readable name for the conversion action.  
     - name: conversionId | type: string | description: Google Ads conversion GUID used in the tracking snippet injected into the site's HTML.  
     - name: conversionLabel | type: string | description: Google Ads conversion label used in the tracking snippet injected into the site's HTML.  
     - name: category | type: ConversionActionCategoryEnum | description: Category that describes the type of user action this conversion tracks.  
        - name: category | type: ConversionActionCategory | description: The conversion action category.  
             - enum:
             -     UNKNOWN: Category is not recognized in this version.
             -     DEFAULT: Default category.
             -     PAGE_VIEW: User visiting a page.
             -     PURCHASE: Purchase, sales, or "order placed" event.
             -     SIGNUP: Signup user action.
             -     DOWNLOAD: Software download action (as for an app).
             -     ADD_TO_CART: Addition of items to a shopping cart on an advertiser site.
             -     BEGIN_CHECKOUT: Entry into the checkout flow on an advertiser site.
             -     SUBSCRIBE_PAID: Start of a paid subscription for a product or service.
             -     PHONE_CALL_LEAD: Phone call indicating interest in an advertiser's offering.
             -     IMPORTED_LEAD: Lead conversion imported from an external source into Google Ads.
             -     SUBMIT_LEAD_FORM: Form submission on an advertiser site indicating business interest.
             -     BOOK_APPOINTMENT: Appointment booking with an advertiser's business.
             -     REQUEST_QUOTE: Quote or price estimate request.
             -     GET_DIRECTIONS: Search for an advertiser's business location with intention to visit.
             -     OUTBOUND_CLICK: Click through to an advertiser's partner site.
             -     CONTACT: Any contact with an advertiser via call, SMS, email, chat, or similar channel.
             -     ENGAGEMENT: Website engagement event such as long session time or a Google Analytics Smart Goal.
             -     STORE_VISIT: Visit to a physical store location.
             -     STORE_SALE: Sale occurring in a physical store.
             -     QUALIFIED_LEAD: Imported lead that has been further qualified by the advertiser's marketing or sales team.
             -     CONVERTED_LEAD: Imported lead that has completed a desired downstream stage as defined by the advertiser.


```

### Examples

### Get conversion actions for the current site
```javascript
import { accounts } from '@wix/promote-google-ads';

const response = await accounts.getConversionActionsForCurrentSite();

/* Promise resolves to:
 * {
 *   "conversionActions": [
 *     {
 *       "id": "123456789",
 *       "name": "Purchase",
 *       "conversionId": "AW-123456789",
 *       "conversionLabel": "AbCdEfGhIj",
 *       "category": "PURCHASE"
 *     },
 *     {
 *       "id": "987654321",
 *       "name": "Add to cart",
 *       "conversionId": "AW-987654321",
 *       "conversionLabel": "KlMnOpQrSt",
 *       "category": "ADD_TO_CART"
 *     }
 *   ]
 * }
 */

```

### getConversionActionsForCurrentSite (self-hosted)
Self-hosted 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 { accounts } 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: { accounts },
  // Include the auth strategy and host as relevant
});


async function getConversionActionsForCurrentSite(options) {
  const response = await myWixClient.accounts.getConversionActionsForCurrentSite(options);
};
```

---