Method: properties.adSenseLinks.create
בקשת HTTP
POST https://analyticsadmin.googleapis.com/v1alpha/{parent=properties/*}/adSenseLinks
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. הנכס שעבורו יש ליצור קישור AdSense. פורמט: properties/{propertyId} דוגמה: properties/1234
|
גוף הבקשה
גוף הבקשה מכיל מופע של AdSenseLink
.
גוף התשובה
אם הפעולה בוצעה בהצלחה, גוף התגובה מכיל מופע חדש של AdSenseLink
שנוצר.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]