คุณใช้ Merchant API เพื่อแชร์สินค้าคงคลัง ร้านค้า และข้อมูลการขายกับ Google เพื่อระดับการเข้าถึงและการจัดการที่ดีขึ้นได้
คำขอ
ใช้รูปแบบ URL คำขอต่อไปนี้สำหรับ API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้าน
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert
ต่อไปนี้คือตัวอย่างการเปรียบเทียบ Content API for Shopping กับ API ของพาร์ทเนอร์ฟีดในพื้นที่สำหรับคำขอแทรกพื้นที่โฆษณา
Content API | API ผู้ขาย | |
URL |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/inventory
|
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpInventories:insert
|
ตัวระบุ |
{merchantId}/pos/ {targetMerchantId}
|
{parent} |
ต่อไปนี้คือตัวอย่างการเปรียบเทียบ Content API for Shopping กับ API ของพาร์ทเนอร์ฟีดในร้านสำหรับคำขอแทรกการขาย
Content API | API ผู้ขาย | |
URL | POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/sale |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpSales:insert |
ตัวระบุ | {merchantId}/pos/ {targetMerchantId} |
{parent} |
ต่อไปนี้คือตัวอย่างการเปรียบเทียบ Content API for Shopping กับ API ของพาร์ทเนอร์ฟีดในพื้นที่สำหรับคำขอแทรกร้านค้า
Content API | API ผู้ขาย | |
URL | POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpStores:insert |
ตัวระบุ | {merchantId}/pos/ {targetMerchantId} |
{parent} |
วิธีการ
สิ่งที่มีการเปลี่ยนแปลงสำหรับเมธอด API ร้านค้าใน API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้านมีดังนี้
วิธีการ | URL ใน Content API for Shopping | URL ใน Merchant API | ตัวระบุใน Content API for Shopping | ตัวระบุใน Merchant API | คำอธิบาย |
insert |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent=accounts/*}/lfpStores:insert |
{merchantId}/pos /{targetMerchantId} |
{parent} | parent อยู่ในรูปแบบ accounts/{lfpPartnerAccountId} |
delete |
DELETE https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store/ {storeCode} |
DELETE https://merchantapi.googleapis.com/lfp/v1beta/ {name=accounts/*/lfpStores/*} |
{merchantId}/pos/ {targetMerchantId}/store/ {storeCode} |
{name} | name อยู่ในรูปแบบ accounts/ {lfpPartnerAccountId}/lfpStores/ {targetMerchantId}~{storeCode} |
get |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store/ {storeCode} |
GET https://merchantapi.googleapis.com/lfp/v1beta/ {name=accounts/*/lfpStores/*} |
{merchantId}/pos/ {targetMerchantId}/store/ {storeCode} |
{name} | name อยู่ในรูปแบบ accounts/ {lfpPartnerAccountId}/lfpStores/ {targetMerchantId}~{storeCode} |
list |
GET https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
GET https://merchantapi.googleapis.com/lfp/v1beta/ {parent=accounts/*}/lfpStores |
/{merchantId}/pos/ {targetMerchantId} |
{parent} | {parent} อยู่ในรูปแบบของ accounts/ {lfpPartnerAccountId} |
สิ่งที่มีการเปลี่ยนแปลงสำหรับเมธอด API สินค้าคงคลังใน API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้านมีดังนี้
วิธีการ | URL ใน Content API for Shopping | URL ใน Merchant API | ตัวระบุใน Content API for Shopping | ตัวระบุใน Merchant API | คำอธิบาย |
insert |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpInventories:insert |
{merchantId}/pos/ {targetMerchantId} |
{parent} | parent อยู่ในรูปแบบของ accounts/ {lfpPartnerAccountId} |
สิ่งที่มีการเปลี่ยนแปลงสำหรับเมธอด API การขายใน API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้านมีดังนี้
วิธีการ | URL ใน Content API for Shopping | URL ใน Merchant API | ตัวระบุใน Content API for Shopping | ตัวระบุใน Merchant API | คำอธิบาย |
insert |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {merchantId}/pos/ {targetMerchantId}/store |
POST https://merchantapi.googleapis.com/lfp/v1beta/ {parent}/lfpSales:insert |
{merchantId}/pos/ {targetMerchantId} |
{parent} | {parent} อยู่ในรูปแบบของ accounts/ {lfpPartnerAccountId} |
แหล่งข้อมูล
สิ่งที่มีการเปลี่ยนแปลงสำหรับทรัพยากรร้านค้าใน API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้านมีดังนี้ ช่องที่ไม่ได้รวมไว้ในที่นี้จะไม่มีการเปลี่ยนแปลง
API เนื้อหาสำหรับช็อปปิ้ง | API ผู้ขาย | คำอธิบาย |
ไม่รองรับ | name: string |
เพิ่มช่องใหม่เพื่อให้แยกแยะร้านค้าต่างๆ ได้ |
ไม่รองรับ | targetAccount: integer |
บัญชีผู้ขายที่จะแทรกสินค้าคงคลังสำหรับ |
targetCountry: string |
regionCode: string |
targetCountry ถูกเปลี่ยนชื่อเป็น regionCode แล้ว |
websiteUrl: string |
websiteUri: string |
websiteUrl ถูกเปลี่ยนชื่อเป็น websiteUri แล้ว |
kind: string |
ไม่รองรับ | API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้านไม่รองรับ kind |
สิ่งที่มีการเปลี่ยนแปลงในการแทรกพื้นที่โฆษณา ช่องที่ไม่ได้รวมอยู่ตรงนี้ จะไม่เปลี่ยนแปลง
API เนื้อหาสำหรับช็อปปิ้ง | API ผู้ขาย | คำอธิบาย |
ไม่รองรับ | name: string |
เพิ่มช่องใหม่เพื่อแยกความแตกต่างของพื้นที่โฆษณา |
ไม่รองรับ | targetAccount: integer |
บัญชีผู้ขายที่จะแทรกสินค้าคงคลัง |
targetCountry: string |
regionCode: string |
เปลี่ยนชื่อ targetCountry เป็น regionCode แล้ว รหัสเขตแดน CLDR ของประเทศที่มีการขายผลิตภัณฑ์ |
itemId: string |
offerId: string |
itemId ถูกเปลี่ยนชื่อเป็น offerId แล้ว |
quantity: string |
quantity: string |
อัปเดต quantity เป็นแบบไม่บังคับแล้ว |
ไม่รองรับ | availability: string |
ต้องมีavailability |
|
|
มีการเปลี่ยนแปลงคำจำกัดความของราคา ดูข้อมูลเพิ่มเติมได้ที่ราคา |
timestamp: string |
collectionTime: string |
timestamp ถูกเปลี่ยนชื่อเป็น collectionTime แล้ว |
kind: string |
ไม่รองรับ | API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้านไม่รองรับ kind |
นี่คือสิ่งที่มีการเปลี่ยนแปลงสำหรับการแทรกการลดราคา ช่องที่ไม่ได้รวมอยู่ตรงนี้ จะไม่เปลี่ยนแปลง
API เนื้อหาสำหรับช็อปปิ้ง | API ผู้ขาย | คำอธิบาย |
ไม่รองรับ | name: string |
เพิ่มช่องใหม่เพื่อแยกความแตกต่างของพื้นที่โฆษณา |
ไม่รองรับ | targetAccount:integer |
บัญชีผู้ขายที่จะแทรกยอดขาย |
targetCountry: string |
regionCode: string |
รหัสเขตแดน CLDR ของประเทศที่มีการขายผลิตภัณฑ์ |
itemId: string |
offerId: string |
itemId ถูกเปลี่ยนชื่อเป็น offerId แล้ว |
|
|
มีการเปลี่ยนแปลงคำจำกัดความของราคา ดูข้อมูลเพิ่มเติมได้ที่ราคา |
timestamp: string |
saleTime: string |
timestamp ถูกเปลี่ยนชื่อเป็น saleTime แล้ว |
kind: string |
ไม่รองรับ | API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้านไม่รองรับ kind |