ย้ายข้อมูลการจัดการแหล่งที่มาของ Conversion จาก Content API for Shopping

แหล่งที่มาของ 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} attributionLookbackWindowInDays ใน Merchant API เรียกว่า attributionLookbackWindowDays
includeInReporting ใน Merchant API เรียกว่า 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: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

ใน Merchant API, propertyName เรียกว่า property
merchantCenterDestination: {

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

ใน Merchant API, destinationId เรียกว่า destination
attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

includeInReporting: bool

}

}

attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

report: bool

}

}

attributionLookbackWindowInDays ใน Merchant API เรียกว่า attributionLookbackWindowDays

includeInReporting ใน Merchant API เรียกว่า report