Method: accounts.promotions.insert
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]