Most LIA-related settings are managed via the
Liasettings
service. To begin
the LIA onboarding process, you must first specify the countries for which you
will be serving local inventory ads. Do this by calling the
Liasettings.update
method:
PUT https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890
{
"accountId" : 67890,
"countrySettings" : [{
"country" : "US"
}]
}
About pages
Keep in mind that if you're serving for European countries, you must also submit an About page. If our example business was planning to serve in both the US and Germany, then they must submit the following information:
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"
}
}]
}
Until this URL is verified, inventory verification cannot be requested. To see
the URL verification status, retrieve the account's LIA settings via
Liasettings.get
and check
the value of the associated status field:
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"
}
}]
}
Once the status associated with the URL changes to active
, the URL is
verified. If the status is inactive
, then there are issues you must address
with your About page. Once you've addressed any issues, you can trigger a new
review by either updating your LIA
settings with the location of the About page, whether it is the same or has
changed.
On display to order and in-store order policy pages
If you want to use the on display to order (ODO) feature, then you should also set that up on a per-country basis:
PUT https://shoppingcontent.googleapis.com/content/v2.1/12345/liasettings/67890
{
"accountId" : 67890,
"countrySettings" : [{
"country" : "US",
"onDisplayToOrder": {
"shippingCostPolicyUrl" : "https://www.example.com/inStoreOrderPolicy"
}
}]
}
Note that the URL you provide for ODO must be verified before you request inventory verification. The process for checking verification and/or requesting another review of the policy URL in the case of issues follows the same flow as the About page:
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"
}
}]
}