Method: properties.audiences.patch
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{audience.name=properties/*/audiences/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
audience.name |
string
פלט בלבד. שם המשאב של משאב הקהל הזה. פורמט: properties/{propertyId}/audiences/{audienceId}
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שמות השדות חייבים להיות באותיות רישיות (למשל, "field_to_update"). שדות שלא צוינו לא יתעדכנו. כדי להחליף את הישות כולה, משתמשים בנתיבים אחד עם המחרוזת '*' כדי להתאים לכל השדות. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של Audience
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של Audience
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-14 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-14 (שעון UTC)."],[[["This method updates an existing Audience on a Google Analytics property using an HTTP PATCH request."],["The request must specify the Audience resource name in the URL path and provide an `updateMask` query parameter indicating the fields to modify."],["The request body should contain the updated Audience data, and a successful response will return the updated Audience resource."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This document outlines the process to update an Audience on a property via a PATCH request to the specified URL. The URL utilizes gRPC Transcoding syntax and requires the `audience.name` path parameter in the format `properties/*/audiences/*`. A `updateMask` query parameter specifies which fields to modify. The request and response bodies use the Audience resource. The process requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for authorization.\n"]]