Migrar o gerenciamento de origens de conversão da API Content for Shopping

Com a API Merchant, você pode gerenciar as origens de conversão da sua conta do comerciante.

Solicitações

Confira um exemplo de comparação entre a API Content for Shopping e a API Merchant Conversion Sources para solicitações de origens de conversão:

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

Métodos

Veja o que mudou nos métodos de origens de conversão na API Conversion Sources:

Método URL na API Content for Shopping URL na API Merchant Identificadores na API Content for Shopping Identificadores na API Merchant Descrição
create POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources POST https://merchantapi.googleapis.com/conversions/v1beta/accounts/{parent}/conversionSources {merchantId} {parent} Na API Merchant, propertyName é chamado de property.
update 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} Na API Merchant, destinationId é chamado de 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} Na API Merchant, attributionLookbackWindowInDays é chamado de attributionLookbackWindowDays.
Na API Merchant, includeInReporting é chamado de 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} O URL e os identificadores são diferentes na API Merchant.
A API Conversion Sources retorna ConversionSource em vez de 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} O URL e os identificadores são diferentes na API Merchant.
list GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/conversionSources GET https://merchantapi.googleapis.com/conversions/v1beta/{parent}/conversionSources {merchantId} {parent} O URL e os identificadores são diferentes na API Merchant.

Recursos

A tabela a seguir menciona as mudanças nos recursos de origens de conversão na API Conversion Sources:

API Content for Shopping API do comerciante Descrição
googleAnalyticsLink: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

Na API Merchant, propertyName é chamado de property.
merchantCenterDestination: {

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

Na API Merchant, destinationId é chamado de destination.
attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

includeInReporting: bool

}

}

attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

report: bool

}

}

Na API Merchant, attributionLookbackWindowInDays é chamado de attributionLookbackWindowDays.

Na API Merchant, includeInReporting é chamado de report.