คุณใช้ Merchant API เพื่อแชร์ข้อมูลสินค้าคงคลัง ร้านค้า และยอดขายได้ ด้วย Google เพื่อการมองเห็นและการจัดการที่ดีขึ้น
คำขอ
ใช้รูปแบบ URL คำขอต่อไปนี้สำหรับ API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้าน
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert
สำหรับข้อมูลเพิ่มเติม โปรดดูเมธอด: accounts.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 ฟิลด์ที่ไม่รวมไว้ที่นี่จะไม่มีการเปลี่ยนแปลง
Content API for Shopping | API ผู้ขาย | คำอธิบาย |
ไม่รองรับ | name: string |
เพิ่มช่องใหม่เพื่อแยกความแตกต่างของร้านค้าแต่ละแห่ง |
ไม่รองรับ | targetAccount: integer |
บัญชีผู้ขายที่จะแทรกสินค้าคงคลัง |
targetCountry: string |
regionCode: string |
targetCountry ถูกเปลี่ยนชื่อเป็น regionCode แล้ว |
websiteUrl: string |
websiteUri: string |
websiteUrl ถูกเปลี่ยนชื่อเป็น websiteUri แล้ว |
kind: string |
ไม่รองรับ | kind ไม่รองรับใน API การเป็นพาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้าน |
สิ่งที่เปลี่ยนแปลงในการแทรกพื้นที่โฆษณามีดังนี้ ฟิลด์ที่ไม่รวมไว้ที่นี่คือ ไม่เปลี่ยนแปลง
Content API for Shopping | 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 |
ไม่รองรับ | kind ไม่รองรับใน API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้าน |
สิ่งที่เปลี่ยนแปลงจากการแทรกการลดราคามีดังนี้ ฟิลด์ที่ไม่รวมไว้ที่นี่คือ ไม่เปลี่ยนแปลง
Content API for Shopping | API ผู้ขาย | คำอธิบาย |
ไม่รองรับ | name: string |
เพิ่มช่องใหม่เพื่อแยกความแตกต่างของสินค้าคงคลังต่างๆ |
ไม่รองรับ | targetAccount:integer |
บัญชีผู้ขายที่จะแทรกยอดขาย |
targetCountry: string |
regionCode: string |
รหัสเขตแดน CLDR สำหรับประเทศที่จำหน่ายผลิตภัณฑ์ |
itemId: string |
offerId: string |
itemId ถูกเปลี่ยนชื่อเป็น offerId แล้ว |
|
|
มีการเปลี่ยนแปลงคำจำกัดความของราคา ดูข้อมูลเพิ่มเติมได้ที่ราคา |
timestamp: string |
saleTime: string |
timestamp ถูกเปลี่ยนชื่อเป็น saleTime แล้ว |
kind: string |
ไม่รองรับ | kind ไม่รองรับใน API พาร์ทเนอร์ทางธุรกิจสำหรับฟีดในร้าน |