@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20230216 → 0.0.20230222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +282 -1
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +209 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://analyticsadmin.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230222
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -949,6 +949,12 @@ declare namespace gapi.client {
|
|
|
949
949
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
950
950
|
nextPageToken?: string;
|
|
951
951
|
}
|
|
952
|
+
interface GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse {
|
|
953
|
+
/** List of ExpandedDataSet. These will be ordered stably, but in an arbitrary order. */
|
|
954
|
+
expandedDataSets?: GoogleAnalyticsAdminV1alphaExpandedDataSet[];
|
|
955
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
956
|
+
nextPageToken?: string;
|
|
957
|
+
}
|
|
952
958
|
interface GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse {
|
|
953
959
|
/** List of FirebaseLinks. This will have at most one value. */
|
|
954
960
|
firebaseLinks?: GoogleAnalyticsAdminV1alphaFirebaseLink[];
|
|
@@ -2386,6 +2392,68 @@ declare namespace gapi.client {
|
|
|
2386
2392
|
uploadType?: string;
|
|
2387
2393
|
},
|
|
2388
2394
|
body: GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest): Request<GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse>;
|
|
2395
|
+
/**
|
|
2396
|
+
* 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
|
|
2397
|
+
* years. Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records
|
|
2398
|
+
* include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records
|
|
2399
|
+
* don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see
|
|
2400
|
+
* [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
|
|
2401
|
+
*/
|
|
2402
|
+
runAccessReport(request: {
|
|
2403
|
+
/** V1 error format. */
|
|
2404
|
+
"$.xgafv"?: string;
|
|
2405
|
+
/** OAuth access token. */
|
|
2406
|
+
access_token?: string;
|
|
2407
|
+
/** Data format for response. */
|
|
2408
|
+
alt?: string;
|
|
2409
|
+
/** JSONP */
|
|
2410
|
+
callback?: string;
|
|
2411
|
+
/** The Data Access Report is requested for this property. For example if "123" is your GA4 property ID, then entity should be "properties/123". */
|
|
2412
|
+
entity: string;
|
|
2413
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2414
|
+
fields?: string;
|
|
2415
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2416
|
+
key?: string;
|
|
2417
|
+
/** OAuth 2.0 token for the current user. */
|
|
2418
|
+
oauth_token?: string;
|
|
2419
|
+
/** Returns response with indentations and line breaks. */
|
|
2420
|
+
prettyPrint?: boolean;
|
|
2421
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2422
|
+
quotaUser?: string;
|
|
2423
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2424
|
+
upload_protocol?: string;
|
|
2425
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2426
|
+
uploadType?: string;
|
|
2427
|
+
/** Request body */
|
|
2428
|
+
resource: GoogleAnalyticsAdminV1alphaRunAccessReportRequest;
|
|
2429
|
+
}): Request<GoogleAnalyticsAdminV1alphaRunAccessReportResponse>;
|
|
2430
|
+
runAccessReport(request: {
|
|
2431
|
+
/** V1 error format. */
|
|
2432
|
+
"$.xgafv"?: string;
|
|
2433
|
+
/** OAuth access token. */
|
|
2434
|
+
access_token?: string;
|
|
2435
|
+
/** Data format for response. */
|
|
2436
|
+
alt?: string;
|
|
2437
|
+
/** JSONP */
|
|
2438
|
+
callback?: string;
|
|
2439
|
+
/** The Data Access Report is requested for this property. For example if "123" is your GA4 property ID, then entity should be "properties/123". */
|
|
2440
|
+
entity: string;
|
|
2441
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2442
|
+
fields?: string;
|
|
2443
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2444
|
+
key?: string;
|
|
2445
|
+
/** OAuth 2.0 token for the current user. */
|
|
2446
|
+
oauth_token?: string;
|
|
2447
|
+
/** Returns response with indentations and line breaks. */
|
|
2448
|
+
prettyPrint?: boolean;
|
|
2449
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2450
|
+
quotaUser?: string;
|
|
2451
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2452
|
+
upload_protocol?: string;
|
|
2453
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2454
|
+
uploadType?: string;
|
|
2455
|
+
},
|
|
2456
|
+
body: GoogleAnalyticsAdminV1alphaRunAccessReportRequest): Request<GoogleAnalyticsAdminV1alphaRunAccessReportResponse>;
|
|
2389
2457
|
/** Searches through all changes to an account or its children given the specified set of filters. */
|
|
2390
2458
|
searchChangeHistoryEvents(request: {
|
|
2391
2459
|
/** V1 error format. */
|
|
@@ -4765,6 +4833,218 @@ declare namespace gapi.client {
|
|
|
4765
4833
|
},
|
|
4766
4834
|
body: GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink): Request<GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink>;
|
|
4767
4835
|
}
|
|
4836
|
+
interface ExpandedDataSetsResource {
|
|
4837
|
+
/** Creates a ExpandedDataSet. */
|
|
4838
|
+
create(request: {
|
|
4839
|
+
/** V1 error format. */
|
|
4840
|
+
"$.xgafv"?: string;
|
|
4841
|
+
/** OAuth access token. */
|
|
4842
|
+
access_token?: string;
|
|
4843
|
+
/** Data format for response. */
|
|
4844
|
+
alt?: string;
|
|
4845
|
+
/** JSONP */
|
|
4846
|
+
callback?: string;
|
|
4847
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4848
|
+
fields?: string;
|
|
4849
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
4850
|
+
key?: string;
|
|
4851
|
+
/** OAuth 2.0 token for the current user. */
|
|
4852
|
+
oauth_token?: string;
|
|
4853
|
+
/** Required. Example format: properties/1234 */
|
|
4854
|
+
parent: string;
|
|
4855
|
+
/** Returns response with indentations and line breaks. */
|
|
4856
|
+
prettyPrint?: boolean;
|
|
4857
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4858
|
+
quotaUser?: string;
|
|
4859
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4860
|
+
upload_protocol?: string;
|
|
4861
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4862
|
+
uploadType?: string;
|
|
4863
|
+
/** Request body */
|
|
4864
|
+
resource: GoogleAnalyticsAdminV1alphaExpandedDataSet;
|
|
4865
|
+
}): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
|
|
4866
|
+
create(request: {
|
|
4867
|
+
/** V1 error format. */
|
|
4868
|
+
"$.xgafv"?: string;
|
|
4869
|
+
/** OAuth access token. */
|
|
4870
|
+
access_token?: string;
|
|
4871
|
+
/** Data format for response. */
|
|
4872
|
+
alt?: string;
|
|
4873
|
+
/** JSONP */
|
|
4874
|
+
callback?: string;
|
|
4875
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4876
|
+
fields?: string;
|
|
4877
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
4878
|
+
key?: string;
|
|
4879
|
+
/** OAuth 2.0 token for the current user. */
|
|
4880
|
+
oauth_token?: string;
|
|
4881
|
+
/** Required. Example format: properties/1234 */
|
|
4882
|
+
parent: string;
|
|
4883
|
+
/** Returns response with indentations and line breaks. */
|
|
4884
|
+
prettyPrint?: boolean;
|
|
4885
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4886
|
+
quotaUser?: string;
|
|
4887
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4888
|
+
upload_protocol?: string;
|
|
4889
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4890
|
+
uploadType?: string;
|
|
4891
|
+
},
|
|
4892
|
+
body: GoogleAnalyticsAdminV1alphaExpandedDataSet): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
|
|
4893
|
+
/** Deletes a ExpandedDataSet on a property. */
|
|
4894
|
+
delete(request?: {
|
|
4895
|
+
/** V1 error format. */
|
|
4896
|
+
"$.xgafv"?: string;
|
|
4897
|
+
/** OAuth access token. */
|
|
4898
|
+
access_token?: string;
|
|
4899
|
+
/** Data format for response. */
|
|
4900
|
+
alt?: string;
|
|
4901
|
+
/** JSONP */
|
|
4902
|
+
callback?: string;
|
|
4903
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4904
|
+
fields?: string;
|
|
4905
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
4906
|
+
key?: string;
|
|
4907
|
+
/** Required. Example format: properties/1234/expandedDataSets/5678 */
|
|
4908
|
+
name: string;
|
|
4909
|
+
/** OAuth 2.0 token for the current user. */
|
|
4910
|
+
oauth_token?: string;
|
|
4911
|
+
/** Returns response with indentations and line breaks. */
|
|
4912
|
+
prettyPrint?: boolean;
|
|
4913
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4914
|
+
quotaUser?: string;
|
|
4915
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4916
|
+
upload_protocol?: string;
|
|
4917
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4918
|
+
uploadType?: string;
|
|
4919
|
+
}): Request<{}>;
|
|
4920
|
+
/** Lookup for a single ExpandedDataSet. */
|
|
4921
|
+
get(request?: {
|
|
4922
|
+
/** V1 error format. */
|
|
4923
|
+
"$.xgafv"?: string;
|
|
4924
|
+
/** OAuth access token. */
|
|
4925
|
+
access_token?: string;
|
|
4926
|
+
/** Data format for response. */
|
|
4927
|
+
alt?: string;
|
|
4928
|
+
/** JSONP */
|
|
4929
|
+
callback?: string;
|
|
4930
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4931
|
+
fields?: string;
|
|
4932
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
4933
|
+
key?: string;
|
|
4934
|
+
/** Required. The name of the Audience to get. Example format: properties/1234/expandedDataSets/5678 */
|
|
4935
|
+
name: string;
|
|
4936
|
+
/** OAuth 2.0 token for the current user. */
|
|
4937
|
+
oauth_token?: string;
|
|
4938
|
+
/** Returns response with indentations and line breaks. */
|
|
4939
|
+
prettyPrint?: boolean;
|
|
4940
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4941
|
+
quotaUser?: string;
|
|
4942
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4943
|
+
upload_protocol?: string;
|
|
4944
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4945
|
+
uploadType?: string;
|
|
4946
|
+
}): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
|
|
4947
|
+
/** Lists ExpandedDataSets on a property. */
|
|
4948
|
+
list(request?: {
|
|
4949
|
+
/** V1 error format. */
|
|
4950
|
+
"$.xgafv"?: string;
|
|
4951
|
+
/** OAuth access token. */
|
|
4952
|
+
access_token?: string;
|
|
4953
|
+
/** Data format for response. */
|
|
4954
|
+
alt?: string;
|
|
4955
|
+
/** JSONP */
|
|
4956
|
+
callback?: string;
|
|
4957
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4958
|
+
fields?: string;
|
|
4959
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
4960
|
+
key?: string;
|
|
4961
|
+
/** OAuth 2.0 token for the current user. */
|
|
4962
|
+
oauth_token?: string;
|
|
4963
|
+
/** The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum). */
|
|
4964
|
+
pageSize?: number;
|
|
4965
|
+
/**
|
|
4966
|
+
* A page token, received from a previous `ListExpandedDataSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to
|
|
4967
|
+
* `ListExpandedDataSet` must match the call that provided the page token.
|
|
4968
|
+
*/
|
|
4969
|
+
pageToken?: string;
|
|
4970
|
+
/** Required. Example format: properties/1234 */
|
|
4971
|
+
parent: string;
|
|
4972
|
+
/** Returns response with indentations and line breaks. */
|
|
4973
|
+
prettyPrint?: boolean;
|
|
4974
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4975
|
+
quotaUser?: string;
|
|
4976
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4977
|
+
upload_protocol?: string;
|
|
4978
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4979
|
+
uploadType?: string;
|
|
4980
|
+
}): Request<GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse>;
|
|
4981
|
+
/** Updates a ExpandedDataSet on a property. */
|
|
4982
|
+
patch(request: {
|
|
4983
|
+
/** V1 error format. */
|
|
4984
|
+
"$.xgafv"?: string;
|
|
4985
|
+
/** OAuth access token. */
|
|
4986
|
+
access_token?: string;
|
|
4987
|
+
/** Data format for response. */
|
|
4988
|
+
alt?: string;
|
|
4989
|
+
/** JSONP */
|
|
4990
|
+
callback?: string;
|
|
4991
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
4992
|
+
fields?: string;
|
|
4993
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
4994
|
+
key?: string;
|
|
4995
|
+
/** Output only. The resource name for this ExpandedDataSet resource. Format: properties/{property_id}/expandedDataSets/{expanded_data_set} */
|
|
4996
|
+
name: string;
|
|
4997
|
+
/** OAuth 2.0 token for the current user. */
|
|
4998
|
+
oauth_token?: string;
|
|
4999
|
+
/** Returns response with indentations and line breaks. */
|
|
5000
|
+
prettyPrint?: boolean;
|
|
5001
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
5002
|
+
quotaUser?: string;
|
|
5003
|
+
/**
|
|
5004
|
+
* 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
|
|
5005
|
+
* one path with the string "*" to match all fields.
|
|
5006
|
+
*/
|
|
5007
|
+
updateMask?: string;
|
|
5008
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5009
|
+
upload_protocol?: string;
|
|
5010
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5011
|
+
uploadType?: string;
|
|
5012
|
+
/** Request body */
|
|
5013
|
+
resource: GoogleAnalyticsAdminV1alphaExpandedDataSet;
|
|
5014
|
+
}): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
|
|
5015
|
+
patch(request: {
|
|
5016
|
+
/** V1 error format. */
|
|
5017
|
+
"$.xgafv"?: string;
|
|
5018
|
+
/** OAuth access token. */
|
|
5019
|
+
access_token?: string;
|
|
5020
|
+
/** Data format for response. */
|
|
5021
|
+
alt?: string;
|
|
5022
|
+
/** JSONP */
|
|
5023
|
+
callback?: string;
|
|
5024
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
5025
|
+
fields?: string;
|
|
5026
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
5027
|
+
key?: string;
|
|
5028
|
+
/** Output only. The resource name for this ExpandedDataSet resource. Format: properties/{property_id}/expandedDataSets/{expanded_data_set} */
|
|
5029
|
+
name: string;
|
|
5030
|
+
/** OAuth 2.0 token for the current user. */
|
|
5031
|
+
oauth_token?: string;
|
|
5032
|
+
/** Returns response with indentations and line breaks. */
|
|
5033
|
+
prettyPrint?: boolean;
|
|
5034
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
5035
|
+
quotaUser?: string;
|
|
5036
|
+
/**
|
|
5037
|
+
* 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
|
|
5038
|
+
* one path with the string "*" to match all fields.
|
|
5039
|
+
*/
|
|
5040
|
+
updateMask?: string;
|
|
5041
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5042
|
+
upload_protocol?: string;
|
|
5043
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5044
|
+
uploadType?: string;
|
|
5045
|
+
},
|
|
5046
|
+
body: GoogleAnalyticsAdminV1alphaExpandedDataSet): Request<GoogleAnalyticsAdminV1alphaExpandedDataSet>;
|
|
5047
|
+
}
|
|
4768
5048
|
interface FirebaseLinksResource {
|
|
4769
5049
|
/** Creates a FirebaseLink. Properties can have at most one FirebaseLink. */
|
|
4770
5050
|
create(request: {
|
|
@@ -6512,6 +6792,7 @@ declare namespace gapi.client {
|
|
|
6512
6792
|
dataStreams: DataStreamsResource;
|
|
6513
6793
|
displayVideo360AdvertiserLinkProposals: DisplayVideo360AdvertiserLinkProposalsResource;
|
|
6514
6794
|
displayVideo360AdvertiserLinks: DisplayVideo360AdvertiserLinksResource;
|
|
6795
|
+
expandedDataSets: ExpandedDataSetsResource;
|
|
6515
6796
|
firebaseLinks: FirebaseLinksResource;
|
|
6516
6797
|
googleAdsLinks: GoogleAdsLinksResource;
|
|
6517
6798
|
searchAds360Links: SearchAds360LinksResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -105,6 +105,11 @@ Requests a ticket for creating an account.
|
|
|
105
105
|
*/
|
|
106
106
|
await gapi.client.analyticsadmin.accounts.provisionAccountTicket({ });
|
|
107
107
|
|
|
108
|
+
/*
|
|
109
|
+
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. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 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).
|
|
110
|
+
*/
|
|
111
|
+
await gapi.client.analyticsadmin.accounts.runAccessReport({ entity: "entity", });
|
|
112
|
+
|
|
108
113
|
/*
|
|
109
114
|
Searches through all changes to an account or its children given the specified set of filters.
|
|
110
115
|
*/
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230222
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -85,6 +85,129 @@ gapi.load('client', async () => {
|
|
|
85
85
|
},
|
|
86
86
|
redirectUri: "Test string",
|
|
87
87
|
});
|
|
88
|
+
/**
|
|
89
|
+
* 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.
|
|
90
|
+
* Data Access Reports can be requested for a property. The property must be in Google Analytics 360. This method is only available to Administrators. These data access records include GA4
|
|
91
|
+
* UI Reporting, GA4 UI Explorations, GA4 Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include
|
|
92
|
+
* property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see
|
|
93
|
+
* [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
|
|
94
|
+
*/
|
|
95
|
+
await gapi.client.analyticsadmin.accounts.runAccessReport({
|
|
96
|
+
entity: "Test string",
|
|
97
|
+
}, {
|
|
98
|
+
dateRanges: [
|
|
99
|
+
{
|
|
100
|
+
endDate: "Test string",
|
|
101
|
+
startDate: "Test string",
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
dimensionFilter: {
|
|
105
|
+
accessFilter: {
|
|
106
|
+
betweenFilter: {
|
|
107
|
+
fromValue: {
|
|
108
|
+
doubleValue: 42,
|
|
109
|
+
int64Value: "Test string",
|
|
110
|
+
},
|
|
111
|
+
toValue: {
|
|
112
|
+
doubleValue: 42,
|
|
113
|
+
int64Value: "Test string",
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
fieldName: "Test string",
|
|
117
|
+
inListFilter: {
|
|
118
|
+
caseSensitive: true,
|
|
119
|
+
values: [
|
|
120
|
+
"Test string"
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
numericFilter: {
|
|
124
|
+
operation: "Test string",
|
|
125
|
+
value: {
|
|
126
|
+
doubleValue: 42,
|
|
127
|
+
int64Value: "Test string",
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
stringFilter: {
|
|
131
|
+
caseSensitive: true,
|
|
132
|
+
matchType: "Test string",
|
|
133
|
+
value: "Test string",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
andGroup: {
|
|
137
|
+
expressions: undefined,
|
|
138
|
+
},
|
|
139
|
+
notExpression: undefined,
|
|
140
|
+
orGroup: {
|
|
141
|
+
expressions: undefined,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
dimensions: [
|
|
145
|
+
{
|
|
146
|
+
dimensionName: "Test string",
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
limit: "Test string",
|
|
150
|
+
metricFilter: {
|
|
151
|
+
accessFilter: {
|
|
152
|
+
betweenFilter: {
|
|
153
|
+
fromValue: {
|
|
154
|
+
doubleValue: 42,
|
|
155
|
+
int64Value: "Test string",
|
|
156
|
+
},
|
|
157
|
+
toValue: {
|
|
158
|
+
doubleValue: 42,
|
|
159
|
+
int64Value: "Test string",
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
fieldName: "Test string",
|
|
163
|
+
inListFilter: {
|
|
164
|
+
caseSensitive: true,
|
|
165
|
+
values: [
|
|
166
|
+
"Test string"
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
numericFilter: {
|
|
170
|
+
operation: "Test string",
|
|
171
|
+
value: {
|
|
172
|
+
doubleValue: 42,
|
|
173
|
+
int64Value: "Test string",
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
stringFilter: {
|
|
177
|
+
caseSensitive: true,
|
|
178
|
+
matchType: "Test string",
|
|
179
|
+
value: "Test string",
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
andGroup: {
|
|
183
|
+
expressions: undefined,
|
|
184
|
+
},
|
|
185
|
+
notExpression: undefined,
|
|
186
|
+
orGroup: {
|
|
187
|
+
expressions: undefined,
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
metrics: [
|
|
191
|
+
{
|
|
192
|
+
metricName: "Test string",
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
offset: "Test string",
|
|
196
|
+
orderBys: [
|
|
197
|
+
{
|
|
198
|
+
desc: true,
|
|
199
|
+
dimension: {
|
|
200
|
+
dimensionName: "Test string",
|
|
201
|
+
orderType: "Test string",
|
|
202
|
+
},
|
|
203
|
+
metric: {
|
|
204
|
+
metricName: "Test string",
|
|
205
|
+
},
|
|
206
|
+
}
|
|
207
|
+
],
|
|
208
|
+
returnEntityQuota: true,
|
|
209
|
+
timeZone: "Test string",
|
|
210
|
+
});
|
|
88
211
|
/** Searches through all changes to an account or its children given the specified set of filters. */
|
|
89
212
|
await gapi.client.analyticsadmin.accounts.searchChangeHistoryEvents({
|
|
90
213
|
account: "Test string",
|
|
@@ -1183,6 +1306,91 @@ gapi.load('client', async () => {
|
|
|
1183
1306
|
costDataSharingEnabled: true,
|
|
1184
1307
|
name: "Test string",
|
|
1185
1308
|
});
|
|
1309
|
+
/** Creates a ExpandedDataSet. */
|
|
1310
|
+
await gapi.client.analyticsadmin.properties.expandedDataSets.create({
|
|
1311
|
+
parent: "Test string",
|
|
1312
|
+
}, {
|
|
1313
|
+
dataCollectionStartTime: "Test string",
|
|
1314
|
+
description: "Test string",
|
|
1315
|
+
dimensionFilterExpression: {
|
|
1316
|
+
andGroup: {
|
|
1317
|
+
filterExpressions: undefined,
|
|
1318
|
+
},
|
|
1319
|
+
filter: {
|
|
1320
|
+
fieldName: "Test string",
|
|
1321
|
+
inListFilter: {
|
|
1322
|
+
caseSensitive: true,
|
|
1323
|
+
values: [
|
|
1324
|
+
"Test string"
|
|
1325
|
+
],
|
|
1326
|
+
},
|
|
1327
|
+
stringFilter: {
|
|
1328
|
+
caseSensitive: true,
|
|
1329
|
+
matchType: "Test string",
|
|
1330
|
+
value: "Test string",
|
|
1331
|
+
},
|
|
1332
|
+
},
|
|
1333
|
+
notExpression: undefined,
|
|
1334
|
+
},
|
|
1335
|
+
dimensionNames: [
|
|
1336
|
+
"Test string"
|
|
1337
|
+
],
|
|
1338
|
+
displayName: "Test string",
|
|
1339
|
+
metricNames: [
|
|
1340
|
+
"Test string"
|
|
1341
|
+
],
|
|
1342
|
+
name: "Test string",
|
|
1343
|
+
});
|
|
1344
|
+
/** Deletes a ExpandedDataSet on a property. */
|
|
1345
|
+
await gapi.client.analyticsadmin.properties.expandedDataSets.delete({
|
|
1346
|
+
name: "Test string",
|
|
1347
|
+
});
|
|
1348
|
+
/** Lookup for a single ExpandedDataSet. */
|
|
1349
|
+
await gapi.client.analyticsadmin.properties.expandedDataSets.get({
|
|
1350
|
+
name: "Test string",
|
|
1351
|
+
});
|
|
1352
|
+
/** Lists ExpandedDataSets on a property. */
|
|
1353
|
+
await gapi.client.analyticsadmin.properties.expandedDataSets.list({
|
|
1354
|
+
pageSize: 42,
|
|
1355
|
+
pageToken: "Test string",
|
|
1356
|
+
parent: "Test string",
|
|
1357
|
+
});
|
|
1358
|
+
/** Updates a ExpandedDataSet on a property. */
|
|
1359
|
+
await gapi.client.analyticsadmin.properties.expandedDataSets.patch({
|
|
1360
|
+
name: "Test string",
|
|
1361
|
+
updateMask: "Test string",
|
|
1362
|
+
}, {
|
|
1363
|
+
dataCollectionStartTime: "Test string",
|
|
1364
|
+
description: "Test string",
|
|
1365
|
+
dimensionFilterExpression: {
|
|
1366
|
+
andGroup: {
|
|
1367
|
+
filterExpressions: undefined,
|
|
1368
|
+
},
|
|
1369
|
+
filter: {
|
|
1370
|
+
fieldName: "Test string",
|
|
1371
|
+
inListFilter: {
|
|
1372
|
+
caseSensitive: true,
|
|
1373
|
+
values: [
|
|
1374
|
+
"Test string"
|
|
1375
|
+
],
|
|
1376
|
+
},
|
|
1377
|
+
stringFilter: {
|
|
1378
|
+
caseSensitive: true,
|
|
1379
|
+
matchType: "Test string",
|
|
1380
|
+
value: "Test string",
|
|
1381
|
+
},
|
|
1382
|
+
},
|
|
1383
|
+
notExpression: undefined,
|
|
1384
|
+
},
|
|
1385
|
+
dimensionNames: [
|
|
1386
|
+
"Test string"
|
|
1387
|
+
],
|
|
1388
|
+
displayName: "Test string",
|
|
1389
|
+
metricNames: [
|
|
1390
|
+
"Test string"
|
|
1391
|
+
],
|
|
1392
|
+
name: "Test string",
|
|
1393
|
+
});
|
|
1186
1394
|
/** Creates a FirebaseLink. Properties can have at most one FirebaseLink. */
|
|
1187
1395
|
await gapi.client.analyticsadmin.properties.firebaseLinks.create({
|
|
1188
1396
|
parent: "Test string",
|