Method: accounts.promotions.insert
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-23。
[null,null,["最后更新时间 (UTC):2025-01-23。"],[[["Inserts a new promotion or updates an existing one for your Merchant Center account."],["Utilizes an HTTP POST request to `https://merchantapi.googleapis.com/promotions/v1beta/{parent=accounts/*}/promotions:insert`."],["Requires specifying the parent account and providing promotion details in the request body."],["Returns the `Promotion` object in the response body if the operation is successful."],["Needs authorization with the `https://www.googleapis.com/auth/content` scope."]]],["This documentation details the process for inserting or updating a promotion in a Merchant Center account via an API. The `POST` request is sent to `https://merchantapi.googleapis.com/promotions/v1beta/{parent=accounts/*}/promotions:insert`, with `parent` being the required account identifier. The request body requires `promotion` and `dataSource` fields. The API utilizes OAuth scope `https://www.googleapis.com/auth/content` for authorization, and a successful operation returns a `Promotion` object.\n"]]