@googleapis/searchconsole 2.0.1 → 3.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v3.0.1...searchconsole-v3.1.0) (2025-07-15)
4
+
5
+
6
+ ### Features
7
+
8
+ * **searchconsole:** update the API ([cc59194](https://github.com/googleapis/google-api-nodejs-client/commit/cc59194f825ed589d1e06632d33560cea2c49de9))
9
+
10
+ ## [3.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v3.0.0...searchconsole-v3.0.1) (2025-07-08)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **searchconsole:** update the API ([4dc02da](https://github.com/googleapis/google-api-nodejs-client/commit/4dc02da337c8b15bdab9634773486e280797e1cd))
16
+ * **searchconsole:** update the API ([e3d3819](https://github.com/googleapis/google-api-nodejs-client/commit/e3d3819fe7ea109938a8490b39565a39d36ffefe))
17
+
18
+ ## [3.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v2.0.1...searchconsole-v3.0.0) (2025-06-30)
19
+
20
+
21
+ ### ⚠ BREAKING CHANGES
22
+
23
+ * upgrade to node 18
24
+
25
+ ### Features
26
+
27
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
33
+ * **searchconsole:** update the API ([e3d3819](https://github.com/googleapis/google-api-nodejs-client/commit/e3d3819fe7ea109938a8490b39565a39d36ffefe))
34
+
3
35
  ## [2.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v2.0.0...searchconsole-v2.0.1) (2025-06-04)
4
36
 
5
37
 
package/build/v1.d.ts CHANGED
@@ -270,6 +270,10 @@ export declare namespace searchconsole_v1 {
270
270
  */
271
271
  name?: string | null;
272
272
  }
273
+ export interface Schema$Metadata {
274
+ firstIncompleteDate?: string | null;
275
+ firstIncompleteHour?: string | null;
276
+ }
273
277
  /**
274
278
  * Mobile-friendly issue.
275
279
  */
@@ -428,6 +432,7 @@ export declare namespace searchconsole_v1 {
428
432
  * A list of rows, one per result, grouped by key. Metrics in each row are aggregated for all data grouped by that key either by page or property, as specified by the aggregation type parameter.
429
433
  */
430
434
  export interface Schema$SearchAnalyticsQueryResponse {
435
+ metadata?: Schema$Metadata;
431
436
  /**
432
437
  * How the results were aggregated.
433
438
  */
@@ -569,6 +574,74 @@ export declare namespace searchconsole_v1 {
569
574
  constructor(context: APIRequestContext);
570
575
  /**
571
576
  * Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.
577
+ * @example
578
+ * ```js
579
+ * // Before running the sample:
580
+ * // - Enable the API at:
581
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
582
+ * // - Login into gcloud by running:
583
+ * // ```sh
584
+ * // $ gcloud auth application-default login
585
+ * // ```
586
+ * // - Install the npm module by running:
587
+ * // ```sh
588
+ * // $ npm install googleapis
589
+ * // ```
590
+ *
591
+ * const {google} = require('googleapis');
592
+ * const searchconsole = google.searchconsole('v1');
593
+ *
594
+ * async function main() {
595
+ * const auth = new google.auth.GoogleAuth({
596
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
597
+ * scopes: [
598
+ * 'https://www.googleapis.com/auth/webmasters',
599
+ * 'https://www.googleapis.com/auth/webmasters.readonly',
600
+ * ],
601
+ * });
602
+ *
603
+ * // Acquire an auth client, and bind it to all future calls
604
+ * const authClient = await auth.getClient();
605
+ * google.options({auth: authClient});
606
+ *
607
+ * // Do the magic
608
+ * const res = await webmasters.searchanalytics.query({
609
+ * // The site's URL, including protocol. For example: `http://www.example.com/`.
610
+ * siteUrl: 'placeholder-value',
611
+ *
612
+ * // Request body metadata
613
+ * requestBody: {
614
+ * // request body parameters
615
+ * // {
616
+ * // "aggregationType": "my_aggregationType",
617
+ * // "dataState": "my_dataState",
618
+ * // "dimensionFilterGroups": [],
619
+ * // "dimensions": [],
620
+ * // "endDate": "my_endDate",
621
+ * // "rowLimit": 0,
622
+ * // "searchType": "my_searchType",
623
+ * // "startDate": "my_startDate",
624
+ * // "startRow": 0,
625
+ * // "type": "my_type"
626
+ * // }
627
+ * },
628
+ * });
629
+ * console.log(res.data);
630
+ *
631
+ * // Example response
632
+ * // {
633
+ * // "metadata": {},
634
+ * // "responseAggregationType": "my_responseAggregationType",
635
+ * // "rows": []
636
+ * // }
637
+ * }
638
+ *
639
+ * main().catch(e => {
640
+ * console.error(e);
641
+ * throw e;
642
+ * });
643
+ *
644
+ * ```
572
645
  *
573
646
  * @param params - Parameters for request
574
647
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -597,6 +670,49 @@ export declare namespace searchconsole_v1 {
597
670
  constructor(context: APIRequestContext);
598
671
  /**
599
672
  * Deletes a sitemap from the Sitemaps report. Does not stop Google from crawling this sitemap or the URLs that were previously crawled in the deleted sitemap.
673
+ * @example
674
+ * ```js
675
+ * // Before running the sample:
676
+ * // - Enable the API at:
677
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
678
+ * // - Login into gcloud by running:
679
+ * // ```sh
680
+ * // $ gcloud auth application-default login
681
+ * // ```
682
+ * // - Install the npm module by running:
683
+ * // ```sh
684
+ * // $ npm install googleapis
685
+ * // ```
686
+ *
687
+ * const {google} = require('googleapis');
688
+ * const searchconsole = google.searchconsole('v1');
689
+ *
690
+ * async function main() {
691
+ * const auth = new google.auth.GoogleAuth({
692
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
693
+ * scopes: ['https://www.googleapis.com/auth/webmasters'],
694
+ * });
695
+ *
696
+ * // Acquire an auth client, and bind it to all future calls
697
+ * const authClient = await auth.getClient();
698
+ * google.options({auth: authClient});
699
+ *
700
+ * // Do the magic
701
+ * const res = await webmasters.sitemaps.delete({
702
+ * // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
703
+ * feedpath: 'placeholder-value',
704
+ * // The site's URL, including protocol. For example: `http://www.example.com/`.
705
+ * siteUrl: 'placeholder-value',
706
+ * });
707
+ * console.log(res.data);
708
+ * }
709
+ *
710
+ * main().catch(e => {
711
+ * console.error(e);
712
+ * throw e;
713
+ * });
714
+ *
715
+ * ```
600
716
  *
601
717
  * @param params - Parameters for request
602
718
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -611,6 +727,65 @@ export declare namespace searchconsole_v1 {
611
727
  delete(callback: BodyResponseCallback<void>): void;
612
728
  /**
613
729
  * Retrieves information about a specific sitemap.
730
+ * @example
731
+ * ```js
732
+ * // Before running the sample:
733
+ * // - Enable the API at:
734
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
735
+ * // - Login into gcloud by running:
736
+ * // ```sh
737
+ * // $ gcloud auth application-default login
738
+ * // ```
739
+ * // - Install the npm module by running:
740
+ * // ```sh
741
+ * // $ npm install googleapis
742
+ * // ```
743
+ *
744
+ * const {google} = require('googleapis');
745
+ * const searchconsole = google.searchconsole('v1');
746
+ *
747
+ * async function main() {
748
+ * const auth = new google.auth.GoogleAuth({
749
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
750
+ * scopes: [
751
+ * 'https://www.googleapis.com/auth/webmasters',
752
+ * 'https://www.googleapis.com/auth/webmasters.readonly',
753
+ * ],
754
+ * });
755
+ *
756
+ * // Acquire an auth client, and bind it to all future calls
757
+ * const authClient = await auth.getClient();
758
+ * google.options({auth: authClient});
759
+ *
760
+ * // Do the magic
761
+ * const res = await webmasters.sitemaps.get({
762
+ * // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
763
+ * feedpath: 'placeholder-value',
764
+ * // The site's URL, including protocol. For example: `http://www.example.com/`.
765
+ * siteUrl: 'placeholder-value',
766
+ * });
767
+ * console.log(res.data);
768
+ *
769
+ * // Example response
770
+ * // {
771
+ * // "contents": [],
772
+ * // "errors": "my_errors",
773
+ * // "isPending": false,
774
+ * // "isSitemapsIndex": false,
775
+ * // "lastDownloaded": "my_lastDownloaded",
776
+ * // "lastSubmitted": "my_lastSubmitted",
777
+ * // "path": "my_path",
778
+ * // "type": "my_type",
779
+ * // "warnings": "my_warnings"
780
+ * // }
781
+ * }
782
+ *
783
+ * main().catch(e => {
784
+ * console.error(e);
785
+ * throw e;
786
+ * });
787
+ *
788
+ * ```
614
789
  *
615
790
  * @param params - Parameters for request
616
791
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -625,6 +800,57 @@ export declare namespace searchconsole_v1 {
625
800
  get(callback: BodyResponseCallback<Schema$WmxSitemap>): void;
626
801
  /**
627
802
  * Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this site, or included in the sitemap index file (if `sitemapIndex` is specified in the request).
803
+ * @example
804
+ * ```js
805
+ * // Before running the sample:
806
+ * // - Enable the API at:
807
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
808
+ * // - Login into gcloud by running:
809
+ * // ```sh
810
+ * // $ gcloud auth application-default login
811
+ * // ```
812
+ * // - Install the npm module by running:
813
+ * // ```sh
814
+ * // $ npm install googleapis
815
+ * // ```
816
+ *
817
+ * const {google} = require('googleapis');
818
+ * const searchconsole = google.searchconsole('v1');
819
+ *
820
+ * async function main() {
821
+ * const auth = new google.auth.GoogleAuth({
822
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
823
+ * scopes: [
824
+ * 'https://www.googleapis.com/auth/webmasters',
825
+ * 'https://www.googleapis.com/auth/webmasters.readonly',
826
+ * ],
827
+ * });
828
+ *
829
+ * // Acquire an auth client, and bind it to all future calls
830
+ * const authClient = await auth.getClient();
831
+ * google.options({auth: authClient});
832
+ *
833
+ * // Do the magic
834
+ * const res = await webmasters.sitemaps.list({
835
+ * // A URL of a site's sitemap index. For example: `http://www.example.com/sitemapindex.xml`.
836
+ * sitemapIndex: 'placeholder-value',
837
+ * // The site's URL, including protocol. For example: `http://www.example.com/`.
838
+ * siteUrl: 'placeholder-value',
839
+ * });
840
+ * console.log(res.data);
841
+ *
842
+ * // Example response
843
+ * // {
844
+ * // "sitemap": []
845
+ * // }
846
+ * }
847
+ *
848
+ * main().catch(e => {
849
+ * console.error(e);
850
+ * throw e;
851
+ * });
852
+ *
853
+ * ```
628
854
  *
629
855
  * @param params - Parameters for request
630
856
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -639,6 +865,49 @@ export declare namespace searchconsole_v1 {
639
865
  list(callback: BodyResponseCallback<Schema$SitemapsListResponse>): void;
640
866
  /**
641
867
  * Submits a sitemap for a site.
868
+ * @example
869
+ * ```js
870
+ * // Before running the sample:
871
+ * // - Enable the API at:
872
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
873
+ * // - Login into gcloud by running:
874
+ * // ```sh
875
+ * // $ gcloud auth application-default login
876
+ * // ```
877
+ * // - Install the npm module by running:
878
+ * // ```sh
879
+ * // $ npm install googleapis
880
+ * // ```
881
+ *
882
+ * const {google} = require('googleapis');
883
+ * const searchconsole = google.searchconsole('v1');
884
+ *
885
+ * async function main() {
886
+ * const auth = new google.auth.GoogleAuth({
887
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
888
+ * scopes: ['https://www.googleapis.com/auth/webmasters'],
889
+ * });
890
+ *
891
+ * // Acquire an auth client, and bind it to all future calls
892
+ * const authClient = await auth.getClient();
893
+ * google.options({auth: authClient});
894
+ *
895
+ * // Do the magic
896
+ * const res = await webmasters.sitemaps.submit({
897
+ * // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
898
+ * feedpath: 'placeholder-value',
899
+ * // The site's URL, including protocol. For example: `http://www.example.com/`.
900
+ * siteUrl: 'placeholder-value',
901
+ * });
902
+ * console.log(res.data);
903
+ * }
904
+ *
905
+ * main().catch(e => {
906
+ * console.error(e);
907
+ * throw e;
908
+ * });
909
+ *
910
+ * ```
642
911
  *
643
912
  * @param params - Parameters for request
644
913
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -697,6 +966,47 @@ export declare namespace searchconsole_v1 {
697
966
  constructor(context: APIRequestContext);
698
967
  /**
699
968
  * Adds a site to the set of the user's sites in Search Console.
969
+ * @example
970
+ * ```js
971
+ * // Before running the sample:
972
+ * // - Enable the API at:
973
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
974
+ * // - Login into gcloud by running:
975
+ * // ```sh
976
+ * // $ gcloud auth application-default login
977
+ * // ```
978
+ * // - Install the npm module by running:
979
+ * // ```sh
980
+ * // $ npm install googleapis
981
+ * // ```
982
+ *
983
+ * const {google} = require('googleapis');
984
+ * const searchconsole = google.searchconsole('v1');
985
+ *
986
+ * async function main() {
987
+ * const auth = new google.auth.GoogleAuth({
988
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
989
+ * scopes: ['https://www.googleapis.com/auth/webmasters'],
990
+ * });
991
+ *
992
+ * // Acquire an auth client, and bind it to all future calls
993
+ * const authClient = await auth.getClient();
994
+ * google.options({auth: authClient});
995
+ *
996
+ * // Do the magic
997
+ * const res = await webmasters.sites.add({
998
+ * // The URL of the site to add.
999
+ * siteUrl: 'placeholder-value',
1000
+ * });
1001
+ * console.log(res.data);
1002
+ * }
1003
+ *
1004
+ * main().catch(e => {
1005
+ * console.error(e);
1006
+ * throw e;
1007
+ * });
1008
+ *
1009
+ * ```
700
1010
  *
701
1011
  * @param params - Parameters for request
702
1012
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -711,6 +1021,47 @@ export declare namespace searchconsole_v1 {
711
1021
  add(callback: BodyResponseCallback<void>): void;
712
1022
  /**
713
1023
  * Removes a site from the set of the user's Search Console sites.
1024
+ * @example
1025
+ * ```js
1026
+ * // Before running the sample:
1027
+ * // - Enable the API at:
1028
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1029
+ * // - Login into gcloud by running:
1030
+ * // ```sh
1031
+ * // $ gcloud auth application-default login
1032
+ * // ```
1033
+ * // - Install the npm module by running:
1034
+ * // ```sh
1035
+ * // $ npm install googleapis
1036
+ * // ```
1037
+ *
1038
+ * const {google} = require('googleapis');
1039
+ * const searchconsole = google.searchconsole('v1');
1040
+ *
1041
+ * async function main() {
1042
+ * const auth = new google.auth.GoogleAuth({
1043
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1044
+ * scopes: ['https://www.googleapis.com/auth/webmasters'],
1045
+ * });
1046
+ *
1047
+ * // Acquire an auth client, and bind it to all future calls
1048
+ * const authClient = await auth.getClient();
1049
+ * google.options({auth: authClient});
1050
+ *
1051
+ * // Do the magic
1052
+ * const res = await webmasters.sites.delete({
1053
+ * // The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
1054
+ * siteUrl: 'placeholder-value',
1055
+ * });
1056
+ * console.log(res.data);
1057
+ * }
1058
+ *
1059
+ * main().catch(e => {
1060
+ * console.error(e);
1061
+ * throw e;
1062
+ * });
1063
+ *
1064
+ * ```
714
1065
  *
715
1066
  * @param params - Parameters for request
716
1067
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -725,6 +1076,56 @@ export declare namespace searchconsole_v1 {
725
1076
  delete(callback: BodyResponseCallback<void>): void;
726
1077
  /**
727
1078
  * Retrieves information about specific site.
1079
+ * @example
1080
+ * ```js
1081
+ * // Before running the sample:
1082
+ * // - Enable the API at:
1083
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1084
+ * // - Login into gcloud by running:
1085
+ * // ```sh
1086
+ * // $ gcloud auth application-default login
1087
+ * // ```
1088
+ * // - Install the npm module by running:
1089
+ * // ```sh
1090
+ * // $ npm install googleapis
1091
+ * // ```
1092
+ *
1093
+ * const {google} = require('googleapis');
1094
+ * const searchconsole = google.searchconsole('v1');
1095
+ *
1096
+ * async function main() {
1097
+ * const auth = new google.auth.GoogleAuth({
1098
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1099
+ * scopes: [
1100
+ * 'https://www.googleapis.com/auth/webmasters',
1101
+ * 'https://www.googleapis.com/auth/webmasters.readonly',
1102
+ * ],
1103
+ * });
1104
+ *
1105
+ * // Acquire an auth client, and bind it to all future calls
1106
+ * const authClient = await auth.getClient();
1107
+ * google.options({auth: authClient});
1108
+ *
1109
+ * // Do the magic
1110
+ * const res = await webmasters.sites.get({
1111
+ * // The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
1112
+ * siteUrl: 'placeholder-value',
1113
+ * });
1114
+ * console.log(res.data);
1115
+ *
1116
+ * // Example response
1117
+ * // {
1118
+ * // "permissionLevel": "my_permissionLevel",
1119
+ * // "siteUrl": "my_siteUrl"
1120
+ * // }
1121
+ * }
1122
+ *
1123
+ * main().catch(e => {
1124
+ * console.error(e);
1125
+ * throw e;
1126
+ * });
1127
+ *
1128
+ * ```
728
1129
  *
729
1130
  * @param params - Parameters for request
730
1131
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -739,6 +1140,52 @@ export declare namespace searchconsole_v1 {
739
1140
  get(callback: BodyResponseCallback<Schema$WmxSite>): void;
740
1141
  /**
741
1142
  * Lists the user's Search Console sites.
1143
+ * @example
1144
+ * ```js
1145
+ * // Before running the sample:
1146
+ * // - Enable the API at:
1147
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1148
+ * // - Login into gcloud by running:
1149
+ * // ```sh
1150
+ * // $ gcloud auth application-default login
1151
+ * // ```
1152
+ * // - Install the npm module by running:
1153
+ * // ```sh
1154
+ * // $ npm install googleapis
1155
+ * // ```
1156
+ *
1157
+ * const {google} = require('googleapis');
1158
+ * const searchconsole = google.searchconsole('v1');
1159
+ *
1160
+ * async function main() {
1161
+ * const auth = new google.auth.GoogleAuth({
1162
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1163
+ * scopes: [
1164
+ * 'https://www.googleapis.com/auth/webmasters',
1165
+ * 'https://www.googleapis.com/auth/webmasters.readonly',
1166
+ * ],
1167
+ * });
1168
+ *
1169
+ * // Acquire an auth client, and bind it to all future calls
1170
+ * const authClient = await auth.getClient();
1171
+ * google.options({auth: authClient});
1172
+ *
1173
+ * // Do the magic
1174
+ * const res = await webmasters.sites.list({});
1175
+ * console.log(res.data);
1176
+ *
1177
+ * // Example response
1178
+ * // {
1179
+ * // "siteEntry": []
1180
+ * // }
1181
+ * }
1182
+ *
1183
+ * main().catch(e => {
1184
+ * console.error(e);
1185
+ * throw e;
1186
+ * });
1187
+ *
1188
+ * ```
742
1189
  *
743
1190
  * @param params - Parameters for request
744
1191
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -782,6 +1229,62 @@ export declare namespace searchconsole_v1 {
782
1229
  constructor(context: APIRequestContext);
783
1230
  /**
784
1231
  * Index inspection.
1232
+ * @example
1233
+ * ```js
1234
+ * // Before running the sample:
1235
+ * // - Enable the API at:
1236
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1237
+ * // - Login into gcloud by running:
1238
+ * // ```sh
1239
+ * // $ gcloud auth application-default login
1240
+ * // ```
1241
+ * // - Install the npm module by running:
1242
+ * // ```sh
1243
+ * // $ npm install googleapis
1244
+ * // ```
1245
+ *
1246
+ * const {google} = require('googleapis');
1247
+ * const searchconsole = google.searchconsole('v1');
1248
+ *
1249
+ * async function main() {
1250
+ * const auth = new google.auth.GoogleAuth({
1251
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1252
+ * scopes: [
1253
+ * 'https://www.googleapis.com/auth/webmasters',
1254
+ * 'https://www.googleapis.com/auth/webmasters.readonly',
1255
+ * ],
1256
+ * });
1257
+ *
1258
+ * // Acquire an auth client, and bind it to all future calls
1259
+ * const authClient = await auth.getClient();
1260
+ * google.options({auth: authClient});
1261
+ *
1262
+ * // Do the magic
1263
+ * const res = await searchconsole.urlInspection.index.inspect({
1264
+ * // Request body metadata
1265
+ * requestBody: {
1266
+ * // request body parameters
1267
+ * // {
1268
+ * // "inspectionUrl": "my_inspectionUrl",
1269
+ * // "languageCode": "my_languageCode",
1270
+ * // "siteUrl": "my_siteUrl"
1271
+ * // }
1272
+ * },
1273
+ * });
1274
+ * console.log(res.data);
1275
+ *
1276
+ * // Example response
1277
+ * // {
1278
+ * // "inspectionResult": {}
1279
+ * // }
1280
+ * }
1281
+ *
1282
+ * main().catch(e => {
1283
+ * console.error(e);
1284
+ * throw e;
1285
+ * });
1286
+ *
1287
+ * ```
785
1288
  *
786
1289
  * @param params - Parameters for request
787
1290
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -811,6 +1314,62 @@ export declare namespace searchconsole_v1 {
811
1314
  constructor(context: APIRequestContext);
812
1315
  /**
813
1316
  * Runs Mobile-Friendly Test for a given URL.
1317
+ * @example
1318
+ * ```js
1319
+ * // Before running the sample:
1320
+ * // - Enable the API at:
1321
+ * // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
1322
+ * // - Login into gcloud by running:
1323
+ * // ```sh
1324
+ * // $ gcloud auth application-default login
1325
+ * // ```
1326
+ * // - Install the npm module by running:
1327
+ * // ```sh
1328
+ * // $ npm install googleapis
1329
+ * // ```
1330
+ *
1331
+ * const {google} = require('googleapis');
1332
+ * const searchconsole = google.searchconsole('v1');
1333
+ *
1334
+ * async function main() {
1335
+ * const auth = new google.auth.GoogleAuth({
1336
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1337
+ * scopes: [],
1338
+ * });
1339
+ *
1340
+ * // Acquire an auth client, and bind it to all future calls
1341
+ * const authClient = await auth.getClient();
1342
+ * google.options({auth: authClient});
1343
+ *
1344
+ * // Do the magic
1345
+ * const res = await searchconsole.urlTestingTools.mobileFriendlyTest.run({
1346
+ * // Request body metadata
1347
+ * requestBody: {
1348
+ * // request body parameters
1349
+ * // {
1350
+ * // "requestScreenshot": false,
1351
+ * // "url": "my_url"
1352
+ * // }
1353
+ * },
1354
+ * });
1355
+ * console.log(res.data);
1356
+ *
1357
+ * // Example response
1358
+ * // {
1359
+ * // "mobileFriendliness": "my_mobileFriendliness",
1360
+ * // "mobileFriendlyIssues": [],
1361
+ * // "resourceIssues": [],
1362
+ * // "screenshot": {},
1363
+ * // "testStatus": {}
1364
+ * // }
1365
+ * }
1366
+ *
1367
+ * main().catch(e => {
1368
+ * console.error(e);
1369
+ * throw e;
1370
+ * });
1371
+ *
1372
+ * ```
814
1373
  *
815
1374
  * @param params - Parameters for request
816
1375
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.