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: {
|
googleAnalyticsLink: {
|
Na API Merchant, propertyName é chamado de property .
|
merchantCenterDestination: {
|
merchantCenterDestination: {
|
Na API Merchant, destinationId é chamado de destination .
|
attributionSettings: {
|
attributionSettings: {
|
Na API Merchant, attributionLookbackWindowInDays é chamado de attributionLookbackWindowDays .
Na API Merchant, |