促销活动 对象

表示营销商人商店或产品的操作。

所需的访问

read_marketing_events 访问范围。


在本页面


属性

  • app[App!](https://shopify.dev/docs/admin-api/graphql/reference/apps/app)
    营销事件所归属的应用。
  • channel[MarketingChannel](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/marketingchannel)
    营销活动使用的营销渠道。
  • description[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    易于理解的营销事件描述。
  • end**At**([DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
    营销活动结束的日期和时间。
  • id[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)
    全局唯一标识符。
  • legacyResourceId[UnsignedInt64!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#unsignedint64-2021-01)
    REST Admin API中相应资源的ID。
  • manageUrl[URL](https://shopify.dev/docs/admin-api/graphql/reference/scalar#url-2021-01)
    可以管理营销事件的URL。
  • PreviewUrl[URL](https://shopify.dev/docs/admin-api/graphql/reference/scalar#url-2021-01)
    可以预览营销事件的URL。
  • remoteId[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    可选ID,可帮助Shopify验证参与度数据。
  • ScheduledToEndAt[DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
    营销活动计划结束的日期和时间。
  • sourceAndMedium[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    MarketingEvent发生和使用什么样的内容。因为utmSourceutmMedium通常可互换地使用,这是基于的组合marketingChannelreferringDomain以及type提供用于任何给定的片无论创建它的应用程序的销售的一个一致的表示。
  • startsAt[DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
    营销活动开始的日期和时间。
  • type[MarketingTactic!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/marketingtactic)
    营销事件类型。
  • utmCampaign[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    营销活动的名称。
  • utmMedium[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    市场营销活动使用的媒介。值示例:cpcbanner
  • utmSource[String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    营销活动的引荐来源。值示例:googlenewsletter


返回MarketingEvent的类型

  • [CustomerVisit.marketingEvent](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/customervisit#marketingevent-2021-01)
  • [MarketingActivity.marketingEvent](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/marketingactivity#marketingevent-2021-01)
  • [QueryRoot.marketingEvent](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#marketingevent-2021-01)
  • [QueryRoot.marketingEvents](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/queryroot#marketingevents-2021-01)


实现

  • [LegacyInteroperability](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/legacyinteroperability)
  • [Node](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/node)


弃用的栏位

显示隐藏

自动生成的类型,用于通过多个MarketingEvents分页。


在本页面


属性

  • edges[[MarketingEventEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/marketingevent)
    边列表。
  • pageInfo[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo)
    有助于分页的信息。

一种自动生成的类型,在分页期间包含一个MarketingEvent和一个光标。


在本页面


属性

  • cursor[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
    用于分页的光标。
  • node[MarketingEvent!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/marketingevent)
    MarketingEventEdge末尾的项目。


返回MarketingEventEdge的类型

  • [MarketingEventConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/marketingevent#edges-2021-01)