@maxim_mazurok/gapi.client.analyticsadmin-v1alpha 0.0.20230509 → 0.0.20230510

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.
Files changed (3) hide show
  1. package/index.d.ts +231 -1
  2. package/package.json +1 -1
  3. package/tests.ts +22 -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: 20230509
12
+ // Revision: 20230510
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -269,6 +269,14 @@ declare namespace gapi.client {
269
269
  // tslint:disable-next-line:no-empty-interface
270
270
  interface GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse {
271
271
  }
272
+ interface GoogleAnalyticsAdminV1alphaAdSenseLink {
273
+ /** Immutable. The AdSense ad client code that the GA4 property is linked to. Example format: "ca-pub-1234567890" */
274
+ adClientCode?:
275
+ string;
276
+ /** Output only. The resource name for this AdSense Link resource. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/6789 */
277
+ name?:
278
+ string;
279
+ }
272
280
  // tslint:disable-next-line:no-empty-interface
273
281
  interface GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest {
274
282
  }
@@ -663,6 +671,9 @@ declare namespace gapi.client {
663
671
  /** A snapshot of an Account resource in change history. */
664
672
  account?:
665
673
  GoogleAnalyticsAdminV1alphaAccount;
674
+ /** A snapshot of an AdSenseLink resource in change history. */
675
+ adsenseLink?:
676
+ GoogleAnalyticsAdminV1alphaAdSenseLink;
666
677
  /** A snapshot of AttributionSettings resource in change history. */
667
678
  attributionSettings?:
668
679
  GoogleAnalyticsAdminV1alphaAttributionSettings;
@@ -1366,6 +1377,14 @@ declare namespace gapi.client {
1366
1377
  nextPageToken?:
1367
1378
  string;
1368
1379
  }
1380
+ interface GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse {
1381
+ /** List of AdSenseLinks. */
1382
+ adsenseLinks?:
1383
+ GoogleAnalyticsAdminV1alphaAdSenseLink[];
1384
+ /** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
1385
+ nextPageToken?:
1386
+ string;
1387
+ }
1369
1388
  interface GoogleAnalyticsAdminV1alphaListAudiencesResponse {
1370
1389
  /** List of Audiences. */
1371
1390
  audiences?:
@@ -4339,6 +4358,215 @@ declare namespace gapi.client {
4339
4358
  },
4340
4359
  body: GoogleAnalyticsAdminV1alphaAccessBinding): Request<GoogleAnalyticsAdminV1alphaAccessBinding>;
4341
4360
  }
4361
+ interface AdSenseLinksResource {
4362
+ /** Creates an AdSenseLink. */
4363
+ create(request: {
4364
+ /** V1 error format. */
4365
+ "$.xgafv"?:
4366
+ string;
4367
+ /** OAuth access token. */
4368
+ access_token?:
4369
+ string;
4370
+ /** Data format for response. */
4371
+ alt?:
4372
+ string;
4373
+ /** JSONP */
4374
+ callback?:
4375
+ string;
4376
+ /** Selector specifying which fields to include in a partial response. */
4377
+ fields?:
4378
+ string;
4379
+ /** 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. */
4380
+ key?:
4381
+ string;
4382
+ /** OAuth 2.0 token for the current user. */
4383
+ oauth_token?:
4384
+ string;
4385
+ /** Required. The property for which to create an AdSense Link. Format: properties/{propertyId} Example: properties/1234 */
4386
+ parent:
4387
+ string;
4388
+ /** Returns response with indentations and line breaks. */
4389
+ prettyPrint?:
4390
+ boolean;
4391
+ /** 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. */
4392
+ quotaUser?:
4393
+ string;
4394
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4395
+ upload_protocol?:
4396
+ string;
4397
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4398
+ uploadType?:
4399
+ string;
4400
+ /** Request body */
4401
+ resource:
4402
+ GoogleAnalyticsAdminV1alphaAdSenseLink;
4403
+ }): Request<GoogleAnalyticsAdminV1alphaAdSenseLink>;
4404
+ create(request: {
4405
+ /** V1 error format. */
4406
+ "$.xgafv"?:
4407
+ string;
4408
+ /** OAuth access token. */
4409
+ access_token?:
4410
+ string;
4411
+ /** Data format for response. */
4412
+ alt?:
4413
+ string;
4414
+ /** JSONP */
4415
+ callback?:
4416
+ string;
4417
+ /** Selector specifying which fields to include in a partial response. */
4418
+ fields?:
4419
+ string;
4420
+ /** 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. */
4421
+ key?:
4422
+ string;
4423
+ /** OAuth 2.0 token for the current user. */
4424
+ oauth_token?:
4425
+ string;
4426
+ /** Required. The property for which to create an AdSense Link. Format: properties/{propertyId} Example: properties/1234 */
4427
+ parent:
4428
+ string;
4429
+ /** Returns response with indentations and line breaks. */
4430
+ prettyPrint?:
4431
+ boolean;
4432
+ /** 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. */
4433
+ quotaUser?:
4434
+ string;
4435
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4436
+ upload_protocol?:
4437
+ string;
4438
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4439
+ uploadType?:
4440
+ string;
4441
+ },
4442
+ body: GoogleAnalyticsAdminV1alphaAdSenseLink): Request<GoogleAnalyticsAdminV1alphaAdSenseLink>;
4443
+ /** Deletes an AdSenseLink. */
4444
+ delete(request?: {
4445
+ /** V1 error format. */
4446
+ "$.xgafv"?:
4447
+ string;
4448
+ /** OAuth access token. */
4449
+ access_token?:
4450
+ string;
4451
+ /** Data format for response. */
4452
+ alt?:
4453
+ string;
4454
+ /** JSONP */
4455
+ callback?:
4456
+ string;
4457
+ /** Selector specifying which fields to include in a partial response. */
4458
+ fields?:
4459
+ string;
4460
+ /** 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. */
4461
+ key?:
4462
+ string;
4463
+ /** Required. Unique identifier for the AdSense Link to be deleted. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 */
4464
+ name:
4465
+ string;
4466
+ /** OAuth 2.0 token for the current user. */
4467
+ oauth_token?:
4468
+ string;
4469
+ /** Returns response with indentations and line breaks. */
4470
+ prettyPrint?:
4471
+ boolean;
4472
+ /** 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. */
4473
+ quotaUser?:
4474
+ string;
4475
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4476
+ upload_protocol?:
4477
+ string;
4478
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4479
+ uploadType?:
4480
+ string;
4481
+ }): Request<{}>;
4482
+ /** Looks up a single AdSenseLink. */
4483
+ get(request?: {
4484
+ /** V1 error format. */
4485
+ "$.xgafv"?:
4486
+ string;
4487
+ /** OAuth access token. */
4488
+ access_token?:
4489
+ string;
4490
+ /** Data format for response. */
4491
+ alt?:
4492
+ string;
4493
+ /** JSONP */
4494
+ callback?:
4495
+ string;
4496
+ /** Selector specifying which fields to include in a partial response. */
4497
+ fields?:
4498
+ string;
4499
+ /** 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. */
4500
+ key?:
4501
+ string;
4502
+ /** Required. Unique identifier for the AdSense Link requested. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 */
4503
+ name:
4504
+ string;
4505
+ /** OAuth 2.0 token for the current user. */
4506
+ oauth_token?:
4507
+ string;
4508
+ /** Returns response with indentations and line breaks. */
4509
+ prettyPrint?:
4510
+ boolean;
4511
+ /** 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. */
4512
+ quotaUser?:
4513
+ string;
4514
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4515
+ upload_protocol?:
4516
+ string;
4517
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4518
+ uploadType?:
4519
+ string;
4520
+ }): Request<GoogleAnalyticsAdminV1alphaAdSenseLink>;
4521
+ /** Lists AdSenseLinks on a property. */
4522
+ list(request?: {
4523
+ /** V1 error format. */
4524
+ "$.xgafv"?:
4525
+ string;
4526
+ /** OAuth access token. */
4527
+ access_token?:
4528
+ string;
4529
+ /** Data format for response. */
4530
+ alt?:
4531
+ string;
4532
+ /** JSONP */
4533
+ callback?:
4534
+ string;
4535
+ /** Selector specifying which fields to include in a partial response. */
4536
+ fields?:
4537
+ string;
4538
+ /** 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. */
4539
+ key?:
4540
+ string;
4541
+ /** OAuth 2.0 token for the current user. */
4542
+ oauth_token?:
4543
+ string;
4544
+ /** 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). */
4545
+ pageSize?:
4546
+ number;
4547
+ /**
4548
+ * A page token received from a previous `ListAdSenseLinks` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAdSenseLinks`
4549
+ * must match the call that provided the page token.
4550
+ */
4551
+ pageToken?:
4552
+ string;
4553
+ /** Required. Resource name of the parent property. Format: properties/{propertyId} Example: properties/1234 */
4554
+ parent:
4555
+ string;
4556
+ /** Returns response with indentations and line breaks. */
4557
+ prettyPrint?:
4558
+ boolean;
4559
+ /** 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. */
4560
+ quotaUser?:
4561
+ string;
4562
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4563
+ upload_protocol?:
4564
+ string;
4565
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4566
+ uploadType?:
4567
+ string;
4568
+ }): Request<GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse>;
4569
+ }
4342
4570
  interface AudiencesResource {
4343
4571
  /** Archives an Audience on a property. */
4344
4572
  archive(request: {
@@ -10769,6 +10997,8 @@ declare namespace gapi.client {
10769
10997
  body: GoogleAnalyticsAdminV1alphaGoogleSignalsSettings): Request<GoogleAnalyticsAdminV1alphaGoogleSignalsSettings>;
10770
10998
  accessBindings:
10771
10999
  AccessBindingsResource;
11000
+ adSenseLinks:
11001
+ AdSenseLinksResource;
10772
11002
  audiences:
10773
11003
  AudiencesResource;
10774
11004
  bigQueryLinks:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.analyticsadmin-v1alpha",
3
- "version": "0.0.20230509",
3
+ "version": "0.0.20230510",
4
4
  "description": "TypeScript typings for Google Analytics Admin API v1alpha",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230509
6
+ // Revision: 20230510
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -766,6 +766,27 @@ gapi.load('client', async () => {
766
766
  ],
767
767
  user: "Test string",
768
768
  });
769
+ /** Creates an AdSenseLink. */
770
+ await gapi.client.analyticsadmin.properties.adSenseLinks.create({
771
+ parent: "Test string",
772
+ }, {
773
+ adClientCode: "Test string",
774
+ name: "Test string",
775
+ });
776
+ /** Deletes an AdSenseLink. */
777
+ await gapi.client.analyticsadmin.properties.adSenseLinks.delete({
778
+ name: "Test string",
779
+ });
780
+ /** Looks up a single AdSenseLink. */
781
+ await gapi.client.analyticsadmin.properties.adSenseLinks.get({
782
+ name: "Test string",
783
+ });
784
+ /** Lists AdSenseLinks on a property. */
785
+ await gapi.client.analyticsadmin.properties.adSenseLinks.list({
786
+ pageSize: 42,
787
+ pageToken: "Test string",
788
+ parent: "Test string",
789
+ });
769
790
  /** Archives an Audience on a property. */
770
791
  await gapi.client.analyticsadmin.properties.audiences.archive({
771
792
  name: "Test string",