העברת ניהול של מקורות נתונים

מקורות נתונים מאפשרים לכם להעלות את המוצרים שלכם ל-Google. מקורות נתונים אוטומטיים מאפשרים לכם לשלוח בקלות את נתוני המוצרים ל-Google. מידע נוסף זמין במאמר סקירה כללית של Merchant Data Sources API.

השוואה לדוגמה בין הבקשות ב-Content API for Shopping לבין Merchant Data Sources API:

Content API for Shopping ממשק API של מקורות נתוני Merchant
כתובת URL https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds https://merchantapi.googleapis.com/datasources/v1beta/{parent}/dataSources
מזהים {id} {name}

שיטות

לפניכם השוואה בין השיטות של פידים של נתונים ב-Content API for Shopping וב-Merchant Data Sources API:

שיטה Content API for Shopping ממשק API של מקורות נתוני Merchant
customBatch כן לא
insert כן כן
get כן כן
update כן כן
delete כן כן
list כן כן
fetchNow כן כן

מזהים

בניגוד למשאבים אחרים, אי אפשר ליצור את השם של מקור הנתונים מ-Content API ID כי ערכי המזהה השתנו. אפשר להפעיל את שיטת הרשימה כדי לקבל את המזהים החדשים של מקורות הנתונים.

לחלופין, אפשר לשלוח קריאה ל-method accounts.products.get ולקבל את המזהה החדש של מקור הנתונים מהמשאב product.

שיטות

אלה השינויים שבוצעו בפידים של נתונים ב-Merchant Data Sources API:

שיטה כתובת URL ב-Content API for Shopping כתובת URL ב-Merchant Data Sources API מזהה ב-Content API for Shopping מזהה ב-Merchant Data Sources API תיאור
create POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds POST https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources {merchantId} {parent} ב-Content API for Shopping, התרחיש היחיד create הוא יצירת פיד של קובץ ראשי. כל שאר create התרחישים נוספו לאחרונה ב-Merchant Data Sources API.
update PUT https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId} PATCH https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*} {merchantId}/datafeeds/{datafeedId} {dataSource.name=accounts/*/dataSources/*}
delete DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId} DELETE https://merchantapi.googleapis.com/datasources/v1beta/{name=accounts/*/dataSources/*} {merchantId}/datafeeds/{datafeedId} {name=accounts/*/dataSources/*}
get GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId} GET https://merchantapi.googleapis.com/datasources/v1beta/{name=accounts/*/dataSources/*} {merchantId}/datafeeds/{datafeedId} {name=accounts/*/dataSources/*}
list GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds GET https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources {merchantId} {parent}
fetchnow פרסום ב-POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow POST https://merchantapi.googleapis.com/datasources/v1beta/{name=accounts/*/dataSources/*}:fetch {merchantId}/datafeeds/{datafeedId} {name=accounts/*/dataSources/*}