แหล่งที่มาของ Conversion ใน Merchant Center ช่วยให้คุณดูข้อมูล Conversion จากข้อมูลที่แสดงฟรีและจากเว็บไซต์ในบัญชี Merchant Center ได้ Merchant API ช่วยให้คุณจัดการแหล่งที่มาของ Conversion สำหรับบัญชี Merchant Center ได้ ดูข้อมูลเพิ่มเติมได้ที่จัดการแหล่งที่มาของ Conversion
หน้านี้อธิบายวิธีย้ายข้อมูลการจัดการแหล่งที่มาของ Conversion จาก Content API ไปยัง Merchant API
คำขอ
ต่อไปนี้คือตัวอย่างการเปรียบเทียบ Content API for Shopping กับ Merchant Conversion Sources API สำหรับคำขอแหล่งที่มาของ Conversion
| Content API | Merchant API | |
|---|---|---|
| URL | GET https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} |
GET https://merchantapi.googleapis.com/conversions/v1/{NAME} |
| รหัสระบุ | {MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} |
{NAME} |
เมธอด
ต่อไปนี้คือสิ่งที่เปลี่ยนแปลงสำหรับวิธีการแหล่งที่มาของ Conversion ใน Conversion Sources API
| วิธีการ | URL ใน Content API for Shopping | URL ใน Merchant API | ตัวระบุใน Content API for Shopping | ตัวระบุใน Merchant API | คำอธิบาย |
create |
POST https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources |
POST https://merchantapi.googleapis.com/conversions/v1/accounts/{PARENT}/conversionSources |
{MERCHANT_ID} | {PARENT} | ใน Merchant API propertyName เรียกว่า property |
| อัปเดต |
PATCH https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID}
|
PATCH https://merchantapi.googleapis.com/conversions/v1/accounts/{CONVERSIONSOURCE_NAME}
|
{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID}
|
{CONVERSIONSOURCE_NAME} |
ใน Merchant API destinationId เรียกว่า destination
|
delete
|
DELETE https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID}
|
DELETE https://merchantapi.googleapis.com/conversions/v1/accounts/{NAME} |
{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} |
{NAME} | ใน Merchant API attributionLookbackWindowInDays เรียกว่า attributionLookbackWindowDaysใน Merchant API includeInReporting เรียกว่า report |
undelete |
POST https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID}:undelete
|
POST https://merchantapi.googleapis.com/conversions/v1/accounts/{name}:undelete
|
{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} |
{NAME} | URL และตัวระบุจะแตกต่างกันใน Merchant API Conversion Sources API จะแสดง ConversionSource แทน Empty
|
get
|
GET https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID}
|
GET https://merchantapi.googleapis.com/conversions/v1/accounts/{NAME}
|
{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID}
|
{NAME} | URL และตัวระบุจะแตกต่างกันใน Merchant API |
list
|
GET https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources
|
GET https://merchantapi.googleapis.com/conversions/v1/{PARENT}/conversionSources
|
{MERCHANT_ID} | {PARENT} | URL และตัวระบุจะแตกต่างกันใน Merchant API |
แหล่งข้อมูล
ตารางต่อไปนี้กล่าวถึงการเปลี่ยนแปลงในแหล่งข้อมูลแหล่งที่มาของ Conversion ใน Conversion Sources API
| Content API for Shopping | Merchant API | คำอธิบาย |
googleAnalyticsLink: {
|
googleAnalyticsLink: {
|
ใน Merchant API propertyName เรียกว่า property
|
merchantCenterDestination: {
|
merchantCenterDestination: {
|
ใน Merchant API destinationId เรียกว่า destination
|
attributionSettings: {
|
attributionSettings: {
|
ใน Merchant API attributionLookbackWindowInDays เรียกว่า attributionLookbackWindowDays
ใน Merchant API |