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: {
|
googleAnalyticsLink: {
|
Di Merchant API, propertyName disebut property .
|
merchantCenterDestination: {
|
merchantCenterDestination: {
|
Di Merchant API, destinationId disebut destination .
|
attributionSettings: {
|
attributionSettings: {
|
Di Merchant API, attributionLookbackWindowInDays disebut attributionLookbackWindowDays .
Di Merchant API, |