Di chuyển hoạt động quản lý các nguồn chuyển đổi từ Content API for Shopping

Nguồn chuyển đổi trong Merchant Center cho phép bạn xem dữ liệu lượt chuyển đổi từ trang thông tin miễn phí và từ trang web của bạn trong tài khoản Merchant Center. Merchant API cho phép bạn quản lý nguồn chuyển đổi cho tài khoản Merchant Center. Để biết thêm thông tin, hãy xem bài viết Quản lý nguồn chuyển đổi.

Trang này mô tả cách bạn có thể di chuyển việc quản lý nguồn chuyển đổi từ Content API sang Merchant API.

Yêu cầu

Dưới đây là một ví dụ so sánh Content API for Shopping với Merchant Conversion Sources API cho các yêu cầu về nguồn chuyển đổi:

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}
Giá trị nhận dạng {MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} {NAME}

Phương thức

Dưới đây là những thay đổi đối với các phương thức nguồn chuyển đổi trong Conversion Sources API:

Phương thức URL trong Content API for Shopping URL trong Merchant API Giá trị nhận dạng trong Content API for Shopping Giá trị nhận dạng trong Merchant API Nội dung mô tả
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} Trong Merchant API, propertyName được gọi là property.
cập nhật 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} Trong Merchant API, destinationId được gọi là 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} Trong Merchant API, attributionLookbackWindowInDays được gọi là attributionLookbackWindowDays.Trong Merchant API, includeInReporting được gọi là 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 và giá trị nhận dạng khác nhau trong Merchant API.
Conversion Sources API trả về ConversionSource thay vì 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 và giá trị nhận dạng khác nhau trong 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 và giá trị nhận dạng khác nhau trong Merchant API.

Tài nguyên

Bảng sau đây đề cập đến những thay đổi trong tài nguyên nguồn chuyển đổi trong Conversion Sources API:

Content API for Shopping Merchant API Nội dung mô tả
googleAnalyticsLink: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

Trong Merchant API, propertyName được gọi là property.
merchantCenterDestination: {

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

Trong Merchant API, destinationId được gọi là destination.
attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

includeInReporting: bool

}

}

attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

report: bool

}

}

Trong Merchant API, attributionLookbackWindowInDays được gọi là attributionLookbackWindowDays.

Trong Merchant API, includeInReporting được gọi là report.