Skip to main content
object

Requires read_marketing_events access scope.

Represents actions that market a merchant's store or products.

•App!
non-null

The app that the marketing event is attributed to.

•String

The unique string identifier of the channel to which this activity belongs. For the correct handle for your channel, contact your partner manager.

•String

A human-readable description of the marketing event.

•DateTime

The date and time when the marketing event ended.

•ID!
non-null

A globally-unique ID.

•UnsignedInt64!
non-null

The ID of the corresponding resource in the REST Admin API.

•URL

The URL where the marketing event can be managed.

Anchor to marketingChannelTypemarketingChannelType
•MarketingChannel

The medium through which the marketing activity and event reached consumers. This is used for reporting aggregation.

•URL

The URL where the marketing event can be previewed.

•String

An optional ID that helps Shopify validate engagement data.

•DateTime

The date and time when the marketing event is scheduled to end.

•String!
non-null

Where the MarketingEvent occurred and what kind of content was used. Because utmSource and utmMedium are often used interchangeably, this is based on a combination of marketingChannel, referringDomain, and type to provide a consistent representation for any given piece of marketing regardless of the app that created it.

•DateTime!
non-null

The date and time when the marketing event started.

•MarketingTactic!
non-null

The marketing event type.

•String

The name of the marketing campaign.

•String

The medium that the marketing campaign is using. Example values: cpc, banner.

•String

The referrer of the marketing event. Example values: google, newsletter.

Deprecated fields

•MarketingChannel
Deprecated
Anchor to targetTypeDisplayTexttargetTypeDisplayText
•String!
non-nullDeprecated

Was this section helpful?

•query

Returns a MarketingEvent resource by ID.

Arguments

•ID!
required

The ID of the MarketingEvent to return.


•query

A list of marketing events associated with the marketing app.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.

•MarketingEventSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

•id
Anchor to description
•string
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to started_at
•time
•string


Was this section helpful?


Was this section helpful?