כדאי לנסות את שרת ה-MCP ל-Google Analytics. אפשר להתקין מ-
GitHub, ולקרוא את 
ההודעה לפרטים נוספים.
  
        
 
     
  
  
  
    
  
  
  
    
      Method: properties.updateDataRetentionSettings
    
    
      
    
    
      
      קל לארגן דפים בעזרת אוספים
    
    
      
      אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
    
    
      
      
      
        עדכון ההגדרות של שמירת הנתונים ב-SSO בנכס הזה.
      
      
        
          בקשת HTTP
          PATCH https://analyticsadmin.googleapis.com/v1alpha/{dataRetentionSettings.name=properties/*/dataRetentionSettings}
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
        
        
          פרמטרים של נתיב
          
            
              
              
            
            
              
                | פרמטרים | 
            
            
              
                | dataRetentionSettings.name | string
 פלט בלבד. שם המשאב של משאב DataRetentionSetting. פורמט: properties/{property}/dataRetentionSettings | 
            
          
        
        
          פרמטרים של שאילתה
          
            
              
              
            
            
              
                | פרמטרים | 
            
            
              
                | updateMask | string (FieldMaskformat)
 חובה. רשימת השדות לעדכון. שמות השדות צריכים להיות באותיות רישיות (למשל, "field_to_update"). שדות שהושמטו לא יעודכנו. כדי להחליף את הישות כולה, צריך להשתמש בנתיב אחד עם המחרוזת "*" כדי להתאים לכל השדות. זוהי רשימה מופרדת בפסיקים של שמות מלאים של שדות. דוגמה: "user.displayName,photo" | 
            
          
        
        
          גוף הבקשה
          גוף הבקשה מכיל מופע של DataRetentionSettings.
        
        
          גוף התשובה
          אם הפעולה בוצעה ללא שגיאות, גוף התגובה מכיל מופע של DataRetentionSettings.
        
        
          היקפי הרשאות
          נדרש היקף ההרשאות הבא של OAuth:
          
            - https://www.googleapis.com/auth/analytics.edit
 
  
    
    
      
       
    
    
  
  
  אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
  עדכון אחרון: 2025-07-26 (שעון UTC).
  
  
  
    
      [null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],["This document details updating data retention settings for a property using a `PATCH` request to the specified URL. The resource path is defined by `dataRetentionSettings.name`, and the request requires a `updateMask` query parameter specifying fields to update. The request body contains `DataRetentionSettings`, and a successful response also returns `DataRetentionSettings`. This operation requires authorization with the `https://www.googleapis.com/auth/analytics.edit` scope. Additionally, it indicates that there are HTTP requests, path, query, request, and response bodies, and offers a 'try it!' feature.\n"]]