Method: accounts.accountLinks.create
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
إنشاء رابط حساب جديد بين حساب على "مركز إدارة معلومات الفنادق" وحساب على "إعلانات Google".
طلب HTTP
POST https://travelpartner.googleapis.com/v3/{parent=accounts/*}/accountLinks
يستخدم عنوان URL بنية gRPC Transcoding.
معلّمات المسار
المَعلمات |
parent |
string
اسم المورد لحساب "مركز إدارة معلومات الفنادق" المطلوب البحث عنه. التنسيق هو accounts/{account_id} .
|
نص الطلب
يحتوي نص الطلب على مثال AccountLink
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال AccountLink
تم إنشاؤه حديثًا.
نطاقات الأذونات
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/travelpartner
للحصول على مزيد من المعلومات، يُرجى الاطّلاع على نظرة عامة على OAuth 2.0.
جميع الحقوق محفوظة. إنّ Java علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2022-08-23 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2022-08-23 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCreates a new account link between a Hotel Center account and a Google Ads account using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request should be sent to the URL \u003ccode\u003ehttps://travelpartner.googleapis.com/v3/{parent=accounts/*}/accountLinks\u003c/code\u003e with the Hotel Center account ID specified in the path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an \u003ccode\u003eAccountLink\u003c/code\u003e object defining the link details.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return the newly created \u003ccode\u003eAccountLink\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/travelpartner\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: accounts.accountLinks.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nCreates a new account link between a Hotel Center account and a Google Ads account.\n\n### HTTP request\n\n`POST https://travelpartner.googleapis.com/v3/{parent=accounts/*}/accountLinks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` The resource name of the Hotel Center account being queried. The format is `accounts/{account_id}`. |\n\n### Request body\n\nThe request body contains an instance of [AccountLink](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks#AccountLink).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AccountLink](/hotels/hotel-prices/api-reference/rest/v3/accounts.accountLinks#AccountLink).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/travelpartner`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]