# Google Analytics Admin API . accounts

## Instance Methods

Returns the userLinks Resource.

Close httplib2 connections.

Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.

Lookup for a single Account.

Get data sharing settings on an account. Data sharing settings are singletons.

Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are found.

Retrieves the next page of results.

Updates an account.

Requests a ticket for creating an account.

Searches through all changes to an account or its children given the specified set of filters.

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

`delete(name, x__xgafv=None)`

    Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.

    Args:
      name: string, Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
    }

`get(name, x__xgafv=None)`

    Lookup for a single Account.

    Args:
      name: string, Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A resource message representing a Google Analytics account.
      "createTime": "A String", # Output only. Time when this account was originally created.
      "deleted": True or False, # Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
      "displayName": "A String", # Required. Human-readable display name for this account.
      "name": "A String", # Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
      "regionCode": "A String", # Country of business. Must be a Unicode CLDR region code.
      "updateTime": "A String", # Output only. Time when account payload fields were last updated.
    }

`getDataSharingSettings(name, x__xgafv=None)`

    Get data sharing settings on an account. Data sharing settings are singletons.

    Args:
      name: string, Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A resource message representing data sharing settings of a Google Analytics account.
      "name": "A String", # Output only. Resource name. Format: accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings"
      "sharingWithGoogleAnySalesEnabled": True or False, # Allows any of Google sales to access the data in order to suggest configuration changes to improve results.
      "sharingWithGoogleAssignedSalesEnabled": True or False, # Allows Google sales teams that are assigned to the customer to access the data in order to suggest configuration changes to improve results. Sales team restrictions still apply when enabled.
      "sharingWithGoogleProductsEnabled": True or False, # Allows Google to use the data to improve other Google products or services.
      "sharingWithGoogleSupportEnabled": True or False, # Allows Google support to access the data in order to help troubleshoot issues.
      "sharingWithOthersEnabled": True or False, # Allows Google to share the data anonymously in aggregate form with others.
    }

`list(pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)`

    Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are found.

    Args:
      pageSize: integer, The maximum number of resources to return. The service may return fewer than this value, even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; (higher values will be coerced to the maximum)
      pageToken: string, A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token.
      showDeleted: boolean, Whether to include soft-deleted (ie: "trashed") Accounts in the results. Accounts can be inspected to determine whether they are deleted or not.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Request message for ListAccounts RPC.
      "accounts": [ # Results that were accessible to the caller.
        { # A resource message representing a Google Analytics account.
          "createTime": "A String", # Output only. Time when this account was originally created.
          "deleted": True or False, # Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
          "displayName": "A String", # Required. Human-readable display name for this account.
          "name": "A String", # Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
          "regionCode": "A String", # Country of business. Must be a Unicode CLDR region code.
          "updateTime": "A String", # Output only. Time when account payload fields were last updated.
        },
      ],
      "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
    }

`list_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.

`patch(name, body=None, updateMask=None, x__xgafv=None)`

    Updates an account.

    Args:
      name: string, Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" (required)
      body: object, The request body.
        The object takes the form of:

    { # A resource message representing a Google Analytics account.
      "createTime": "A String", # Output only. Time when this account was originally created.
      "deleted": True or False, # Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
      "displayName": "A String", # Required. Human-readable display name for this account.
      "name": "A String", # Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
      "regionCode": "A String", # Country of business. Must be a Unicode CLDR region code.
      "updateTime": "A String", # Output only. Time when account payload fields were last updated.
    }

      updateMask: string, 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.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A resource message representing a Google Analytics account.
      "createTime": "A String", # Output only. Time when this account was originally created.
      "deleted": True or False, # Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
      "displayName": "A String", # Required. Human-readable display name for this account.
      "name": "A String", # Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
      "regionCode": "A String", # Country of business. Must be a Unicode CLDR region code.
      "updateTime": "A String", # Output only. Time when account payload fields were last updated.
    }

`provisionAccountTicket(body=None, x__xgafv=None)`

    Requests a ticket for creating an account.

    Args:
      body: object, The request body.
        The object takes the form of:

    { # Request message for ProvisionAccountTicket RPC.
      "account": { # A resource message representing a Google Analytics account. # The account to create.
        "createTime": "A String", # Output only. Time when this account was originally created.
        "deleted": True or False, # Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
        "displayName": "A String", # Required. Human-readable display name for this account.
        "name": "A String", # Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
        "regionCode": "A String", # Country of business. Must be a Unicode CLDR region code.
        "updateTime": "A String", # Output only. Time when account payload fields were last updated.
      },
      "redirectUri": "A String", # Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in Developers Console as a Redirect URI
    }

      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response message for ProvisionAccountTicket RPC.
      "accountTicketId": "A String", # The param to be passed in the ToS link.
    }

`searchChangeHistoryEvents(account, body=None, x__xgafv=None)`

    Searches through all changes to an account or its children given the specified set of filters.

    Args:
      account: string, Required. The account resource for which to return change history resources. (required)
      body: object, The request body.
        The object takes the form of:

    { # Request message for SearchChangeHistoryEvents RPC.
      "action": [ # Optional. If set, only return changes that match one or more of these types of actions.
        "A String",
      ],
      "actorEmail": [ # Optional. If set, only return changes if they are made by a user in this list.
        "A String",
      ],
      "earliestChangeTime": "A String", # Optional. If set, only return changes made after this time (inclusive).
      "latestChangeTime": "A String", # Optional. If set, only return changes made before this time (inclusive).
      "pageSize": 42, # 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": "A String", # Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `SearchChangeHistoryEvents` must match the call that provided the page token.
      "property": "A String", # Optional. Resource name for a child property. If set, only return changes made to this property or its child resources.
      "resourceType": [ # Optional. If set, only return changes if they are for a resource that matches at least one of these types.
        "A String",
      ],
    }

      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response message for SearchAccounts RPC.
      "changeHistoryEvents": [ # Results that were accessible to the caller.
        { # 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.
          "actorType": "A String", # The type of actor that made this change.
          "changeTime": "A String", # Time when change was made.
          "changes": [ # A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest.
            { # A description of a change to a single Google Analytics resource.
              "action": "A String", # The type of action that changed this resource.
              "resource": "A String", # Resource name of the resource whose changes are described by this entry.
              "resourceAfterChange": { # A snapshot of a resource as before or after the result of a change in change history. # Resource contents from after the change was made. If this resource was deleted in this change, this field will be missing.
                "account": { # A resource message representing a Google Analytics account. # A snapshot of an Account resource in change history.
                  "createTime": "A String", # Output only. Time when this account was originally created.
                  "deleted": True or False, # Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
                  "displayName": "A String", # Required. Human-readable display name for this account.
                  "name": "A String", # Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
                  "regionCode": "A String", # Country of business. Must be a Unicode CLDR region code.
                  "updateTime": "A String", # Output only. Time when account payload fields were last updated.
                },
                "conversionEvent": { # A conversion event in a Google Analytics property. # A snapshot of a ConversionEvent resource in change history.
                  "createTime": "A String", # Output only. Time when this conversion event was created in the property.
                  "custom": True or False, # Output only. If set to true, this conversion event refers to a custom event. If set to false, this conversion event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom conversion events that may be created per property.
                  "deletable": True or False, # Output only. If set, this event can currently be deleted via DeleteConversionEvent.
                  "eventName": "A String", # Immutable. The event name for this conversion event. Examples: 'click', 'purchase'
                  "name": "A String", # Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event}
                },
                "customDimension": { # A definition for a CustomDimension. # A snapshot of a CustomDimension resource in change history.
                  "description": "A String", # Optional. Description for this custom dimension. Max length of 150 characters.
                  "disallowAdsPersonalization": True or False, # Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization. This is currently only supported by user-scoped custom dimensions.
                  "displayName": "A String", # Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
                  "name": "A String", # Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}
                  "parameterName": "A String", # Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.
                  "scope": "A String", # Required. Immutable. The scope of this dimension.
                },
                "customMetric": { # A definition for a custom metric. # A snapshot of a CustomMetric resource in change history.
                  "description": "A String", # Optional. Description for this custom dimension. Max length of 150 characters.
                  "displayName": "A String", # Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
                  "measurementUnit": "A String", # Required. The type for the custom metric's value.
                  "name": "A String", # Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
                  "parameterName": "A String", # Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
                  "restrictedMetricType": [ # Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
                    "A String",
                  ],
                  "scope": "A String", # Required. Immutable. The scope of this custom metric.
                },
                "dataRetentionSettings": { # Settings values for data retention. This is a singleton resource. # A snapshot of a data retention settings resource in change history.
                  "eventDataRetention": "A String", # The length of time that event-level data is retained.
                  "name": "A String", # Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings
                  "resetUserDataOnNewActivity": True or False, # If true, reset the retention period for the user identifier with every event from that user.
                },
                "dataStream": { # A resource message representing a data stream. # A snapshot of a DataStream resource in change history.
                  "androidAppStreamData": { # Data specific to Android app streams. # Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.
                    "firebaseAppId": "A String", # 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": "A String", # Immutable. The package name for the app being measured. Example: "com.example.myandroidapp"
                  },
                  "createTime": "A String", # Output only. Time when this stream was originally created.
                  "displayName": "A String", # 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.
                  "iosAppStreamData": { # Data specific to iOS app streams. # Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.
                    "bundleId": "A String", # Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.example.myiosapp"
                    "firebaseAppId": "A String", # Output only. ID of the corresponding iOS app in Firebase, if any. This ID can change if the iOS app is deleted and recreated.
                  },
                  "name": "A String", # Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000"
                  "type": "A String", # Required. Immutable. The type of this DataStream resource.
                  "updateTime": "A String", # Output only. Time when stream payload fields were last updated.
                  "webStreamData": { # Data specific to web streams. # Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.
                    "defaultUri": "A String", # Immutable. Domain name of the web app being measured, or empty. Example: "http://www.google.com", "https://www.google.com"
                    "firebaseAppId": "A String", # Output only. ID of the corresponding web app in Firebase, if any. This ID can change if the web app is deleted and recreated.
                    "measurementId": "A String", # Output only. Analytics "Measurement ID", without the "G-" prefix. Example: "G-1A2BCD345E" would just be "1A2BCD345E"
                  },
                },
                "displayVideo360AdvertiserLink": { # A link between a GA4 property and a Display & Video 360 advertiser. # A snapshot of a DisplayVideo360AdvertiserLink resource in change history.
                  "adsPersonalizationEnabled": True or False, # Enables personalized advertising features with this integration. If this field is not set on create/update, it will be defaulted to true.
                  "advertiserDisplayName": "A String", # Output only. The display name of the Display & Video 360 Advertiser.
                  "advertiserId": "A String", # Immutable. The Display & Video 360 Advertiser's advertiser ID.
                  "campaignDataSharingEnabled": True or False, # Immutable. Enables the import of campaign data from Display & Video 360 into the GA4 property. After link creation, this can only be updated from the Display & Video 360 product. If this field is not set on create, it will be defaulted to true.
                  "costDataSharingEnabled": True or False, # Immutable. Enables the import of cost data from Display & Video 360 into the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Display & Video 360 product. If this field is not set on create, it will be defaulted to true.
                  "name": "A String", # Output only. The resource name for this DisplayVideo360AdvertiserLink resource. Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} Note: linkId is not the Display & Video 360 Advertiser ID
                },
                "displayVideo360AdvertiserLinkProposal": { # A proposal for a link between a GA4 property and a Display & Video 360 advertiser. A proposal is converted to a DisplayVideo360AdvertiserLink once approved. Google Analytics admins approve inbound proposals while Display & Video 360 admins approve outbound proposals. # A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in change history.
                  "adsPersonalizationEnabled": True or False, # Immutable. Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.
                  "advertiserDisplayName": "A String", # Output only. The display name of the Display & Video Advertiser. Only populated for proposals that originated from Display & Video 360.
                  "advertiserId": "A String", # Immutable. The Display & Video 360 Advertiser's advertiser ID.
                  "campaignDataSharingEnabled": True or False, # Immutable. Enables the import of campaign data from Display & Video 360. If this field is not set on create, it will be defaulted to true.
                  "costDataSharingEnabled": True or False, # Immutable. Enables the import of cost data from Display & Video 360. This can only be enabled if campaign_data_sharing_enabled is enabled. If this field is not set on create, it will be defaulted to true.
                  "linkProposalStatusDetails": { # Status information for a link proposal. # Output only. The status information for this link proposal.
                    "linkProposalInitiatingProduct": "A String", # Output only. The source of this proposal.
                    "linkProposalState": "A String", # Output only. The state of this proposal.
                    "requestorEmail": "A String", # Output only. The email address of the user that proposed this linkage.
                  },
                  "name": "A String", # Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource. Format: properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} Note: proposalId is not the Display & Video 360 Advertiser ID
                  "validationEmail": "A String", # Input only. On a proposal being sent to Display & Video 360, this field must be set to the email address of an admin on the target advertiser. This is used to verify that the Google Analytics admin is aware of at least one admin on the Display & Video 360 Advertiser. This does not restrict approval of the proposal to a single user. Any admin on the Display & Video 360 Advertiser may approve the proposal.
                },
                "firebaseLink": { # A link between a GA4 property and a Firebase project. # A snapshot of a FirebaseLink resource in change history.
                  "createTime": "A String", # Output only. Time when this FirebaseLink was originally created.
                  "name": "A String", # Output only. Example format: properties/1234/firebaseLinks/5678
                  "project": "A String", # Immutable. Firebase project resource name. When creating a FirebaseLink, you may provide this resource name using either a project number or project ID. Once this resource has been created, returned FirebaseLinks will always have a project_name that contains a project number. Format: 'projects/{project number}' Example: 'projects/1234'
                },
                "googleAdsLink": { # A link between a GA4 property and a Google Ads account. # A snapshot of a GoogleAdsLink resource in change history.
                  "adsPersonalizationEnabled": True or False, # Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
                  "canManageClients": True or False, # Output only. If true, this link is for a Google Ads manager account.
                  "createTime": "A String", # Output only. Time when this link was originally created.
                  "creatorEmailAddress": "A String", # Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved.
                  "customerId": "A String", # Immutable. Google Ads customer ID.
                  "name": "A String", # Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.
                  "updateTime": "A String", # Output only. Time when this link was last updated.
                },
                "googleSignalsSettings": { # Settings values for Google Signals. This is a singleton resource. # A snapshot of a GoogleSignalsSettings resource in change history.
                  "consent": "A String", # Output only. Terms of Service acceptance.
                  "name": "A String", # Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings"
                  "state": "A String", # Status of this setting.
                },
                "measurementProtocolSecret": { # A secret value used for sending hits to Measurement Protocol. # A snapshot of a MeasurementProtocolSecret resource in change history.
                  "displayName": "A String", # Required. Human-readable display name for this secret.
                  "name": "A String", # Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                  "secretValue": "A String", # Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.
                },
                "property": { # A resource message representing a Google Analytics GA4 property. # A snapshot of a Property resource in change history.
                  "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"
                  "createTime": "A String", # Output only. Time when the entity was originally created.
                  "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"
                  "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
                  "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
                  "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
                  "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
                  "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"
                  "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"
                  "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created via Google Analytics Admin API.
                  "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property.
                  "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"
                  "updateTime": "A String", # Output only. Time when entity payload fields were last updated.
                },
              },
              "resourceBeforeChange": { # A snapshot of a resource as before or after the result of a change in change history. # Resource contents from before the change was made. If this resource was created in this change, this field will be missing.
                "account": { # A resource message representing a Google Analytics account. # A snapshot of an Account resource in change history.
                  "createTime": "A String", # Output only. Time when this account was originally created.
                  "deleted": True or False, # Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.
                  "displayName": "A String", # Required. Human-readable display name for this account.
                  "name": "A String", # Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"
                  "regionCode": "A String", # Country of business. Must be a Unicode CLDR region code.
                  "updateTime": "A String", # Output only. Time when account payload fields were last updated.
                },
                "conversionEvent": { # A conversion event in a Google Analytics property. # A snapshot of a ConversionEvent resource in change history.
                  "createTime": "A String", # Output only. Time when this conversion event was created in the property.
                  "custom": True or False, # Output only. If set to true, this conversion event refers to a custom event. If set to false, this conversion event refers to a default event in GA. Default events typically have special meaning in GA. Default events are usually created for you by the GA system, but in some cases can be created by property admins. Custom events count towards the maximum number of custom conversion events that may be created per property.
                  "deletable": True or False, # Output only. If set, this event can currently be deleted via DeleteConversionEvent.
                  "eventName": "A String", # Immutable. The event name for this conversion event. Examples: 'click', 'purchase'
                  "name": "A String", # Output only. Resource name of this conversion event. Format: properties/{property}/conversionEvents/{conversion_event}
                },
                "customDimension": { # A definition for a CustomDimension. # A snapshot of a CustomDimension resource in change history.
                  "description": "A String", # Optional. Description for this custom dimension. Max length of 150 characters.
                  "disallowAdsPersonalization": True or False, # Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization. This is currently only supported by user-scoped custom dimensions.
                  "displayName": "A String", # Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
                  "name": "A String", # Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}
                  "parameterName": "A String", # Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.
                  "scope": "A String", # Required. Immutable. The scope of this dimension.
                },
                "customMetric": { # A definition for a custom metric. # A snapshot of a CustomMetric resource in change history.
                  "description": "A String", # Optional. Description for this custom dimension. Max length of 150 characters.
                  "displayName": "A String", # Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
                  "measurementUnit": "A String", # Required. The type for the custom metric's value.
                  "name": "A String", # Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}
                  "parameterName": "A String", # Required. Immutable. Tagging name for this custom metric. If this is an event-scoped metric, then this is the event parameter name. May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.
                  "restrictedMetricType": [ # Optional. Types of restricted data that this metric may contain. Required for metrics with CURRENCY measurement unit. Must be empty for metrics with a non-CURRENCY measurement unit.
                    "A String",
                  ],
                  "scope": "A String", # Required. Immutable. The scope of this custom metric.
                },
                "dataRetentionSettings": { # Settings values for data retention. This is a singleton resource. # A snapshot of a data retention settings resource in change history.
                  "eventDataRetention": "A String", # The length of time that event-level data is retained.
                  "name": "A String", # Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings
                  "resetUserDataOnNewActivity": True or False, # If true, reset the retention period for the user identifier with every event from that user.
                },
                "dataStream": { # A resource message representing a data stream. # A snapshot of a DataStream resource in change history.
                  "androidAppStreamData": { # Data specific to Android app streams. # Data specific to Android app streams. Must be populated if type is ANDROID_APP_DATA_STREAM.
                    "firebaseAppId": "A String", # 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": "A String", # Immutable. The package name for the app being measured. Example: "com.example.myandroidapp"
                  },
                  "createTime": "A String", # Output only. Time when this stream was originally created.
                  "displayName": "A String", # 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.
                  "iosAppStreamData": { # Data specific to iOS app streams. # Data specific to iOS app streams. Must be populated if type is IOS_APP_DATA_STREAM.
                    "bundleId": "A String", # Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.example.myiosapp"
                    "firebaseAppId": "A String", # Output only. ID of the corresponding iOS app in Firebase, if any. This ID can change if the iOS app is deleted and recreated.
                  },
                  "name": "A String", # Output only. Resource name of this Data Stream. Format: properties/{property_id}/dataStreams/{stream_id} Example: "properties/1000/dataStreams/2000"
                  "type": "A String", # Required. Immutable. The type of this DataStream resource.
                  "updateTime": "A String", # Output only. Time when stream payload fields were last updated.
                  "webStreamData": { # Data specific to web streams. # Data specific to web streams. Must be populated if type is WEB_DATA_STREAM.
                    "defaultUri": "A String", # Immutable. Domain name of the web app being measured, or empty. Example: "http://www.google.com", "https://www.google.com"
                    "firebaseAppId": "A String", # Output only. ID of the corresponding web app in Firebase, if any. This ID can change if the web app is deleted and recreated.
                    "measurementId": "A String", # Output only. Analytics "Measurement ID", without the "G-" prefix. Example: "G-1A2BCD345E" would just be "1A2BCD345E"
                  },
                },
                "displayVideo360AdvertiserLink": { # A link between a GA4 property and a Display & Video 360 advertiser. # A snapshot of a DisplayVideo360AdvertiserLink resource in change history.
                  "adsPersonalizationEnabled": True or False, # Enables personalized advertising features with this integration. If this field is not set on create/update, it will be defaulted to true.
                  "advertiserDisplayName": "A String", # Output only. The display name of the Display & Video 360 Advertiser.
                  "advertiserId": "A String", # Immutable. The Display & Video 360 Advertiser's advertiser ID.
                  "campaignDataSharingEnabled": True or False, # Immutable. Enables the import of campaign data from Display & Video 360 into the GA4 property. After link creation, this can only be updated from the Display & Video 360 product. If this field is not set on create, it will be defaulted to true.
                  "costDataSharingEnabled": True or False, # Immutable. Enables the import of cost data from Display & Video 360 into the GA4 property. This can only be enabled if campaign_data_sharing_enabled is enabled. After link creation, this can only be updated from the Display & Video 360 product. If this field is not set on create, it will be defaulted to true.
                  "name": "A String", # Output only. The resource name for this DisplayVideo360AdvertiserLink resource. Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} Note: linkId is not the Display & Video 360 Advertiser ID
                },
                "displayVideo360AdvertiserLinkProposal": { # A proposal for a link between a GA4 property and a Display & Video 360 advertiser. A proposal is converted to a DisplayVideo360AdvertiserLink once approved. Google Analytics admins approve inbound proposals while Display & Video 360 admins approve outbound proposals. # A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in change history.
                  "adsPersonalizationEnabled": True or False, # Immutable. Enables personalized advertising features with this integration. If this field is not set on create, it will be defaulted to true.
                  "advertiserDisplayName": "A String", # Output only. The display name of the Display & Video Advertiser. Only populated for proposals that originated from Display & Video 360.
                  "advertiserId": "A String", # Immutable. The Display & Video 360 Advertiser's advertiser ID.
                  "campaignDataSharingEnabled": True or False, # Immutable. Enables the import of campaign data from Display & Video 360. If this field is not set on create, it will be defaulted to true.
                  "costDataSharingEnabled": True or False, # Immutable. Enables the import of cost data from Display & Video 360. This can only be enabled if campaign_data_sharing_enabled is enabled. If this field is not set on create, it will be defaulted to true.
                  "linkProposalStatusDetails": { # Status information for a link proposal. # Output only. The status information for this link proposal.
                    "linkProposalInitiatingProduct": "A String", # Output only. The source of this proposal.
                    "linkProposalState": "A String", # Output only. The state of this proposal.
                    "requestorEmail": "A String", # Output only. The email address of the user that proposed this linkage.
                  },
                  "name": "A String", # Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource. Format: properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} Note: proposalId is not the Display & Video 360 Advertiser ID
                  "validationEmail": "A String", # Input only. On a proposal being sent to Display & Video 360, this field must be set to the email address of an admin on the target advertiser. This is used to verify that the Google Analytics admin is aware of at least one admin on the Display & Video 360 Advertiser. This does not restrict approval of the proposal to a single user. Any admin on the Display & Video 360 Advertiser may approve the proposal.
                },
                "firebaseLink": { # A link between a GA4 property and a Firebase project. # A snapshot of a FirebaseLink resource in change history.
                  "createTime": "A String", # Output only. Time when this FirebaseLink was originally created.
                  "name": "A String", # Output only. Example format: properties/1234/firebaseLinks/5678
                  "project": "A String", # Immutable. Firebase project resource name. When creating a FirebaseLink, you may provide this resource name using either a project number or project ID. Once this resource has been created, returned FirebaseLinks will always have a project_name that contains a project number. Format: 'projects/{project number}' Example: 'projects/1234'
                },
                "googleAdsLink": { # A link between a GA4 property and a Google Ads account. # A snapshot of a GoogleAdsLink resource in change history.
                  "adsPersonalizationEnabled": True or False, # Enable personalized advertising features with this integration. Automatically publish my Google Analytics audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this field is not set on create/update, it will be defaulted to true.
                  "canManageClients": True or False, # Output only. If true, this link is for a Google Ads manager account.
                  "createTime": "A String", # Output only. Time when this link was originally created.
                  "creatorEmailAddress": "A String", # Output only. Email address of the user that created the link. An empty string will be returned if the email address can't be retrieved.
                  "customerId": "A String", # Immutable. Google Ads customer ID.
                  "name": "A String", # Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not the Google Ads customer ID.
                  "updateTime": "A String", # Output only. Time when this link was last updated.
                },
                "googleSignalsSettings": { # Settings values for Google Signals. This is a singleton resource. # A snapshot of a GoogleSignalsSettings resource in change history.
                  "consent": "A String", # Output only. Terms of Service acceptance.
                  "name": "A String", # Output only. Resource name of this setting. Format: properties/{property_id}/googleSignalsSettings Example: "properties/1000/googleSignalsSettings"
                  "state": "A String", # Status of this setting.
                },
                "measurementProtocolSecret": { # A secret value used for sending hits to Measurement Protocol. # A snapshot of a MeasurementProtocolSecret resource in change history.
                  "displayName": "A String", # Required. Human-readable display name for this secret.
                  "name": "A String", # Output only. Resource name of this secret. This secret may be a child of any type of stream. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                  "secretValue": "A String", # Output only. The measurement protocol secret value. Pass this value to the api_secret field of the Measurement Protocol API when sending hits to this secret's parent property.
                },
                "property": { # A resource message representing a Google Analytics GA4 property. # A snapshot of a Property resource in change history.
                  "account": "A String", # Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"
                  "createTime": "A String", # Output only. Time when the entity was originally created.
                  "currencyCode": "A String", # The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"
                  "deleteTime": "A String", # Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.
                  "displayName": "A String", # Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.
                  "expireTime": "A String", # Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.
                  "industryCategory": "A String", # Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
                  "name": "A String", # Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000"
                  "parent": "A String", # Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"
                  "propertyType": "A String", # Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be created via Google Analytics Admin API.
                  "serviceLevel": "A String", # Output only. The Google Analytics service level that applies to this property.
                  "timeZone": "A String", # Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"
                  "updateTime": "A String", # Output only. Time when entity payload fields were last updated.
                },
              },
            },
          ],
          "changesFiltered": True or False, # If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event.
          "id": "A String", # ID of this change history event. This ID is unique across Google Analytics.
          "userActorEmail": "A String", # 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.
        },
      ],
      "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
    }

`searchChangeHistoryEvents_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.