Method: properties.googleAdsLinks.create
یک GoogleAdsLink ایجاد می کند.
درخواست HTTP
POST https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/googleAdsLinks
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
parent | string ضروری. فرمت مثال: properties/1234 |
درخواست بدن
بدنه درخواست شامل یک نمونه از GoogleAdsLink
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه جدید از GoogleAdsLink
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/analytics.edit
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی."],[[["Creates a GoogleAdsLink, allowing you to link your Google Ads account with your Google Analytics 4 property."],["Requires `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization."],["Uses a POST request to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/googleAdsLinks` with path and request body parameters to create the link."],["Provides a response body containing the newly created GoogleAdsLink instance upon successful execution."]]],["A `POST` request is made to `https://analyticsadmin.googleapis.com/v1beta/{parent=properties/*}/googleAdsLinks` to create a GoogleAdsLink. The `parent` path parameter, formatted as `properties/1234`, is required. The request body needs a `GoogleAdsLink` instance. Upon success, the response body returns the newly created `GoogleAdsLink`. The `https://www.googleapis.com/auth/analytics.edit` OAuth scope is mandatory for authorization. You can try this method through the given `try it` option.\n"]]