Method: accounts.promotions.insert
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-23 (世界標準時間)。
[null,null,["上次更新時間: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"]]