販売者サポートを移行する

Content API for Shopping を使用すると、 merchantsupport リソースを使用して、販売者向けのアプリ内診断ページを作成できます。Merchant API には、同じ機能をサポートする問題解決機能が用意されています。

概要

Content API から移行する場合は、サービス名、メソッド名、構造が変更されていることに注意してください。

  • API レスポンスの最も大きな変更点は、AccountIssue オブジェクトと ProductIssue オブジェクトが 1 つの RenderedIssue オブジェクトに統合されたことです。これにより、あらゆる種類の問題に対して一貫した構造が提供されるため、コードが簡素化されます。
  • Merchant API では、issues フィールドの名前が rendered_issues に変更されています。

識別子

Merchant API では、Content API の識別子を次のように変更します。

メソッド Content API for Shopping Merchant API
renderaccountissues {merchant_id} accounts/{ACCOUNT_ID}
renderproductissues {PRODUCT_ID} accounts/{ACCOUNT_ID}/products/{PRODUCT_ID}
TriggerAction {merchant_id} accounts/{ACCOUNT_ID}

リクエスト

Merchant API では、Content API のリクエストを次のように変更します。

アクション Content API for Shopping Merchant API
アカウントのアカウント レベルの問題をレンダリングする POST https://shoppingcontent.googleapis.com/content/v2.1/MERCHANT_ID/merchantsupport/renderaccountissues POST https://merchantapi.googleapis.com/issueresolution/v1/accounts/ACCOUNT_ID:renderaccountissues
商品の問題をレンダリングする POST https://shoppingcontent.googleapis.com/content/v2.1/MERCHANT_ID/merchantsupport/renderproductissues/PRODUCT_ID POST https://merchantapi.googleapis.com/issueresolution/v1/accounts/ACCOUNT_ID/products/PRODUCT_ID:renderproductissues
アクションをトリガーする POST https://shoppingcontent.googleapis.com/content/v2.1/MERCHANT_ID/merchantsupport/triggeraction https://merchantapi.googleapis.com/issueresolution/v1/accounts/ACCOUNT_ID:triggeraction

API レスポンスの最も大きな変更点は、AccountIssue オブジェクトと ProductIssue オブジェクトが 1 つの RenderedIssue オブジェクトに統合されたことです。 これにより、あらゆる種類の問題に対して一貫した構造が提供されるため、コードが簡素化されます。

名前が変更されたフィールド

レスポンスの最上位の issues フィールドの新しい名前は renderedIssues です。RenderedIssue オブジェクトのリストが含まれています。

Content API for Shopping Merchant API
issues renderedIssues

名前が変更されたモデル

Content API for Shopping Merchant API
  • AccountIssue
  • ProductIssue
RenderedIssue