Method: properties.googleAdsLinks.create
Создает ссылку GoogleAdsLink.
HTTP-запрос
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/googleAdsLinks
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
parent | string Необходимый. Пример формата: свойства/1234. |
Тело запроса
Тело запроса содержит экземпляр GoogleAdsLink
.
Тело ответа
В случае успеха тело ответа содержит вновь созданный экземпляр GoogleAdsLink
.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/analytics.edit
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-25 UTC.
[null,null,["Последнее обновление: 2024-10-25 UTC."],[[["Creates a GoogleAdsLink, allowing you to link your Google Ads account with your Google Analytics 4 property."],["Requires a POST request to the specified endpoint, including the property ID in the path parameter."],["You need to provide a request body containing the GoogleAdsLink details and have the necessary authorization scope (`https://www.googleapis.com/auth/analytics.edit`)."],["If the request is successful, the response body will contain the newly created GoogleAdsLink object."]]],["This document details how to create a GoogleAdsLink using a `POST` request to the specified URL: `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/googleAdsLinks`. The `parent` path parameter is required, formatted as `properties/1234`. The request body must contain a `GoogleAdsLink` instance. A successful request returns a new `GoogleAdsLink` instance in the response body. The request requires `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]