Content API for Shopping से खाते के मैनेजमेंट को माइग्रेट करना

अपना कारोबारी खाता बनाने और उसे मैनेज करने के लिए, खाते के संसाधन का इस्तेमाल किया जा सकता है. ज़्यादा जानकारी के लिए, Merchant accounts API की खास जानकारी देखें.

इस पेज पर, खाते के मैनेजमेंट से जुड़ी जानकारी को Content API से Merchant API पर माइग्रेट करने का तरीका बताया गया है.

अनुरोध

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

POST https://merchantapi.googleapis.com/accounts/v1beta/{accountId}/accounts

यहां एक सैंपल दिया गया है, जिसमें Content API for Shopping और खाता बनाने और मैनेज करने के अनुरोधों के लिए, Merchant Accounts API की तुलना की गई है:

Shopping के लिए Content API मर्चेंट खाते API
यूआरएल https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/accounts/{accountId}/ https://merchantapi.googleapis.com/accounts/v1beta/{accountId}/accounts
आइडेंटिफ़ायर {merchantId}/accounts/{accountId} {accountId}

संसाधन

खाते का डेटा, Content API for Shopping में Account संसाधन का इस्तेमाल करके पास किया जाता है. Merchant खाता API, खातों का डेटा भेजने के लिए कई संसाधन उपलब्ध कराता है. इन संसाधनों में Account, User, BusinessInfo, और BusinessIdentity संसाधन शामिल हैं.

नीचे दी गई टेबल में, Content API for Shopping में मौजूद Account संसाधनों और Merchant Account API में मौजूद Account संसाधन के बीच तुलना की गई है.

Shopping के लिए Content API मर्चेंट खाते API
id account_id
name account_name
kind उपलब्ध नहीं है
websiteUrl homepage संसाधन में uri फ़ील्ड
adultContent adult_content
sellerId उपलब्ध नहीं है
users User संसाधन में
youtubeChannelLinks जानकारी अभी उपलब्ध नहीं है
googleMyBusinessLink जानकारी अभी उपलब्ध नहीं है
businessInformation businessInfo संसाधन में
businessIdentity businessIdentity संसाधन में
automaticImprovements जानकारी अभी उपलब्ध नहीं है
adsLinks जानकारी अभी उपलब्ध नहीं है
cssId यह सुविधा सिर्फ़ CSS API में उपलब्ध है
labelIds यह सुविधा सिर्फ़ CSS API में उपलब्ध है
accountManagement जानकारी अभी उपलब्ध नहीं है
automaticLabelIds यह सुविधा सिर्फ़ CSS API में उपलब्ध है
conversionSettings जानकारी अभी उपलब्ध नहीं है

नीचे दी गई टेबल में, Content API for Shopping में मौजूद AccountUser संसाधन और Merchant Account API में मौजूद User रिसॉर्स के बीच तुलना की गई है.

Shopping के लिए Content API मर्चेंट खाते API
emailAddress email, name
(accounts/{account}/users/{email}) का हिस्सा है.
admin user#access_rights.ADMIN
orderManager उपलब्ध नहीं है
paymentsManager उपलब्ध नहीं है
paymentsAnalyst उपलब्ध नहीं है
reportingManager user#access_rights.PERFORMANCE_REPORTING

नीचे दी गई टेबल में, Content API for Shopping में मौजूद AccountBusinessInformation संसाधनों और Merchant Account API में मौजूद इसके बराबर के संसाधन businessinfo के बीच तुलना की गई है.

Shopping के लिए Content API मर्चेंट खाते API
businessInformation businessinfo
phoneNumber phone
phoneVerificationStatus phone_verification_state
customerService customer_service
koreanBusinessRegistrationNumber उपलब्ध नहीं है

नीचे दी गई टेबल में, Content API for Shopping में मौजूद AccountBusinessIdentity संसाधन और Merchant खाता API में businessIdentity संसाधन के बीच तुलना की गई है.

Shopping के लिए Content API मर्चेंट खाते API
blackOwned black_owned
womenOwned women_owned
veteranOwned veteran_owned
latinoOwned latino_owned
smallBusiness small_business
includeForPromotions promotions_consent
true का मतलब है PROMOTION_CONSENT_GIVEN
false का मतलब है PROMOTION_CONSENT_DENIED

नीचे दी गई टेबल में, Content API for Shopping में मौजूद AccountIdentityType संसाधन और Merchant खाता API में मौजूद identityAttribute संसाधन के बीच तुलना की गई है.

Shopping के लिए Content API मर्चेंट खाते API
self_identified identity_declaration
true का मतलब है SELF_IDENTIFIES_AS
false का मतलब है DOES_NOT_SELF_IDENTIFY_AS

तरीके

Merchant खाता API में ये तरीके शामिल किए गए हैं:

Shopping के लिए Content API मर्चेंट खाते API
accounts.authinfo GET https://merchantapi.googleapis.com/accounts/v1beta/accounts, जिसमें कोई फ़िल्टर नहीं है
accounts.claimwebsite POST https://merchantapi.googleapis.com/accounts/v1beta/accounts/accountId/homepage:claim
ज़्यादा जानकारी के लिए, तरीका: accounts.v1beta.accounts.homepage.claim देखें
accounts.custombatch यह सुविधा उपलब्ध नहीं है. Merchant API में, ज़रूरत के हिसाब से बैच बनाने की सुविधा काम नहीं करती.
accounts.delete DELETE https://merchantapi.googleapis.com/accounts/v1beta/accounts/accountId
accounts.get उस संसाधन के GET अनुरोध के लिए मैप जहां ज़रूरी फ़ील्ड या फ़ील्ड के सेट तय किए गए हैं.
accounts.insert POST https://merchantapi.googleapis.com/accounts/v1beta/accounts:createAndConfigure
ज़्यादा जानकारी के लिए, कारोबारी खाता बनाना और उसे कॉन्फ़िगर करना लेख पढ़ें.
accounts.link अभी तक समर्थित नहीं
accounts.list GET https://merchantapi.googleapis.com/accounts/v1beta/accountId:listSubaccounts
accounts.listlinks अभी तक समर्थित नहीं
accounts.update उस संसाधन के अपडेट अनुरोध पर मैप करता है जिसमें ज़रूरी फ़ील्ड या फ़ील्ड के सेट तय किए गए हों.