Marketing Activity
Requires access scope.
The marketing activity resource represents marketing that a merchant created through an app.
Anchor to FieldsFields
- Anchor to activityListUrlactivity•URL
List Url The URL of the marketing activity listing page in the marketing section.
- Anchor to adSpendad•Money
Spend V2 The amount spent on the marketing activity.
- •App!non-null
The app which created this marketing activity.
- Anchor to appErrorsapp•Marketing
Errors Activity Extension App Errors The errors generated when an app publishes the marketing activity.
- Anchor to budgetbudget•Marketing
Budget The allocated budget for the marketing activity.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the marketing activity was created.
- Anchor to formDataform•String
Data The completed content in the marketing activity creation form.
- Anchor to hierarchyLevelhierarchy•Marketing
Level Activity Hierarchy Level The hierarchy level of the marketing activity.
- •ID!non-null
A globally-unique ID.
- Anchor to inMainWorkflowVersionin•Boolean!
Main Workflow Version non-null Whether the marketing activity is in the main workflow version of the marketing automation.
- Anchor to isExternalis•Boolean!
External non-null The marketing activity represents an external marketing activity.
- Anchor to marketingChannelTypemarketing•Marketing
Channel Type Channel! non-null The medium through which the marketing activity and event reached consumers. This is used for reporting aggregation.
- Anchor to marketingEventmarketing•Marketing
Event Event Associated marketing event of this marketing activity.
- Anchor to parentActivityIdparent•ID
Activity Id ID of the parent activity of this marketing activity.
- Anchor to parentRemoteIdparent•String
Remote Id ID of the parent activity of this marketing activity.
- Anchor to sourceAndMediumsource•String!
And Medium non-null A contextual description of the marketing activity based on the platform and tactic used.
- Anchor to statusstatus•Marketing
Activity Status! non-null The current state of the marketing activity.
- Anchor to statusBadgeTypeV2status•Badge
Badge Type V2 Type The severity of the marketing activity's status.
- Anchor to statusLabelstatus•String!
Label non-null The rendered status of the marketing activity.
- Anchor to statusTransitionedAtstatus•Date
Transitioned At Time The date and time when the activity's status last changed.
- Anchor to tactictactic•Marketing
Tactic! non-null The method of marketing used for this marketing activity.
- Anchor to targetStatustarget•Marketing
Status Activity Status The status to which the marketing activity is currently transitioning.
- Anchor to titletitle•String!non-null
The marketing activity's title, which is rendered on the marketing listing page.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time when the marketing activity was updated.
- Anchor to urlParameterValueurl•String
Parameter Value The value portion of the URL query parameter used in attributing sessions to this activity.
- Anchor to utmParametersutm•UTMParameters
Parameters The set of Urchin Tracking Module used in the URL for tracking this marketing activity.
Deprecated fields
- Anchor to marketingChannelmarketing•Marketing
Channel Channel! non-nullDeprecated - Anchor to statusBadgeTypestatus•Marketing
Badge Type Activity Status Badge Type Deprecated
Anchor to QueriesQueries
- •query
A list of marketing activities associated with the marketing app.
- Anchor to marketingActivityIdsmarketing•[ID!]
Activity Ids Default:[] The list of marketing activity IDs to filter by.
- Anchor to remoteIdsremote•[String!]
Ids Default:[] The list of remote IDs associated with marketing activities to filter by.
- •UTMInput
The UTM parameters associated with marketing activities to filter by.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Marketing
Key Activity Sort Keys Default:CREATED_AT 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.
- Anchor to queryquery•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.
- Anchor to default•string
Filter by a case-insensitive search of multiple fields in a document.
query=Bob Normanquery=title:green hoodie- Anchor to app_id•id
- Anchor to app_name•string
A comma-separated list of app names.
- Anchor to created_at•time
- Anchor to marketing_campaign_id•id
- Anchor to scheduled_to_end_at•time
- Anchor to scheduled_to_start_at•time
- Anchor to tactic•string
- Anchor to title•string
- Anchor to updated_at•time
Example:
- Anchor to savedSearchIdsaved•ID
Search Id The ID of a saved search. The search’s query string is used as the query argument.
Arguments
- •query
Returns a
resource by ID.- •ID!required
The ID of the
to return.
Arguments
- •ID!
Anchor to MutationsMutations
- •mutation
Create new marketing activity. Marketing activity app extensions are deprecated and will be removed in the near future.
- Anchor to inputinput•Marketing
Activity Create Input! required The Input of marketing activity create.
Arguments
- •mutation
Creates a new external marketing activity.
- Anchor to inputinput•Marketing
Activity Create External Input! required The input field for creating an external marketing activity.
Arguments
- •mutation
Updates a marketing activity with the latest information. Marketing activity app extensions are deprecated and will be removed in the near future.
- Anchor to inputinput•Marketing
Activity Update Input! required The Input of the marketing activity.
Arguments
- •mutation
Update an external marketing activity.
- Anchor to inputinput•Marketing
Activity Update External Input! required The input field for updating an external marketing activity.
- Anchor to marketingActivityIdmarketing•ID
Activity Id The ID of the marketing activity. Specify either the marketing activity ID, remote ID, or UTM to update the marketing activity.
- Anchor to remoteIdremote•String
Id A custom unique identifier for the marketing activity, which can be used to manage the activity and send engagement metrics without having to store our marketing activity ID in your systems. Specify either the marketing activity ID, remote ID, or UTM to update the marketing activity.
- •UTMInput
Specifies the Urchin Traffic Module (UTM) parameters that are associated with a related marketing campaign. Specify either the marketing activity ID, remote ID, or UTM to update the marketing activity.
Arguments
- •mutation
Creates a new external marketing activity or updates an existing one. When optional fields are absent or null, associated information will be removed from an existing marketing activity.
- Anchor to inputinput•Marketing
Activity Upsert External Input! required The input field for creating or updating an external marketing activity.
Arguments