在庫を確認する

ローカル在庫広告用に Merchant Center アカウントを設定し、適切な商品データと在庫データを追加すると、Google は在庫確認プロセスを通じて、指定された商品と在庫情報の精度を確認します。オンボーディング プロセスを開始する際に在庫確認用の連絡先を設定します。在庫確認をリクエストする準備ができたら、このガイドの他の手順を完了した後で、在庫確認連絡先を設定します。

在庫確認用の連絡先を追加する

在庫確認プロセス用の連絡先情報を追加するには、liasettings.setinventoryverificationcontact メソッドを使用します。

POST https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890/setinventoryverificationcontact?contactEmail=invcheck@example.com&contactName=Inventory%20Manager&country=US&language=en

概要ページや ODO ページの URL と同様に、liasettings.get メソッドを呼び出して、連絡先が確認されているかどうかを確認できます。

GET https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890

Response:
200 OK
{
  "kind": "content#liaSettings",
  "accountId" : 67890,
  "countrySettings" : [{
    "country" : "US",
    "inventory" : {
      "inventoryVerificationContactName" : "Inventory Manager",
      "inventoryVerificationContactEmail" : "invcheck@example.com",
      "inventoryVerificationContactStatus" : "pending"
    }
  }]
}

在庫確認をリクエストする

countrySettings[].inventory.status 以外のすべてのステータス フィールドが active と表示されたら、最初の在庫確認チェックをリクエストできます。そのためには、liasettings.requestinventoryverification メソッドを呼び出します。

POST https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890/requestinventoryverification/US

確認プロセスのステータスを確認するには、アカウントのローカル在庫広告の設定を取得します。

GET https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890

Response:
200 OK
{
  "kind": "content#liaSettings",
  "accountId" : 67890,
  "countrySettings" : [{
    "country" : "US",
    "inventory": {
      "inventoryVerificationContactName" : "Inventory Manager",
      "inventoryVerificationContactEmail" : "invcheck@example.com",
      "inventoryVerificationContactStatus" : "active",
      "status" : "pending"
    }
  }]
}

status フィールドの値が active に変更されたら、ローカル在庫広告のオンボーディング プロセスは完了です。