ローカル在庫広告関連の設定は、liasettings
サービスで管理できます。
liasettings.update
を呼び出して、ローカル在庫広告を配信する国を指定します。次の例をご覧ください。
PUT https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890
{
"accountId" : 67890,
"countrySettings" : [{
"country" : "US"
}]
}
ページについて
また、オーストリア、ドイツ、スイスで配信している場合は、概要ページも登録する必要があります。たとえば、米国とドイツで広告を配信するには、次のような情報を登録します。
PUT https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890
{
"accountId" : 67890,
"countrySettings" : [{
"country" : "US"
},
{
"country" : "DE",
"about" : {
"url" : "https://www.example.com/de/about"
}
}]
}
この URL が確認されるまで、在庫確認をリクエストすることはできません。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"
},
{
"country" : "DE",
"about" : {
"url" : "https://www.example.com/de/about",
"status" : "pending"
}
}]
}
URL に関連付けられたステータスが active
に変わると、URL が検証されます。ステータスが inactive
の場合は、概要ページで対処する必要がある問題があります。問題に対処したら、概要ページの位置(同じか変更か)を指定してローカル在庫広告の設定を更新し、新しい審査を開始できます。
見本展示ありと店舗の注文に関するポリシーのページ
見本展示あり(ODO)機能を使用する場合は、国ごとに設定する必要があります。
PUT https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890
{
"accountId" : 67890,
"countrySettings" : [{
"country" : "US",
"onDisplayToOrder": {
"shippingCostPolicyUrl" : "https://www.example.com/inStoreOrderPolicy"
}
}]
}
ODO 用に指定した URL は、在庫確認をリクエストする前に確認する必要があります。検証を確認する、または問題が発生した場合にポリシー URL の再審査をリクエストするプロセスは、概要ページと同じフローに従います。
GET https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890
Response:
200 OK
{
"kind": "content#liaSettings",
"accountId" : 67890,
"countrySettings" : [{
"country" : "US",
"onDisplayToOrder": {
"shippingCostPolicyUrl" : "https://www.example.com/inStoreOrderPolicy",
"status" : "pending"
}
}]
}