Method: accounts.promotions.insert

为您的 Merchant Center 帐号插入促销活动。如果促销活动已存在,则系统会改为更新该促销活动。

HTTP 请求

POST https://merchantapi.googleapis.com/promotions/v1beta/{parent=accounts/*}/promotions:insert

网址采用 gRPC 转码语法。

路径参数

参数
parent

string

必需。将在其中插入促销活动的账号。格式:accounts/{account}

请求正文

请求正文中包含结构如下的数据:

JSON 表示法
{
  "promotion": {
    object (Promotion)
  },
  "dataSource": string
}
字段
promotion

object (Promotion)

必需。要插入的促销信息。

dataSource

string

必需。推广活动的数据源,格式为:accounts/{account}/dataSources/{datasource}

响应正文

如果成功,则响应正文包含一个 Promotion 实例。

授权范围

需要以下 OAuth 范围:

  • https://www.googleapis.com/auth/content

如需了解详情,请参阅 OAuth 2.0 概览