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 では、 propertyNameは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} | Merchant API では、 destinationIdは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} | Merchant API では、 attributionLookbackWindowInDaysはattributionLookbackWindowDaysと呼ばれます。Merchant API では、 includeInReportingは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} | 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: {
 | googleAnalyticsLink: {
 | Merchant API では、 propertyNameはpropertyと呼ばれます。 | 
| merchantCenterDestination: {
 | merchantCenterDestination: {
 | Merchant API では、 destinationIdはdestinationと呼ばれます。 | 
| attributionSettings: {
 | attributionSettings: {
 | Merchant API では、 attributionLookbackWindowInDaysはattributionLookbackWindowDaysと呼ばれます。
Merchant API では、 |