Google AnalyticsGoogle AnalyticsSEO/AEO

Update your GA4 property's data retention settings

google-analytics.x.analyticsadmin-properties-updatedataretentionsettings

properties.updateDataRetentionSettings — Updates the singleton data retention settings for this property.

Price
freeZum Listenpreis
Success rate
—Noch keine ErfolgsratendatenLast 30 days · 0 calls
Latency p50
——
Last verified
—Not verified yet
PATCHhttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-updatedataretentionsettingsBeta
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameter

ParameterTypErforderlichBeschreibungBeispiel
Pfadparameter
nameZeichenketteErforderlichIdentifier. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings
Abfrageparameter
updateMaskZeichenketteOptionalRequired. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.
  • Pfadparameter
  • nameZeichenketteErforderlich

    Identifier. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings

  • Abfrageparameter
  • updateMaskZeichenketteOptional

    Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to match all fields.

Codebeispiele

Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.

Beta
curl -X PATCH 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-properties-updatedataretentionsettings' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

Diese Gateway-API ist in der Beta; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.