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 में यूआरएल Merchant API में यूआरएल Content API for Shopping में आइडेंटिफ़ायर Merchant API में आइडेंटिफ़ायर ब्यौरा
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 कहा जाता है.
अपडेट करें 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 में यूआरएल और आइडेंटिफ़ायर अलग-अलग होते हैं.
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 में यूआरएल और आइडेंटिफ़ायर अलग-अलग होते हैं.
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 में यूआरएल और आइडेंटिफ़ायर अलग-अलग होते हैं.

संसाधन

नीचे दी गई टेबल में, कन्वर्ज़न सोर्स एपीआई में कन्वर्ज़न सोर्स रिसॉर्स में हुए बदलावों के बारे में बताया गया है:

Shopping के लिए Content API Merchant API ब्यौरा
googleAnalyticsLink: {

property_id: int64,

attributionSettings: object,

propertyName: string

}

googleAnalyticsLink: {

propertyId: int64,

attributionSettings: object,

property: string

}

Merchant API में, propertyName को property कहा जाता है.
merchantCenterDestination: {

destinationId: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

merchantCenterDestination: {

destination: string,

attributionSettings: object,

displayName: string,

currencyCode: string

}

Merchant API में, destinationId को destination कहा जाता है.
attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

includeInReporting: bool

}

}

attributionSettings: {

attributionLookbackWindowDays: int32,

attributionModel: object,

repeated conversionType: {

name: string,

report: bool

}

}

Merchant API में, attributionLookbackWindowInDays को attributionLookbackWindowDays कहा जाता है.

Merchant API में, includeInReporting को report कहा जाता है.