Method: properties.adSenseLinks.create
AdSense Bağlantısı oluşturur.
HTTP isteği
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/adSenseLinks
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. AdSense Bağlantısı oluşturulacak mülk. Biçim: mülkler/{propertyId} Örnek: mülkler/1234
|
İstek içeriği
İstek metni, AdSenseLink
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılı olursa yanıt gövdesi, yeni oluşturulan AdSenseLink
örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/analytics.edit
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-05-06 UTC.
[null,null,["Son güncelleme tarihi: 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"]]