میتوانید با استفاده از رابط وب Google Ads برای تأیید یا رد دعوت، وضعیت پیوندهای Merchant Center را در حساب Google Ads خود تغییر دهید. همچنین میتوانید دعوتنامهها را بهروزرسانی کنید یا پیوندهای موجود را با استفاده از Google Ads API همانطور که در زیر توضیح داده شده است حذف کنید.
فهرست همه دعوتنامههای Merchant Center
میتوانید یک گزارش API Google Ads را با استفاده از عبارت GAQL زیر برای بازیابی فهرستی از همه دعوتنامههای معلق برای پیوند شناسه مشتری Google Ads به حساب Merchant Center اجرا کنید.
اگر جریان دعوت توسط کاربری انجام شود که قبلاً سرپرست هر دو حساب است، یک خطای NO_INVITATION_REQUIRED ایجاد می شود. می توانید این خطا را بررسی کنید و در چنین مواردی به جریان لینک مستقیم بازگردید.
دعوت نامه را رد کنید
رد دعوت شبیه پذیرش دعوت است با این تفاوت که قسمت product_link_invitation_status روی REJECTED تنظیم شده است. اگر دعوتی رد شود، در حالت REJECTED باقی می ماند و قابل قبول نیست. سپس در صورت لزوم باید یک دعوت نامه جدید ایجاد کنید.
لینک مستقیم بدون دعوتنامه
اگر کاربری که میخواهد حساب Google Ads را به حساب Merchant Center مرتبط کند، سرپرست هر دو حساب است، میتوانید مرحله دعوت را دور بزنید و مستقیماً با استفاده از Google Ads API هر دو حساب را پیوند دهید.
اگر پیوند مستقیم توسط کاربری انجام شود که مجوزهای کافی را ندارد، یک خطای CREATION_NOT_PERMITTED ایجاد می شود. می توانید این خطا را بررسی کنید و در چنین مواردی به جریان دعوت بازگردید.
همه پیوندهای Merchant Center را فهرست کنید
میتوانید یک گزارش API Google Ads را با استفاده از عبارت GAQL زیر برای بازیابی فهرستی از پیوندها برای شناسه مشتری Google Ads اجرا کنید.
Business Manager یک نمایندگی یکپارچه از یک کسب و کار در Google است. وقتی حساب Google Ads و حساب Merchant Center خود را با استفاده از حساب Business Manager مدیریت می کنید، Business Manager به طور خودکار پیوندهایی بین حساب Google Ads شما و حساب Merchant Center ایجاد می کند . شما می توانید این پیوندها را با استفاده از Google Ads API بازیابی کنید، اما این پیوندها را نمی توان با Google Ads API تغییر داد.
تاریخ آخرین بهروزرسانی 2025-09-03 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-09-03 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eTo run Shopping campaigns in Google Ads, you must first link your Google Ads and Google Merchant Center accounts.\u003c/p\u003e\n"],["\u003cp\u003eYou can link accounts by sending a request from Merchant Center and approving it in Google Ads, or directly using the Google Ads API if you have administrative access to both.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Ads API allows you to manage link requests, including listing, accepting, and rejecting invitations, as well as directly creating and removing links.\u003c/p\u003e\n"],["\u003cp\u003eIf using Google Business Manager, links are created automatically and can be retrieved, but not modified, through the Google Ads API.\u003c/p\u003e\n"]]],[],null,["# Link your Merchant Center and Google Ads accounts\n\nBefore you can create a Shopping campaign, you need to first link your Google Ads\naccount to your Google Merchant Center account as follows:\n\n1. Send a link request from your Merchant Center account to your Google Ads account.\n2. Approve the link request in your Google Ads account.\n\nSending link requests from your Merchant Center account\n-------------------------------------------------------\n\nThere are two ways of sending a link request:\n\n1. [Use the Merchant Center web interface to send a link\n request](//support.google.com/merchants/answer/6159060).\n2. [Use the Content API for Shopping](/shopping-content/guides/quickstart) to update the `adsLinks` of your [`Account`](/shopping-content/reference/rest/v2.1/accounts).\n\nManaging link requests in your Google Ads account\n-------------------------------------------------\n\nYou can change the status of Merchant Center links in your Google Ads account by\n[using the Google Ads web interface to approve or reject an\ninvitation](//support.google.com/merchants/answer/6159060). You can also\nupdate invitations or remove existing links using the Google Ads API as explained\nbelow.\n\n### List all Merchant Center invitations\n\nYou can run a [Google Ads API report](/google-ads/api/docs/reporting/overview) using the\nfollowing GAQL query to retrieve a list of all pending invitations to link a\nGoogle Ads customer ID to a Merchant Center account. \n\n SELECT\n product_link_invitation.merchant_center.merchant_center_id,\n product_link_invitation.type\n FROM product_link_invitation\n WHERE product_link_invitation.status = 'PENDING_APPROVAL'\n AND product_link_invitation.type = 'MERCHANT_CENTER'\n\nTo retrieve all invitations, remove the filtering condition for the\n`product_link_invitation.status` field in the query above.\n| **Note:** There can only be one invitation with status `REQUESTED` or `PENDING_APPROVAL` between Google Ads and Merchant Center accounts.\n\n### Accept an invitation\n\nYou can approve the link by setting the `product_link_invitation` status to\n`ACCEPTED`.\n\n1. Construct an\n [`UpdateProductLinkInvitationRequest`](/google-ads/api/reference/rpc/v21/UpdateProductLinkInvitationRequest)\n object and set the\n [`customer_id`](/google-ads/api/reference/rpc/v21/UpdateProductLinkInvitationRequest#customer_id)\n field as the Google Ads customer ID.\n\n2. Set the\n [`resource_name`](/google-ads/api/reference/rpc/v21/UpdateProductLinkInvitationRequest#resource_name)\n field as the resource name of the `product_link_invitation`.\n\n3. Set the\n [`product_link_invitation_status`](/google-ads/api/reference/rpc/v21/UpdateProductLinkInvitationRequest#product_link_invitation_status)\n to `ACCEPTED`.\n\n4. Issue an\n [`UpdateProductLinkInvitation`](/google-ads/api/reference/rpc/v21/ProductLinkInvitationService/UpdateProductLinkInvitation)\n API call.\n\nIf the invitation flow is attempted by a user who is already an\nadministrator on both accounts, then a\n[`NO_INVITATION_REQUIRED`](/google-ads/api/reference/rpc/v21/ProductLinkInvitationErrorEnum.ProductLinkInvitationError#no_invitation_required)\nerror is thrown. You can check for this error and fall back to the direct\nlink flow in such cases.\n\n### Reject an invitation\n\nRejecting an invitation is similar to [accepting an\ninvitation](#accept-invitation) except that the\n[`product_link_invitation_status`](/google-ads/api/reference/rpc/v21/UpdateProductLinkInvitationRequest#product_link_invitation_status)\nfield is set to `REJECTED`. If an invitation is rejected, it remains in the\n`REJECTED` state and cannot be accepted. You must then create a new\ninvitation if required.\n\n### Direct linking without invitation\n\nIf the user attempting to link the Google Ads account to the Merchant Center\naccount is an administrator on both accounts, then you can bypass the\ninvitation step and link both accounts directly using the Google Ads API.\n\n1. Construct a\n [`CreateProductLinkRequest`](/google-ads/api/reference/rpc/v21/CreateProductLinkRequest)\n object and set the\n [`customer_id`](/google-ads/api/reference/rpc/v21/CreateProductLinkRequest#customer_id)\n field as the Google Ads customer ID.\n\n2. Create a new [`ProductLink`](/google-ads/api/reference/rpc/v21/ProductLink) object and set\n its\n [`merchant_center_id`](/google-ads/api/reference/rpc/v21/MerchantCenterIdentifier#merchant_center_id)\n field to the ID of the Merchant Center account.\n\n3. Set the `ProductLink` to the\n [`product_link`](/google-ads/api/reference/rpc/v21/CreateProductLinkRequest#product_link)\n field of the request object.\n\n4. Issue a\n [`CreateProductLink`](/google-ads/api/reference/rpc/v21/ProductLinkService/CreateProductLink)\n API call.\n\nIf direct linking is attempted by a user who doesn't have sufficient\npermissions, then a\n[`CREATION_NOT_PERMITTED`](/google-ads/api/reference/rpc/v21/ProductLinkErrorEnum.ProductLinkError#creation_not_permitted)\nerror is thrown. You can check for this error and fall back to the\ninvitation flow in such cases.\n\n### List all Merchant Center links\n\nYou can run a [Google Ads API report](/google-ads/api/docs/reporting/overview) using the\nfollowing GAQL query to retrieve a list of links for a Google Ads customer ID. \n\n SELECT\n product_link.merchant_center.merchant_center_id,\n product_link.product_link_id\n FROM product_link\n WHERE product_link.type = 'MERCHANT_CENTER'\n\n### Unlink a link\n\nTake the following steps to unlink a link:\n\n1. Construct a\n [`RemoveProductLinkRequest`](/google-ads/api/reference/rpc/v21/RemoveProductLinkRequest)\n object and set the\n [`customer_id`](/google-ads/api/reference/rpc/v21/RemoveProductLinkRequest#customer_id)\n field as the Google Ads customer ID.\n\n2. Set the\n [`resource_name`](/google-ads/api/reference/rpc/v21/RemoveProductLinkRequest#resource_name)\n as the resource name of the `product_link`.\n\n3. Issue a\n [`RemoveProductLink`](/google-ads/api/reference/rpc/v21/ProductLinkService/RemoveProductLink)\n API call.\n\nBusiness Manager\n----------------\n\n[Business Manager](https://support.google.com/business/answer/13548166) is a unified representation of a business on Google.\nWhen you manage both your Google Ads account and your Merchant Center accounts\nusing a Business Manager account, Business Manager [automatically creates\nlinks](https://support.google.com/merchants/answer/12499498) between your Google Ads account and the Merchant Center account.\nYou can retrieve these links using the Google Ads API, but these links cannot be\nmutated with the Google Ads API."]]