Method: properties.googleAdsLinks.create
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
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-05-06 UTC。
[null,null,["最終更新日 2024-05-06 UTC。"],[[["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"]]