runAccessReport
public GoogleAnalyticsAdmin.Accounts.RunAccessReport runAccessReport(String entity,
GoogleAnalyticsAdminV1betaRunAccessReportRequest content)
throws IOException
Returns a customized report of data access records. The report provides records of each time a
user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data
Access Reports can be requested for a property. Reports may be requested for any property, but
dimensions that aren't related to quota can only be requested on Google Analytics 360 properties.
This method is only available to Administrators. These data access records include GA UI
Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can
retrieve data from Google Analytics through a linkage. These records don't include property
configuration changes like adding a stream or changing a property's time zone. For configuration
change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides
/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this
API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1F
AIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.
Create a request for the method "accounts.runAccessReport".
This request holds the parameters needed by the analyticsadmin server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote
operation.
- Parameters:
entity - The Data Access Report supports requesting at the property level or account level. If requested at
the account level, Data Access Reports include all access for all properties under that
account. To request at the property level, entity should be for example 'properties/123'
if "123" is your Google Analytics property ID. To request at the account level, entity
should be for example 'accounts/1234' if "1234" is your Google Analytics Account ID.
content - the GoogleAnalyticsAdminV1betaRunAccessReportRequest
- Returns:
- the request
- Throws:
IOException