Przenoszenie zarządzania źródłami konwersji z Content API for Shopping

Źródła konwersji Merchant Center umożliwiają wyświetlanie na koncie Merchant Center danych o konwersjach z bezpłatnych informacji i Twojej witryny. Interfejs Merchant API umożliwia zarządzanie źródłami konwersji na koncie Merchant Center. Więcej informacji znajdziesz w artykule Zarządzanie źródłami konwersji.

Z tej strony dowiesz się, jak przenieść zarządzanie źródłami konwersji z Content API do Merchant API.

Żądania

Oto przykładowe porównanie interfejsu Content API for Shopping z interfejsem Merchant Conversion Sources API w przypadku źródeł konwersji:

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}
Identyfikatory {MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} {NAME}

Metody

Oto zmiany w metodach źródeł konwersji w interfejsie ConversionSources API:

Metoda Adres URL w Content API for Shopping URL w interfejsie Merchant API Identyfikatory w Content API for Shopping Identyfikatory w Merchant API Opis
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} W interfejsie Merchant API element propertyName ma nazwę 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} W interfejsie Merchant API element destinationId ma nazwę 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} W interfejsie Merchant API element attributionLookbackWindowInDays ma nazwę attributionLookbackWindowDays.
W interfejsie Merchant API element includeInReporting ma nazwę 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} Adres URL i identyfikatory są różne w Merchant API.
Interfejs API Źródła konwersji zwraca ConversionSource zamiast 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} Adres URL i identyfikatory są różne w 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} Adres URL i identyfikatory są różne w Merchant API.

Zasoby

W tabeli poniżej znajdziesz informacje o zmianach w zasobach źródeł konwersji w interfejsie Conversion Sources API:

Content API for Shopping Merchant API Opis
googleAnalyticsLink: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

W interfejsie Merchant API element propertyName ma nazwę property.
merchantCenterDestination: {

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

W interfejsie Merchant API element destinationId ma nazwę destination.
attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

includeInReporting: bool

}

}

attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

report: bool

}

}

W interfejsie Merchant API element attributionLookbackWindowInDays ma nazwę attributionLookbackWindowDays.

W interfejsie Merchant API element includeInReporting ma nazwę report.