Search.../

listMarketingTags( )

Developer Preview

Retrieves marketing tags given the provided filter.

Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Syntax

function listMarketingTags(options: ListMarketingTagsOptions): Promise<ListMarketingTagsResponse>

listMarketingTags Parameters

NAME
TYPE
DESCRIPTION
options
Optional
ListMarketingTagsOptions

Information about the marketing tags to retrieve.

Returns

Return Type:

Promise<
ListMarketingTagsResponse
>
NAME
TYPE
DESCRIPTION
tags
Array<
MarketingTag
>

List of marketing tags.

Was this helpful?

listMarketingTags example

Copy Code
1import { marketingTags } from 'wix-marketing-tags.v2';
2
3 async function listMarketingTags(options) {
4 try {
5 const result = await marketingTags.listMarketingTags(options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13