AI-generated Key Takeaways
- 
          A DataStream represents a source of data for a property, such as a website or mobile app. 
- 
          There are specific data stream types for web, Android, and iOS, each with relevant data fields. 
- 
          Data streams include information like name, type, display name, and creation/update times. 
- 
          Various methods are available for managing DataStreams, including creating, deleting, getting, listing, and patching. 
Resource: DataStream
A resource message representing a data stream.
| JSON representation | 
|---|
| { "name": string, "type": enum ( | 
| Fields | |
|---|---|
| name | 
 Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000" | 
| type | 
 Required. Immutable. The type of this DataStream resource. | 
| displayName | 
 Human-readable display name for the Data Stream. Required for web data streams. The max allowed display name length is 255 UTF-16 code units. | 
| createTime | 
 Output only. Time when this stream was originally created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| updateTime | 
 Output only. Time when stream payload fields were last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples:  | 
| Union field stream_data. Data for specific data stream types. The message that will be set corresponds to the type of this stream.stream_datacan be only one of the following: | |
| webStreamData | 
 Data specific to web streams. Must be populated if type is WEB_DATA_STREAM. | 
| androidAppStreamData | 
 Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM. | 
| iosAppStreamData | 
 Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM. | 
WebStreamData
Data specific to web streams.
| JSON representation | 
|---|
| { "measurementId": string, "firebaseAppId": string, "defaultUri": string } | 
| Fields | |
|---|---|
| measurementId | 
 Output only. Analytics Measurement ID. Example: "G-1A2BCD345E" | 
| firebaseAppId | 
 Output only. ID of the corresponding web app in Firebase, if any. This ID can change if the web app is deleted and recreated. | 
| defaultUri | 
 Domain name of the web app being measured, or empty. Example: "http://www.google.com", "https://www.google.com" | 
AndroidAppStreamData
Data specific to Android app streams.
| JSON representation | 
|---|
| { "firebaseAppId": string, "packageName": string } | 
| Fields | |
|---|---|
| firebaseAppId | 
 Output only. ID of the corresponding Android app in Firebase, if any. This ID can change if the Android app is deleted and recreated. | 
| packageName | 
 Immutable. The package name for the app being measured. Example: "com.example.myandroidapp" | 
IosAppStreamData
Data specific to iOS app streams.
| JSON representation | 
|---|
| { "firebaseAppId": string, "bundleId": string } | 
| Fields | |
|---|---|
| firebaseAppId | 
 Output only. ID of the corresponding iOS app in Firebase, if any. This ID can change if the iOS app is deleted and recreated. | 
| bundleId | 
 Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.example.myiosapp" | 
DataStreamType
The type of the data stream.
| Enums | |
|---|---|
| DATA_STREAM_TYPE_UNSPECIFIED | Type unknown or not specified. | 
| WEB_DATA_STREAM | Web data stream. | 
| ANDROID_APP_DATA_STREAM | Android app data stream. | 
| IOS_APP_DATA_STREAM | iOS app data stream. | 
| Methods | |
|---|---|
| 
 | Creates a DataStream. | 
| 
 | Deletes a DataStream on a property. | 
| 
 | Lookup for a single DataStream. | 
| 
 | Lookup for a single DataRedactionSettings. | 
| 
 | Returns the enhanced measurement settings for this data stream. | 
| 
 | Returns the Site Tag for the specified web stream. | 
| 
 | Lists DataStreams on a property. | 
| 
 | Updates a DataStream on a property. | 
| 
 | Updates a DataRedactionSettings on a property. | 
| 
 | Updates the enhanced measurement settings for this data stream. |