Method: properties.adSenseLinks.create
HTTP リクエスト
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/adSenseLinks
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。AdSense リンクを作成するプロパティ。形式: properties/{propertyId} 例: properties/1234
|
リクエスト本文
リクエストの本文には AdSenseLink
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された AdSenseLink
のインスタンスが含まれます。
承認スコープ
次の 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 link between a Google Analytics 4 property and an AdSense account."],["Uses an HTTP POST request to the specified endpoint with necessary path parameters and request body."],["Requires authorization with the `https://www.googleapis.com/auth/analytics.edit` scope."],["Upon successful execution, returns the newly created AdSenseLink object in the response body."]]],["This documentation details creating an AdSenseLink via a POST request to `https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/adSenseLinks`. The `parent` path parameter, specifying the property ID, is required. The request body must contain an `AdSenseLink` instance, and a successful response will include a newly created `AdSenseLink` instance. The process requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope. The document also allows the user to try it.\n"]]