本地 Feed 合作伙伴关系 API

您可以通过上传本地商品目录 Feed 添加本地商品目录。 本地商品目录 Feed 提供了可销售商品的列表 在实体店内使用属性来描述商品

若要将您的商品目录数据提供商添加到 Merchant Center 中,请提供: 他们在本专精课程 表单

如需插入广告资源,请使用以下请求:

POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert

{
 
"availability": "in stock",
 
"collectionTime": "2024-01-08T08:00:00Z",
 
"contentLanguage": "en",
 
"gtin": "gtin",
 
"offerId": "{offerId}",
 
"pickupMethod": "buy",
 
"pickupSla": "same day",
 
"price": {
   
"amountMicros": "1000000",
   
"currencyCode": "USD"
 
},
 
"regionCode": "US",
 
"storeCode": "{storeCode}",
 
"targetAccount": "{targetMerchantId}"
}

您应该会看到以下响应:

{
 
"name": "accounts/{merchantId}/lfpInventories/{targetMerchantId}~{storeCode}~{offerId}",
 
"targetAccount": "{targetMerchantId}",
 
"storeCode": "123",
 
"offerId": "{offerId}",
 
"regionCode": "US",
 
"contentLanguage": "en",
 
"gtin": "gtin",
 
"price": {
   
"amountMicros": "1000000",
   
"currencyCode": "USD"
 
},
 
"availability": "in stock",
 
"collectionTime": "2024-01-08T08:00:00Z",
 
"pickupMethod": "buy",
 
"pickupSla": "same day",
 
"feedLabel": "US"
}

如需了解详情,请参阅方法: accounts.lfpInventories.insert.

插入促销活动

要插入销售活动,请使用以下请求:

POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpSales:insert

{
 
"contentLanguage": "en",
 
"gtin": "gtin",
 
"offerId": "offerId",
 
"price": {
   
"amountMicros": "1000000",
   
"currencyCode": "USD"
 
},
 
"quantity": 2,
 
"regionCode": "US",
 
"saleTime": "2024-01-08T08:00:00Z",
 
"storeCode": "123",
 
"targetAccount": "{targetMerchantId}"
}

您应该会看到以下响应:

{
 
"name": "accounts/1000005718521947/lfpSales/{uuid}",
 
"targetAccount": "{targetMerchantId}",
 
"storeCode": "123",
 
"offerId": "offerId",
 
"regionCode": "US",
 
"contentLanguage": "en",
 
"gtin": "gtin",
 
"price": {
   
"amountMicros": "1000000",
   
"currencyCode": "USD"
 
},
 
"quantity": "2",
 
"saleTime": "2024-01-08T08:00:00Z",
 
"uid": "{uuid}",
 
"feedLabel": "US"
}

如需了解详情,请参阅方法: accounts.lfpSales.insert

插入商店

如需插入商店,请使用以下请求:

POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpStores:insert

{
 
"storeAddress": "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA",
 
"storeCode": "{storeCode}",
 
"targetAccount": "{targetMerchantId}"
}

您应该会看到以下响应:

{
 
"name": "accounts/{merchantId}/lfpStores/{targetMerchantId}~{storeCode}",
 
"targetAccount": "1000005718454644",
 
"storeCode": "{storeCode}",
 
"storeAddress": "1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA",
 
"matchingState": "STORE_MATCHING_STATE_MATCHED"
}

如需了解详情,请参阅方法: accounts.lfpStores.insert.