Method: properties.googleAdsLinks.create
Solicitação HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/googleAdsLinks
O URL usa a sintaxe de transcodificação gRPC.
Parâmetros de caminho
Parâmetros |
parent |
string
Obrigatório. Exemplo de formato: properties/1234
|
Corpo da solicitação
O corpo da solicitação contém uma instância de GoogleAdsLink
.
Corpo da resposta
Se a solicitação for bem-sucedida, o corpo da resposta incluirá uma instância de GoogleAdsLink
.
Escopos de autorização
Requer o seguinte escopo OAuth:
https://www.googleapis.com/auth/analytics.edit
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-05-06 UTC.
[null,null,["Última atualização 2024-05-06 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"]]