लोकल फ़ीड के साथ पार्टनरशिप को माइग्रेट करना

अपनी इन्वेंट्री, स्टोर, और बिक्री का डेटा शेयर करने के लिए, Merchant API का इस्तेमाल किया जा सकता है को Google के साथ कनेक्ट किया गया है.

अनुरोध

Local feeds partnership API के लिए, अनुरोध के इस यूआरएल फ़ॉर्मैट का इस्तेमाल करें:

POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert

ज़्यादा जानकारी के लिए, तरीका: accounts.lfpInventories.insert.

यहां Content API for Shopping की तुलना, स्थानीय फ़ीड से करने के लिए एक सैंपल दिया गया है इन्वेंट्री डालने के अनुरोध के लिए Partner API:

Content API मर्चेंट एपीआई
यूआरएल POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert
आइडेंटिफ़ायर {merchantId}/pos/{targetMerchantId} {parent}

यहां Content API for Shopping की तुलना, स्थानीय फ़ीड से करने के लिए एक सैंपल दिया गया है बिक्री शामिल करने के अनुरोध के लिए Partner API:

Content API मर्चेंट एपीआई
यूआरएल POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/sale POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpSales:insert
आइडेंटिफ़ायर {merchantId}/pos/{targetMerchantId} {parent}

यहां Content API for Shopping की तुलना, स्थानीय फ़ीड से करने के लिए एक सैंपल दिया गया है स्टोर डालने के अनुरोध के लिए Partner API:

Content API मर्चेंट एपीआई
यूआरएल POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/store POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpStores:insert
आइडेंटिफ़ायर {merchantId}/pos/{targetMerchantId} {parent}

तरीके

Local feeds partnership में स्टोर एपीआई के तरीकों में हुए बदलावों के बारे में यहां बताया गया है एपीआई:

तरीका Shopping के लिए Content API में यूआरएल Merchant API में यूआरएल Shopping के लिए Content API में आइडेंटिफ़ायर Merchant API में आइडेंटिफ़ायर ब्यौरा
insert POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/store POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores:insert {merchantId}/pos/{targetMerchantId} {parent} parent, accounts/{lfpPartnerAccountId} फ़ॉर्मैट में है
delete DELETE https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode} DELETE https://merchantapi.googleapis.com/lfp/v1beta/{name=accounts/*/lfpStores/*} {merchantId}/pos/{targetMerchantId}/store/{storeCode} {name} name का फ़ॉर्मैट accounts/{lfpPartnerAccountId}/lfpStores/{targetMerchantId}~{storeCode} है
get GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode} GET https://merchantapi.googleapis.com/lfp/v1beta/{name=accounts/*/lfpStores/*} {merchantId}/pos/{targetMerchantId}/store/{storeCode} {name} name का फ़ॉर्मैट accounts/{lfpPartnerAccountId}/lfpStores/{targetMerchantId}~{storeCode} है
list GET https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/store GET https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpStores /{merchantId}/pos/{targetMerchantId} {parent} {parent}, accounts/{lfpPartnerAccountId} फ़ॉर्मैट में है

Local feeds partnership में इन्वेंट्री एपीआई के तरीकों में क्या बदलाव हुए हैं एपीआई:

तरीका Shopping के लिए Content API में यूआरएल Merchant API में यूआरएल Shopping के लिए Content API में आइडेंटिफ़ायर Merchant API में आइडेंटिफ़ायर ब्यौरा
insert POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/store POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpInventories:insert {merchantId}/pos/{targetMerchantId} {parent} parent, accounts/{lfpPartnerAccountId} फ़ॉर्मैट में है

Local feeds partnership में, Sales API के तरीकों में क्या बदलाव हुए हैं एपीआई:

तरीका Shopping के लिए Content API में यूआरएल Merchant API में यूआरएल Shopping के लिए Content API में आइडेंटिफ़ायर Merchant API में आइडेंटिफ़ायर ब्यौरा
insert POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/pos/{targetMerchantId}/store POST https://merchantapi.googleapis.com/lfp/v1beta/{parent}/lfpSales:insert {merchantId}/pos/{targetMerchantId} {parent} {parent}, accounts/{lfpPartnerAccountId} फ़ॉर्मैट में है

संसाधन

Local feeds partnership में, स्टोर संसाधन में क्या बदलाव हुए हैं एपीआई. जो फ़ील्ड यहां शामिल नहीं किए गए हैं उनमें कोई बदलाव नहीं किया गया है.

Shopping के लिए Content API मर्चेंट एपीआई ब्यौरा
ये काम नहीं करते हैं name: string अलग-अलग स्टोर के बीच फ़र्क़ करने के लिए, नया फ़ील्ड जोड़ा गया
ये काम नहीं करते हैं targetAccount: integer वह व्यापारी खाता जिसकी इन्वेंट्री शामिल करनी हैं
targetCountry: string regionCode: string targetCountry का नाम बदलकर regionCode कर दिया गया है
websiteUrl: string websiteUri: string websiteUrl का नाम बदलकर websiteUri कर दिया गया है
kind: string ये काम नहीं करते हैं Local feeds partnership API में kind का इस्तेमाल नहीं किया जा सकता

इन्वेंट्री डालने के लिए जो बदलाव हुए हैं उनकी जानकारी यहां दी गई है. यहां शामिल नहीं किए गए फ़ील्ड हैं कोई बदलाव नहीं.

Shopping के लिए Content API मर्चेंट एपीआई ब्यौरा
ये काम नहीं करते हैं name: string अलग-अलग इन्वेंट्री में अंतर करने के लिए, नया फ़ील्ड जोड़ा गया
ये काम नहीं करते हैं targetAccount: integer वह व्यापारी खाता जिसकी इन्वेंट्री शामिल करनी हैं.
targetCountry: string regionCode: string targetCountry का नाम बदलकर regionCode कर दिया गया है. उस देश का CLDR कोड जहां प्रॉडक्ट बेचा जाता है.
itemId: string offerId: string itemId का नाम बदलकर offerId कर दिया गया है
quantity: string quantity: string quantity को बदलकर अब यह करना ज़रूरी नहीं है
ये काम नहीं करते हैं availability: string availability डालना ज़रूरी है

price: {

object (Price)

}

price: {

object (Price)

}

कीमत की परिभाषा बदल गई है. ज़्यादा जानकारी के लिए, कीमत देखें.
timestamp: string collectionTime: string timestamp का नाम बदलकर collectionTime कर दिया गया है
kind: string ये काम नहीं करते हैं Local feeds partnership API में kind का इस्तेमाल नहीं किया जा सकता.

सेल शामिल करने के लिए जो बदलाव हुए हैं उनकी जानकारी यहां दी गई है. यहां शामिल नहीं किए गए फ़ील्ड हैं कोई बदलाव नहीं.

Shopping के लिए Content API मर्चेंट एपीआई ब्यौरा
ये काम नहीं करते हैं name: string अलग-अलग इन्वेंट्री में अंतर करने के लिए, नया फ़ील्ड जोड़ा गया
ये काम नहीं करते हैं targetAccount:integer वह व्यापारी खाता जिससे बिक्री की जानकारी डालनी है
targetCountry: string regionCode: string उस देश का CLDR कोड जहां प्रॉडक्ट बेचा जाता है.
itemId: string offerId: string itemId का नाम बदलकर offerId कर दिया गया है

price: {

object (Price)

}

price: {

object (Price)

}

कीमत की परिभाषा बदल गई है. ज़्यादा जानकारी के लिए, कीमत देखें.
timestamp: string saleTime: string timestamp का नाम बदलकर saleTime कर दिया गया है
kind: string ये काम नहीं करते हैं Local feeds partnership API में kind का इस्तेमाल नहीं किया जा सकता.