account | array (also accepts a comma-separated string) | No | - | The GA4 property to change. Only one property at a time. |
action | string or SelectableOption | Yes | - | ‘create’ adds a web, Android or iOS data stream; ‘update’ renames a stream; ‘delete’ removes it and stops its data collection; ‘create_secret’ and ‘delete_secret’ manage the stream’s Measurement Protocol API secrets. Options: ‘create’, ‘update’, ‘delete’, ‘create_secret’, ‘delete_secret’. |
data_stream_id | string | No | - | Numeric id of the stream for every action except create. Read ids from ga4_get_property_settings with setting ‘data_streams’. |
stream_type | string or SelectableOption | No | - | create only: ‘WEB_DATA_STREAM’, ‘ANDROID_APP_DATA_STREAM’ or ‘IOS_APP_DATA_STREAM’. Fixed afterwards. |
display_name | string | No | - | Stream name shown in GA4 (max 255 chars). Required on create and update. |
default_uri | string | No | - | Web streams on create: the site URL, e.g. ‘https://www.example.com’. Fixed afterwards. |
package_name | string | No | - | Android streams on create: the app package name, e.g. ‘com.example.app’. Fixed afterwards. |
bundle_id | string | No | - | iOS streams on create: the app bundle id, e.g. ‘com.example.app’. Fixed afterwards. |
secret_display_name | string | No | - | create_secret: name of the new Measurement Protocol secret, e.g. ‘CRM sync’. |
secret_id | string | No | - | delete_secret: numeric id of the secret to delete. |