Method: accounts.promotions.insert
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-01-23 UTC。
[null,null,["最終更新日 2025-01-23 UTC。"],[[["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"]]