Method: accounts.accountLinks.create
یک پیوند حساب جدید بین حساب مرکز هتل و حساب Google Ads ایجاد می کند.
درخواست 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 بهوقت ساعت هماهنگ جهانی."],[[["Creates a new account link between a Hotel Center account and a Google Ads account using an HTTP POST request."],["The request should be sent to the URL `https://travelpartner.googleapis.com/v3/{parent=accounts/*}/accountLinks` with the Hotel Center account ID specified in the path parameter."],["The request body should contain an `AccountLink` object defining the link details."],["A successful response will return the newly created `AccountLink` object."],["Authorization requires the `https://www.googleapis.com/auth/travelpartner` OAuth scope."]]],[]]