- HTTP request
- Request body
- Response body
- Authorization scopes
- LiasettingsCustomBatchRequest
- LiasettingsCustomBatchRequestEntry
- LiasettingsCustomBatchResponseEntry
- GmbAccounts
- Try it!
Retrieves and/or updates the LIA settings of multiple accounts in a single request.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/liasettings/batch
Request body
The request body contains an instance of LiasettingsCustomBatchRequest
.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"entries"
:
[
{
object (
|
Fields | |
---|---|
entries[]
|
The result of the execution of the batch requests. |
kind
|
Identifies what kind of resource this is. Value: the fixed string " |
Authorization scopes
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview .
LiasettingsCustomBatchRequest
JSON representation |
---|
{
"entries"
:
[
{
object (
|
Fields | |
---|---|
entries[]
|
The request entries to be processed in the batch. |
LiasettingsCustomBatchRequestEntry
JSON representation |
---|
{ "batchId" : integer , "merchantId" : string , "method" : string , "accountId" : string , "country" : string , "liaSettings" : { object ( |
batchId
integer ( uint32
format)
An entry ID, unique within the batch request.
merchantId
string
The ID of the managing account.
method
string
The method of the batch entry.
Acceptable values are:
- "
get
" - "
getAccessibleGmbAccounts
" - "
requestGmbAccess
" - "
requestInventoryVerification
" - "
setInventoryVerificationContact
" - "
update
"
accountId
string
The ID of the account for which to get/update account LIA settings.
country
string
The country code. Required only for RequestInventoryVerification.
liaSettings
object (
LiaSettings
)
The account Lia settings to update. Only defined if the method is update
.
gmbEmail
string
The Business Profile. Required only for RequestGmbAccess.
contactName
string
pos.inventory validation contact name. Required only for SetInventoryValidationContact.
contactEmail
string
pos.inventory validation contact email. Required only for SetInventoryValidationContact.
posDataProviderId
string
The ID of POS data provider. Required only for SetPosProvider.
posExternalAccountId
string
The account ID by which this merchant is known to the POS provider.
omnichannelExperience
object (
LiaOmnichannelExperience
)
The omnichannel experience for a country. Required only for SetOmnichannelExperience.
LiasettingsCustomBatchResponseEntry
JSON representation |
---|
{ "batchId" : integer , "liaSettings" : { object ( |
Fields | |
---|---|
batchId
|
The ID of the request entry to which this entry responds. |
liaSettings
|
The retrieved or updated Lia settings. |
errors
|
A list of errors defined if, and only if, the request failed. |
gmbAccounts
|
The list of accessible Business Profiles. |
posDataProviders[]
|
The list of POS data providers. |
omnichannelExperience
|
The updated omnichannel experience for a country. |
kind
|
Identifies what kind of resource this is. Value: the fixed string " |
GmbAccounts
JSON representation |
---|
{
"accountId"
:
string
,
"gmbAccounts"
:
[
{
object (
|
Fields | |
---|---|
accountId
|
The ID of the Merchant Center account. |
gmbAccounts[]
|
A list of Business Profiles which are available to the merchant. |