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

Com as fontes de conversão do Merchant Center, você pode conferir dados de conversão de listagens sem custo financeiro e do seu site na sua conta do Merchant Center. Com a API Merchant, você gerencia as origens de conversão da sua conta do Merchant Center. Para mais informações, consulte Gerenciar fontes de conversão.

Nesta página, descrevemos como migrar o gerenciamento de fontes de conversão da API Content para a API Merchant.

Solicitações

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

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

Métodos

Confira 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/{MERCHANT_ID}/conversionSources POST https://merchantapi.googleapis.com/conversions/v1/accounts/{PARENT}/conversionSources {MERCHANT_ID} {PARENT} Na Merchant API, propertyName é chamado de 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} Na Merchant API, destinationId é chamado de 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} Na API Merchant, attributionLookbackWindowInDays é chamado de attributionLookbackWindowDays.
Na API Merchant, includeInReporting é chamado de 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} 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/{MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} GET https://merchantapi.googleapis.com/conversions/v1/accounts/{NAME} {MERCHANT_ID}/conversionSources/{CONVERSIONSOURCE_ID} {NAME} O URL e os identificadores são diferentes na 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} 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 Merchant Descrição
googleAnalyticsLink: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

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

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

Na Merchant API, 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 Merchant API, attributionLookbackWindowInDays é chamado de attributionLookbackWindowDays.

Na Merchant API, includeInReporting é chamado de report.