Memigrasikan pengelolaan sumber konversi dari Content API for Shopping

Merchant API memungkinkan Anda mengelola sumber konversi untuk akun penjual.

Permintaan

Berikut adalah contoh perbandingan Content API for Shopping dengan Merchant Conversion Sources API untuk permintaan sumber konversi:

Content API API Penjual
URL GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources/{conversionSourceId} GET https://merchantapi.googleapis.com/conversions/v1beta/{name}
ID {merchantId}/conversionSources/{conversionSourceId} {name}

Metode

Berikut adalah hal-hal yang berubah untuk metode sumber konversi di Conversion Sources API:

Metode URL di Content API for Shopping URL di Merchant API ID di Content API for Shopping ID di Merchant API Deskripsi
create POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources POST https://merchantapi.googleapis.com/conversions/v1beta/accounts/{parent}/conversionSources {merchantId} {parent} Di Merchant API, propertyName disebut property.
ubah PATCH https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources/{conversionSourceId} PATCH https://merchantapi.googleapis.com/conversions/v1beta/accounts/{conversionSource.name} {merchantId}/conversionSources/{conversionSourceId} {conversionSource.name} Di Merchant API, destinationId disebut destination.
delete DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources/{conversionSourceId} DELETE https://merchantapi.googleapis.com/conversions/v1beta/accounts/{name} {merchantId}/conversionSources/{conversionSourceId} {name} Di Merchant API, attributionLookbackWindowInDays disebut attributionLookbackWindowDays.
Di Merchant API, includeInReporting disebut report.
undelete POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources/{conversionSourceId}:undelete POST https://merchantapi.googleapis.com/conversions/v1beta/accounts/{name}:undelete {merchantId}/conversionSources/{conversionSourceId} {name} URL dan ID berbeda di Merchant API.
Conversion Sources API menampilkan ConversionSource, bukan Empty.
get GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources/{conversionSourceId} GET https://merchantapi.googleapis.com/conversions/v1beta/accounts/{name} {merchantId}/conversionSources/{conversionSourceId} {name} URL dan ID berbeda di Merchant API.
list GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources GET https://merchantapi.googleapis.com/conversions/v1beta/{parent}/conversionSources {merchantId} {parent} URL dan ID berbeda di Merchant API.

Resource

Tabel berikut menyebutkan perubahan pada resource sumber konversi di Conversion Sources API:

Content API for Shopping API Penjual Deskripsi
googleAnalyticsLink: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

Di Merchant API, propertyName disebut property.
merchantCenterDestination: {

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

Di Merchant API, destinationId disebut destination.
attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

includeInReporting: bool

}

}

attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

report: bool

}

}

Di Merchant API, attributionLookbackWindowInDays disebut attributionLookbackWindowDays.

Di Merchant API, includeInReporting disebut report.