Esegui la migrazione della gestione delle origini conversione dall'API Content for Shopping

Le origini delle conversioni di Merchant Center ti consentono di visualizzare i dati sulle conversioni dalle schede senza costi e dal tuo sito web nel tuo account Merchant Center. L'API Merchant ti consente di gestire le origini delle conversioni per il tuo account Merchant Center. Per saperne di più, consulta Gestire le origini delle conversioni.

Questa pagina descrive come eseguire la migrazione della gestione delle origini conversione dall'API Content all'API Merchant.

Richieste

Ecco un confronto di esempio tra l'API Content for Shopping e l'API Fonti di conversione di Merchant per le richieste di fonti di conversione:

API Content API Merchant
URL GET https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} GET https://merchantapi.googleapis.com/conversions/v1/{NAME}
Identificatori {MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} {NAME}

Metodi

Ecco cosa è cambiato per i metodi delle origini conversione nell'API Conversion Sources:

Metodo URL nell'API Content for Shopping URL nell'API Merchant Identificatori nell'API Content for Shopping Identificatori nell'API Merchant Descrizione
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} Nell'API Merchant, propertyName è chiamato property.
update 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} Nell'API Merchant, destinationId è chiamato 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} Nell'API Merchant, attributionLookbackWindowInDays è chiamato attributionLookbackWindowDays.
Nell'API Merchant, includeInReporting è chiamato 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} L'URL e gli identificatori sono diversi nell'API Merchant.
L'API Conversion Sources restituisce ConversionSource anziché 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} L'URL e gli identificatori sono diversi nell'API Merchant.
list GET https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources GET https://merchantapi.googleapis.com/conversions/v1/{PARENT}/conversionSources {MERCHANT_ID} {PARENT} L'URL e gli identificatori sono diversi nell'API Merchant.

Risorse

La tabella seguente indica le modifiche alle risorse delle origini conversione nell'API Conversion Sources:

API Content per Shopping API Merchant Descrizione
googleAnalyticsLink: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

Nell'API Merchant, propertyName è chiamato property.
merchantCenterDestination: {

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

Nell'API Merchant, destinationId è chiamato destination.
attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

includeInReporting: bool

}

}

attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

report: bool

}

}

Nell'API Merchant, attributionLookbackWindowInDays è chiamato attributionLookbackWindowDays.

Nell'API Merchant, includeInReporting è chiamato report.