Content API for Shopping からコンバージョンの発生元の管理を移行する

Merchant Center のコンバージョン ソースを使用すると、Merchant Center アカウントで無料リスティングウェブサイトからのコンバージョン データを表示できます。Merchant API を使用すると、Merchant Center アカウントのコンバージョン ソースを管理できます。詳細については、コンバージョン ソースを管理するをご覧ください。

このページでは、コンバージョン ソースの管理を Content API から Merchant API に移行する方法について説明します。

リクエスト

Content API for Shopping と Merchant Conversion Sources API のコンバージョン ソース リクエストの比較例を次に示します。

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

メソッド

Conversion Sources API のコンバージョンの発生元メソッドの変更点は次のとおりです。

メソッド Content API for Shopping の URL Merchant API の URL Content API for Shopping の ID Merchant API の ID 説明
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} Merchant API では、propertyNameproperty と呼ばれます。
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} Merchant API では、destinationIddestination と呼ばれます。
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} Merchant API では、attributionLookbackWindowInDaysattributionLookbackWindowDays と呼ばれます。
Merchant API では、includeInReportingreport と呼ばれます。
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} Merchant API では URL と ID が異なります。
Conversion Sources API は Empty ではなく ConversionSource を返します。
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} Merchant API では URL と ID が異なります。
list GET https://shoppingcontent.googleapis.com/content/v2.1/{MERCHANT_ID}/conversionSources GET https://merchantapi.googleapis.com/conversions/v1/{PARENT}/conversionSources {MERCHANT_ID} {PARENT} Merchant API では URL と ID が異なります。

リソース

次の表は、Conversion Sources API のコンバージョンの発生元リソースの変更点を示しています。

Content API for Shopping Merchant API 説明
googleAnalyticsLink: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

Merchant API では、propertyNameproperty と呼ばれます。
merchantCenterDestination: {

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

Merchant API では、destinationIddestination と呼ばれます。
attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

includeInReporting: bool

}

}

attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

report: bool

}

}

Merchant API では、attributionLookbackWindowInDaysattributionLookbackWindowDays と呼ばれます。

Merchant API では、includeInReportingreport と呼ばれます。