Sumber konversi Merchant Center memungkinkan Anda melihat data konversi dari listingan gratis, dan dari situs Anda, di akun penjual. Merchant API memungkinkan Anda mengelola sumber konversi untuk akun penjual. Untuk mengetahui informasi selengkapnya, lihat Mengelola sumber konversi.
Halaman ini menjelaskan cara memigrasikan pengelolaan sumber konversi dari Content API ke Merchant API.
Permintaan
Berikut adalah contoh perbandingan Content API for Shopping dengan Merchant Conversion Sources API untuk permintaan sumber konversi:
Content API | Merchant API | |
---|---|---|
URL | GET https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID} |
GET https://merchantapi.googleapis.com/conversions/v1beta/ {NAME} |
Pengenal | {MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID} |
{NAME} |
Metode
Berikut adalah perubahan pada 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/ {MERCHANT_ID}/conversionSources |
POST https://merchantapi.googleapis.com/conversions/v1beta/accounts/ {PARENT}/conversionSources |
{MERCHANT_ID} | {PARENT} | Di Merchant API, propertyName disebut property . |
update |
PATCH https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID}
|
PATCH https://merchantapi.googleapis.com/conversions/v1beta/accounts/ {CONVERSIONSOURCE_NAME}
|
{MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID}
|
{CONVERSIONSOURCE_NAME} |
Di Merchant API, destinationId disebut destination .
|
delete
|
DELETE https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID}
|
DELETE https://merchantapi.googleapis.com/conversions/v1beta/accounts/ {NAME} |
{MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID} |
{NAME} | Di Merchant API, attributionLookbackWindowInDays disebut attributionLookbackWindowDays .Di Merchant API, includeInReporting disebut report . |
undelete |
POST https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID}:undelete
|
POST https://merchantapi.googleapis.com/conversions/v1beta/accounts/ {name}:undelete
|
{MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID} |
{NAME} | URL dan ID berbeda di Merchant API. Conversion Sources API menampilkan ConversionSource , bukan Empty .
|
get
|
GET https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID}
|
GET https://merchantapi.googleapis.com/conversions/v1beta/accounts/ {NAME}
|
{MERCHANT_ID}/conversionSources/ {CONVERSIONSOURCE_ID}
|
{NAME} | URL dan ID berbeda di Merchant API. |
list
|
GET https://shoppingcontent.googleapis.com/content/v2.1/ {MERCHANT_ID}/conversionSources
|
GET https://merchantapi.googleapis.com/conversions/v1beta/ {PARENT}/conversionSources
|
{MERCHANT_ID} | {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 | Merchant API | 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, |