If you used Local Inventory Ads settings under the Shopping Content API, there are several important changes with Merchant API.
LIA settings belong now to one of three core components, each having an associated resource.
Core component | Resource |
---|---|
Account configuration for Omnichannel serving | OmnichannelSetting |
Connection to Local Feed Partnership (LFP) partner for inventory data | LfpProvider |
Connection to Google Business Profile (GBP) account for local stores data | GbpAccount |
In addition, with LIA settings there was a single resource per account and it
contained a list of settings for each national entity. With OmnichannelSettings
you can associate multiple resources with an account. Each
resource represents the settings for a particular national entity.
Here's how requests and resources have changed.
Requests
accounts.omnichannelSettings
accounts.omnichannelSettings.list
accounts.omnichannelSettings.list
to get the
omnichannelSettings for the ones of interest.accounts.omnichannelSettings.create, accounts.omnichannelSettings.update
accounts.omnichannelSettings.requestInventoryVerification
accounts.omnichannelSettings.create
or accounts.omnichannelSettings.update
with an updated mask.accounts.omnichannelSettings.create
or accounts.omnichannelSettings.update
with an updated mask.accounts.omnichannelSettings.lfpProvider
accounts.omnichannelSettings.lfpProviders.findLfpProviders
accounts.omnichannelSettings.lfpProviders.linkLfpProvider
accounts.gbpAccount.linkGbpAccount
Resources
In addition, the service behaves differently for PickupType. See Pickup .
OmnichannelSetting
name
string
Format:
accounts/{account}/omnichannelSettings/{omnichannel_setting}
country
string
regionCode
string
hostedLocalStorefrontActive
boolean
lsfType
enum (LsfType)
regionCode
.
Possible values include -
GHLSF
(Google-Hosted Local Storefront) -
MHLSF_BASIC
(Merchant-Hosted Local Storefront Basic, which refers to product pages with in-store availability) -
MHLSF_FULL
(Merchant-Hosted Local Storefront Full, which refers to product pages with in-store availability)
inStock
object
(InStock)
regionCode
. Set at least one of the inStock
or pickup
objects in the create API if
you chose one of the MHLSF
types, but only set inStock
if the lsfType
is GHLSF
.storePickupActive
boolean
pickup
object
(Pickup)
regionCode
. Set at least one of the inStock
or Pickup
objects in the create API if you chose one of the MHLSF
types, but don't set it when GHLSF
is set as the lsfType
.posDataProvider
object
(LiaPosDataProvider)
lfpLink
object
(LfpLink)
onDisplayToOrder
object
(LiaOnDisplayToOrderSettings)
odo
object
(OnDisplayToOrder)
regionCode
about
object
(LiaAboutPageSettings)
about
object
(About)
regionCode
inventory
object
(LiaInventorySettings)
inventoryVerification
object
(InventoryVerification)
regionCode
omnichannelExperience
object (LiaOmnichannelExperience)
lsfType
and pickup
(above).LsfType
lsfType
string
lsfType
enum (LsfType)
-
GHLSF
(Google-Hosted Local Store Front) -
MHLSF_BASIC
(Merchant-Hosted Local Store Front Basic) -
MHLSF_FULL
(Merchant-Hosted Local Store Front Full)
InStock
uri
string
MHLSF
types. Required if the object is set. For GHLSF
, it must be
empty, but for MHLSF
, non-empty. The service uses it only to
review in-stock serving. This URI domain should match the merchant homepage.state
enum
(ReviewState.State)
- ACTIVE
- FAILED
- RUNNING
- ACTION_REQUIRED
To review the Shopping Content version, see LiaCountrySettings and LiaOmnichannelExperience .
Pickup
uri
string
LiaInventorySettings.status
string
state
enum (ReviewState.State)
- ACTIVE
- FAILED
- RUNNING
To review the Shopping Content version, see LiaCountrySettings and LiaOmnichannelExperience .
LfpLink
posDataProviderId
string
lfpProvider
string
posExternalAccountId
string
externalAccountId
string
state
enum (ReviewState.State)
- ACTIVE
- RUNNING
To review the Shopping Content version, see LiaPosDataProvider .
OnDisplayToOrder
shippingCostPolicyUrl
string
uri
string
status
string
state
enum (ReviewState.State)
- ACTIVE
- FAILED
- RUNNING
To review the Shopping Content version, see LiaOnDisplayToOrderSettings .
About
url
string
uri
string
status
string
state
enum (ReviewState.State)
-
ACTIVE
-
FAILED
-
RUNNING
To review the Shopping Content version, see LiaAboutPageSettings .
InventoryVerification
status
string
state
enum (InventoryVerification.State)
- ACTION_REQUIRED
- INACTIVE
- RUNNING
- SUCCEEDED
- SUSPENDED
inventoryVerificationContactName
string
contact
string
inventoryVerificationContactEmail
string
contactEmail
string
inventoryVerificationContactStatus
string
contactState
enum (ReviewState.State)
- ACTIVE
- RUNNING
To review the Shopping Content version, see LiaCountrySettings and LiaInventorySettings .
LfpProvider
Field | Type | Field | Type | Description |
---|---|---|---|---|
fullName
|
string
|
name
|
string
|
The resource name of the LFP provider. Format: accounts/{account}/omnichannelSettings/{omnichannel_setting}/lfpProviders/{lfp_provider}
|
(n/a)
|
(n/a) | regionCode
|
string
|
Required. CLDR country code |
providerId
|
string
|
(n/a) | (n/a) | This field goes away. |
displayName
|
string
|
displayName
|
string
|
The display name of LFP provider |
To review the Shopping Content version, see PosDataProvidersPosDataProvider .
GbpAccount
Shopping Content API
Field
Type
name
string
name
string
Format:
accounts/{account}/gbpAccount/{gbp_account}
gbpAccountId
string
type
string
type
enum (GbpAccount.Type)
-
USER
(personal account) -
BUSINESS_ACCOUNT
(business account)
email
string
gbpAccountName
string
- For personal accounts, this is the email ID of the owner.
- For business accounts, this is the name of the business account.
listingCount
string
listingCount
int64
To review the Shopping Content version, see GmbAccountsGmbAccount .