- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ChangeHistoryResourceType
- ActionType
- ChangeHistoryEvent
- ActorType
- ChangeHistoryChange
- ChangeHistoryResource
- Try it!
Searches through all changes to an account or its children given the specified set of filters.
HTTP request
POST https://analyticsadmin.googleapis.com/v1beta/{account=accounts/*}:searchChangeHistoryEvents
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
account |
Required. The account resource for which to return change history resources. Format: accounts/{account} Example: "accounts/100" |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "property": string, "resourceType": [ enum ( |
Fields | |
---|---|
property |
Optional. Resource name for a child property. If set, only return changes made to this property or its child resources. Format: properties/{propertyId} Example: "properties/100" |
resourceType[] |
Optional. If set, only return changes if they are for a resource that matches at least one of these types. |
action[] |
Optional. If set, only return changes that match one or more of these types of actions. |
actorEmail[] |
Optional. If set, only return changes if they are made by a user in this list. |
earliestChangeTime |
Optional. If set, only return changes made after this time (inclusive). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
latestChangeTime |
Optional. If set, only return changes made before this time (inclusive). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
pageSize |
Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum). |
pageToken |
Optional. A page token, received from a previous |
Response body
Response message for SearchAccounts RPC.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"changeHistoryEvents": [
{
object ( |
Fields | |
---|---|
changeHistoryEvents[] |
Results that were accessible to the caller. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/analytics.edit
ChangeHistoryResourceType
Types of resources whose changes may be returned from change history.
Enums | |
---|---|
CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED |
Resource type unknown or not specified. |
ACCOUNT |
Account resource |
PROPERTY |
Property resource |
FIREBASE_LINK |
FirebaseLink resource |
GOOGLE_ADS_LINK |
GoogleAdsLink resource |
GOOGLE_SIGNALS_SETTINGS |
GoogleSignalsSettings resource |
CONVERSION_EVENT |
ConversionEvent resource |
MEASUREMENT_PROTOCOL_SECRET |
MeasurementProtocolSecret resource |
DATA_RETENTION_SETTINGS |
DataRetentionSettings resource |
DISPLAY_VIDEO_360_ADVERTISER_LINK |
DisplayVideo360AdvertiserLink resource |
DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL |
DisplayVideo360AdvertiserLinkProposal resource |
DATA_STREAM |
DataStream resource |
ATTRIBUTION_SETTINGS |
AttributionSettings resource |
ActionType
Types of actions that may change a resource.
Enums | |
---|---|
ACTION_TYPE_UNSPECIFIED |
Action type unknown or not specified. |
CREATED |
Resource was created in this change. |
UPDATED |
Resource was updated in this change. |
DELETED |
Resource was deleted in this change. |
ChangeHistoryEvent
A set of changes within a Google Analytics account or its child properties that resulted from the same cause. Common causes would be updates made in the Google Analytics UI, changes from customer support, or automatic Google Analytics system changes.
JSON representation |
---|
{ "id": string, "changeTime": string, "actorType": enum ( |
Fields | |
---|---|
id |
ID of this change history event. This ID is unique across Google Analytics. |
changeTime |
Time when change was made. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
actorType |
The type of actor that made this change. |
userActorEmail |
Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error. |
changesFiltered |
If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event. |
changes[] |
A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest. |
ActorType
Different kinds of actors that can make changes to Google Analytics resources.
Enums | |
---|---|
ACTOR_TYPE_UNSPECIFIED |
Unknown or unspecified actor type. |
USER |
Changes made by the user specified in actorEmail. |
SYSTEM |
Changes made by the Google Analytics system. |
SUPPORT |
Changes made by Google Analytics support team staff. |
ChangeHistoryChange
A description of a change to a single Google Analytics resource.
JSON representation |
---|
{ "resource": string, "action": enum ( |
Fields | |
---|---|
resource |
Resource name of the resource whose changes are described by this entry. |
action |
The type of action that changed this resource. |
resourceBeforeChange |
Resource contents from before the change was made. If this resource was created in this change, this field will be missing. |
resourceAfterChange |
Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing. |
ChangeHistoryResource
A snapshot of a resource as before or after the result of a change in change history.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
account |
A snapshot of an Account resource in change history. |
property |
A snapshot of a Property resource in change history. |
firebaseLink |
A snapshot of a FirebaseLink resource in change history. |
googleAdsLink |
A snapshot of a GoogleAdsLink resource in change history. |
conversionEvent |
A snapshot of a ConversionEvent resource in change history. |
measurementProtocolSecret |
A snapshot of a MeasurementProtocolSecret resource in change history. |
dataRetentionSettings |
A snapshot of a data retention settings resource in change history. |
dataStream |
A snapshot of a DataStream resource in change history. |