העברת ניהול של מקורות המרות מ-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}

Methods

אלה השינויים שבוצעו בשיטות של מקורות המרות ב-Conversion Sources API:

Method כתובת URL ב-Content API for Shopping כתובת URL ב-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} כתובת ה-URL והמזהים שונים ב-Merchant API.
‫Conversion Sources API מחזיר ConversionSource במקום 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} כתובת ה-URL והמזהים שונים ב-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} כתובת ה-URL והמזהים שונים ב-Merchant API.

משאבים

בטבלה הבאה מפורטים השינויים במקורות ההמרות ב-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, ‏ 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.