@googleapis/searchconsole 2.0.1 → 3.0.1
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 +25 -0
- package/build/v1.d.ts +553 -0
- package/build/v1.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +553 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v3.0.0...searchconsole-v3.0.1) (2025-07-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **searchconsole:** update the API ([4dc02da](https://github.com/googleapis/google-api-nodejs-client/commit/4dc02da337c8b15bdab9634773486e280797e1cd))
|
|
9
|
+
* **searchconsole:** update the API ([e3d3819](https://github.com/googleapis/google-api-nodejs-client/commit/e3d3819fe7ea109938a8490b39565a39d36ffefe))
|
|
10
|
+
|
|
11
|
+
## [3.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v2.0.1...searchconsole-v3.0.0) (2025-06-30)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* upgrade to node 18
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
26
|
+
* **searchconsole:** update the API ([e3d3819](https://github.com/googleapis/google-api-nodejs-client/commit/e3d3819fe7ea109938a8490b39565a39d36ffefe))
|
|
27
|
+
|
|
3
28
|
## [2.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/searchconsole-v2.0.0...searchconsole-v2.0.1) (2025-06-04)
|
|
4
29
|
|
|
5
30
|
|
package/build/v1.d.ts
CHANGED
|
@@ -569,6 +569,73 @@ export declare namespace searchconsole_v1 {
|
|
|
569
569
|
constructor(context: APIRequestContext);
|
|
570
570
|
/**
|
|
571
571
|
* 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.
|
|
572
|
+
* @example
|
|
573
|
+
* ```js
|
|
574
|
+
* // Before running the sample:
|
|
575
|
+
* // - Enable the API at:
|
|
576
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
577
|
+
* // - Login into gcloud by running:
|
|
578
|
+
* // ```sh
|
|
579
|
+
* // $ gcloud auth application-default login
|
|
580
|
+
* // ```
|
|
581
|
+
* // - Install the npm module by running:
|
|
582
|
+
* // ```sh
|
|
583
|
+
* // $ npm install googleapis
|
|
584
|
+
* // ```
|
|
585
|
+
*
|
|
586
|
+
* const {google} = require('googleapis');
|
|
587
|
+
* const searchconsole = google.searchconsole('v1');
|
|
588
|
+
*
|
|
589
|
+
* async function main() {
|
|
590
|
+
* const auth = new google.auth.GoogleAuth({
|
|
591
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
592
|
+
* scopes: [
|
|
593
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
594
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
595
|
+
* ],
|
|
596
|
+
* });
|
|
597
|
+
*
|
|
598
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
599
|
+
* const authClient = await auth.getClient();
|
|
600
|
+
* google.options({auth: authClient});
|
|
601
|
+
*
|
|
602
|
+
* // Do the magic
|
|
603
|
+
* const res = await webmasters.searchanalytics.query({
|
|
604
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
605
|
+
* siteUrl: 'placeholder-value',
|
|
606
|
+
*
|
|
607
|
+
* // Request body metadata
|
|
608
|
+
* requestBody: {
|
|
609
|
+
* // request body parameters
|
|
610
|
+
* // {
|
|
611
|
+
* // "aggregationType": "my_aggregationType",
|
|
612
|
+
* // "dataState": "my_dataState",
|
|
613
|
+
* // "dimensionFilterGroups": [],
|
|
614
|
+
* // "dimensions": [],
|
|
615
|
+
* // "endDate": "my_endDate",
|
|
616
|
+
* // "rowLimit": 0,
|
|
617
|
+
* // "searchType": "my_searchType",
|
|
618
|
+
* // "startDate": "my_startDate",
|
|
619
|
+
* // "startRow": 0,
|
|
620
|
+
* // "type": "my_type"
|
|
621
|
+
* // }
|
|
622
|
+
* },
|
|
623
|
+
* });
|
|
624
|
+
* console.log(res.data);
|
|
625
|
+
*
|
|
626
|
+
* // Example response
|
|
627
|
+
* // {
|
|
628
|
+
* // "responseAggregationType": "my_responseAggregationType",
|
|
629
|
+
* // "rows": []
|
|
630
|
+
* // }
|
|
631
|
+
* }
|
|
632
|
+
*
|
|
633
|
+
* main().catch(e => {
|
|
634
|
+
* console.error(e);
|
|
635
|
+
* throw e;
|
|
636
|
+
* });
|
|
637
|
+
*
|
|
638
|
+
* ```
|
|
572
639
|
*
|
|
573
640
|
* @param params - Parameters for request
|
|
574
641
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -597,6 +664,49 @@ export declare namespace searchconsole_v1 {
|
|
|
597
664
|
constructor(context: APIRequestContext);
|
|
598
665
|
/**
|
|
599
666
|
* 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.
|
|
667
|
+
* @example
|
|
668
|
+
* ```js
|
|
669
|
+
* // Before running the sample:
|
|
670
|
+
* // - Enable the API at:
|
|
671
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
672
|
+
* // - Login into gcloud by running:
|
|
673
|
+
* // ```sh
|
|
674
|
+
* // $ gcloud auth application-default login
|
|
675
|
+
* // ```
|
|
676
|
+
* // - Install the npm module by running:
|
|
677
|
+
* // ```sh
|
|
678
|
+
* // $ npm install googleapis
|
|
679
|
+
* // ```
|
|
680
|
+
*
|
|
681
|
+
* const {google} = require('googleapis');
|
|
682
|
+
* const searchconsole = google.searchconsole('v1');
|
|
683
|
+
*
|
|
684
|
+
* async function main() {
|
|
685
|
+
* const auth = new google.auth.GoogleAuth({
|
|
686
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
687
|
+
* scopes: ['https://www.googleapis.com/auth/webmasters'],
|
|
688
|
+
* });
|
|
689
|
+
*
|
|
690
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
691
|
+
* const authClient = await auth.getClient();
|
|
692
|
+
* google.options({auth: authClient});
|
|
693
|
+
*
|
|
694
|
+
* // Do the magic
|
|
695
|
+
* const res = await webmasters.sitemaps.delete({
|
|
696
|
+
* // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
|
|
697
|
+
* feedpath: 'placeholder-value',
|
|
698
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
699
|
+
* siteUrl: 'placeholder-value',
|
|
700
|
+
* });
|
|
701
|
+
* console.log(res.data);
|
|
702
|
+
* }
|
|
703
|
+
*
|
|
704
|
+
* main().catch(e => {
|
|
705
|
+
* console.error(e);
|
|
706
|
+
* throw e;
|
|
707
|
+
* });
|
|
708
|
+
*
|
|
709
|
+
* ```
|
|
600
710
|
*
|
|
601
711
|
* @param params - Parameters for request
|
|
602
712
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -611,6 +721,65 @@ export declare namespace searchconsole_v1 {
|
|
|
611
721
|
delete(callback: BodyResponseCallback<void>): void;
|
|
612
722
|
/**
|
|
613
723
|
* Retrieves information about a specific sitemap.
|
|
724
|
+
* @example
|
|
725
|
+
* ```js
|
|
726
|
+
* // Before running the sample:
|
|
727
|
+
* // - Enable the API at:
|
|
728
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
729
|
+
* // - Login into gcloud by running:
|
|
730
|
+
* // ```sh
|
|
731
|
+
* // $ gcloud auth application-default login
|
|
732
|
+
* // ```
|
|
733
|
+
* // - Install the npm module by running:
|
|
734
|
+
* // ```sh
|
|
735
|
+
* // $ npm install googleapis
|
|
736
|
+
* // ```
|
|
737
|
+
*
|
|
738
|
+
* const {google} = require('googleapis');
|
|
739
|
+
* const searchconsole = google.searchconsole('v1');
|
|
740
|
+
*
|
|
741
|
+
* async function main() {
|
|
742
|
+
* const auth = new google.auth.GoogleAuth({
|
|
743
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
744
|
+
* scopes: [
|
|
745
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
746
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
747
|
+
* ],
|
|
748
|
+
* });
|
|
749
|
+
*
|
|
750
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
751
|
+
* const authClient = await auth.getClient();
|
|
752
|
+
* google.options({auth: authClient});
|
|
753
|
+
*
|
|
754
|
+
* // Do the magic
|
|
755
|
+
* const res = await webmasters.sitemaps.get({
|
|
756
|
+
* // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
|
|
757
|
+
* feedpath: 'placeholder-value',
|
|
758
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
759
|
+
* siteUrl: 'placeholder-value',
|
|
760
|
+
* });
|
|
761
|
+
* console.log(res.data);
|
|
762
|
+
*
|
|
763
|
+
* // Example response
|
|
764
|
+
* // {
|
|
765
|
+
* // "contents": [],
|
|
766
|
+
* // "errors": "my_errors",
|
|
767
|
+
* // "isPending": false,
|
|
768
|
+
* // "isSitemapsIndex": false,
|
|
769
|
+
* // "lastDownloaded": "my_lastDownloaded",
|
|
770
|
+
* // "lastSubmitted": "my_lastSubmitted",
|
|
771
|
+
* // "path": "my_path",
|
|
772
|
+
* // "type": "my_type",
|
|
773
|
+
* // "warnings": "my_warnings"
|
|
774
|
+
* // }
|
|
775
|
+
* }
|
|
776
|
+
*
|
|
777
|
+
* main().catch(e => {
|
|
778
|
+
* console.error(e);
|
|
779
|
+
* throw e;
|
|
780
|
+
* });
|
|
781
|
+
*
|
|
782
|
+
* ```
|
|
614
783
|
*
|
|
615
784
|
* @param params - Parameters for request
|
|
616
785
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -625,6 +794,57 @@ export declare namespace searchconsole_v1 {
|
|
|
625
794
|
get(callback: BodyResponseCallback<Schema$WmxSitemap>): void;
|
|
626
795
|
/**
|
|
627
796
|
* 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).
|
|
797
|
+
* @example
|
|
798
|
+
* ```js
|
|
799
|
+
* // Before running the sample:
|
|
800
|
+
* // - Enable the API at:
|
|
801
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
802
|
+
* // - Login into gcloud by running:
|
|
803
|
+
* // ```sh
|
|
804
|
+
* // $ gcloud auth application-default login
|
|
805
|
+
* // ```
|
|
806
|
+
* // - Install the npm module by running:
|
|
807
|
+
* // ```sh
|
|
808
|
+
* // $ npm install googleapis
|
|
809
|
+
* // ```
|
|
810
|
+
*
|
|
811
|
+
* const {google} = require('googleapis');
|
|
812
|
+
* const searchconsole = google.searchconsole('v1');
|
|
813
|
+
*
|
|
814
|
+
* async function main() {
|
|
815
|
+
* const auth = new google.auth.GoogleAuth({
|
|
816
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
817
|
+
* scopes: [
|
|
818
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
819
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
820
|
+
* ],
|
|
821
|
+
* });
|
|
822
|
+
*
|
|
823
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
824
|
+
* const authClient = await auth.getClient();
|
|
825
|
+
* google.options({auth: authClient});
|
|
826
|
+
*
|
|
827
|
+
* // Do the magic
|
|
828
|
+
* const res = await webmasters.sitemaps.list({
|
|
829
|
+
* // A URL of a site's sitemap index. For example: `http://www.example.com/sitemapindex.xml`.
|
|
830
|
+
* sitemapIndex: 'placeholder-value',
|
|
831
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
832
|
+
* siteUrl: 'placeholder-value',
|
|
833
|
+
* });
|
|
834
|
+
* console.log(res.data);
|
|
835
|
+
*
|
|
836
|
+
* // Example response
|
|
837
|
+
* // {
|
|
838
|
+
* // "sitemap": []
|
|
839
|
+
* // }
|
|
840
|
+
* }
|
|
841
|
+
*
|
|
842
|
+
* main().catch(e => {
|
|
843
|
+
* console.error(e);
|
|
844
|
+
* throw e;
|
|
845
|
+
* });
|
|
846
|
+
*
|
|
847
|
+
* ```
|
|
628
848
|
*
|
|
629
849
|
* @param params - Parameters for request
|
|
630
850
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -639,6 +859,49 @@ export declare namespace searchconsole_v1 {
|
|
|
639
859
|
list(callback: BodyResponseCallback<Schema$SitemapsListResponse>): void;
|
|
640
860
|
/**
|
|
641
861
|
* Submits a sitemap for a site.
|
|
862
|
+
* @example
|
|
863
|
+
* ```js
|
|
864
|
+
* // Before running the sample:
|
|
865
|
+
* // - Enable the API at:
|
|
866
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
867
|
+
* // - Login into gcloud by running:
|
|
868
|
+
* // ```sh
|
|
869
|
+
* // $ gcloud auth application-default login
|
|
870
|
+
* // ```
|
|
871
|
+
* // - Install the npm module by running:
|
|
872
|
+
* // ```sh
|
|
873
|
+
* // $ npm install googleapis
|
|
874
|
+
* // ```
|
|
875
|
+
*
|
|
876
|
+
* const {google} = require('googleapis');
|
|
877
|
+
* const searchconsole = google.searchconsole('v1');
|
|
878
|
+
*
|
|
879
|
+
* async function main() {
|
|
880
|
+
* const auth = new google.auth.GoogleAuth({
|
|
881
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
882
|
+
* scopes: ['https://www.googleapis.com/auth/webmasters'],
|
|
883
|
+
* });
|
|
884
|
+
*
|
|
885
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
886
|
+
* const authClient = await auth.getClient();
|
|
887
|
+
* google.options({auth: authClient});
|
|
888
|
+
*
|
|
889
|
+
* // Do the magic
|
|
890
|
+
* const res = await webmasters.sitemaps.submit({
|
|
891
|
+
* // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
|
|
892
|
+
* feedpath: 'placeholder-value',
|
|
893
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
894
|
+
* siteUrl: 'placeholder-value',
|
|
895
|
+
* });
|
|
896
|
+
* console.log(res.data);
|
|
897
|
+
* }
|
|
898
|
+
*
|
|
899
|
+
* main().catch(e => {
|
|
900
|
+
* console.error(e);
|
|
901
|
+
* throw e;
|
|
902
|
+
* });
|
|
903
|
+
*
|
|
904
|
+
* ```
|
|
642
905
|
*
|
|
643
906
|
* @param params - Parameters for request
|
|
644
907
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -697,6 +960,47 @@ export declare namespace searchconsole_v1 {
|
|
|
697
960
|
constructor(context: APIRequestContext);
|
|
698
961
|
/**
|
|
699
962
|
* Adds a site to the set of the user's sites in Search Console.
|
|
963
|
+
* @example
|
|
964
|
+
* ```js
|
|
965
|
+
* // Before running the sample:
|
|
966
|
+
* // - Enable the API at:
|
|
967
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
968
|
+
* // - Login into gcloud by running:
|
|
969
|
+
* // ```sh
|
|
970
|
+
* // $ gcloud auth application-default login
|
|
971
|
+
* // ```
|
|
972
|
+
* // - Install the npm module by running:
|
|
973
|
+
* // ```sh
|
|
974
|
+
* // $ npm install googleapis
|
|
975
|
+
* // ```
|
|
976
|
+
*
|
|
977
|
+
* const {google} = require('googleapis');
|
|
978
|
+
* const searchconsole = google.searchconsole('v1');
|
|
979
|
+
*
|
|
980
|
+
* async function main() {
|
|
981
|
+
* const auth = new google.auth.GoogleAuth({
|
|
982
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
983
|
+
* scopes: ['https://www.googleapis.com/auth/webmasters'],
|
|
984
|
+
* });
|
|
985
|
+
*
|
|
986
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
987
|
+
* const authClient = await auth.getClient();
|
|
988
|
+
* google.options({auth: authClient});
|
|
989
|
+
*
|
|
990
|
+
* // Do the magic
|
|
991
|
+
* const res = await webmasters.sites.add({
|
|
992
|
+
* // The URL of the site to add.
|
|
993
|
+
* siteUrl: 'placeholder-value',
|
|
994
|
+
* });
|
|
995
|
+
* console.log(res.data);
|
|
996
|
+
* }
|
|
997
|
+
*
|
|
998
|
+
* main().catch(e => {
|
|
999
|
+
* console.error(e);
|
|
1000
|
+
* throw e;
|
|
1001
|
+
* });
|
|
1002
|
+
*
|
|
1003
|
+
* ```
|
|
700
1004
|
*
|
|
701
1005
|
* @param params - Parameters for request
|
|
702
1006
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -711,6 +1015,47 @@ export declare namespace searchconsole_v1 {
|
|
|
711
1015
|
add(callback: BodyResponseCallback<void>): void;
|
|
712
1016
|
/**
|
|
713
1017
|
* Removes a site from the set of the user's Search Console sites.
|
|
1018
|
+
* @example
|
|
1019
|
+
* ```js
|
|
1020
|
+
* // Before running the sample:
|
|
1021
|
+
* // - Enable the API at:
|
|
1022
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1023
|
+
* // - Login into gcloud by running:
|
|
1024
|
+
* // ```sh
|
|
1025
|
+
* // $ gcloud auth application-default login
|
|
1026
|
+
* // ```
|
|
1027
|
+
* // - Install the npm module by running:
|
|
1028
|
+
* // ```sh
|
|
1029
|
+
* // $ npm install googleapis
|
|
1030
|
+
* // ```
|
|
1031
|
+
*
|
|
1032
|
+
* const {google} = require('googleapis');
|
|
1033
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1034
|
+
*
|
|
1035
|
+
* async function main() {
|
|
1036
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1037
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1038
|
+
* scopes: ['https://www.googleapis.com/auth/webmasters'],
|
|
1039
|
+
* });
|
|
1040
|
+
*
|
|
1041
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1042
|
+
* const authClient = await auth.getClient();
|
|
1043
|
+
* google.options({auth: authClient});
|
|
1044
|
+
*
|
|
1045
|
+
* // Do the magic
|
|
1046
|
+
* const res = await webmasters.sites.delete({
|
|
1047
|
+
* // The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
|
|
1048
|
+
* siteUrl: 'placeholder-value',
|
|
1049
|
+
* });
|
|
1050
|
+
* console.log(res.data);
|
|
1051
|
+
* }
|
|
1052
|
+
*
|
|
1053
|
+
* main().catch(e => {
|
|
1054
|
+
* console.error(e);
|
|
1055
|
+
* throw e;
|
|
1056
|
+
* });
|
|
1057
|
+
*
|
|
1058
|
+
* ```
|
|
714
1059
|
*
|
|
715
1060
|
* @param params - Parameters for request
|
|
716
1061
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -725,6 +1070,56 @@ export declare namespace searchconsole_v1 {
|
|
|
725
1070
|
delete(callback: BodyResponseCallback<void>): void;
|
|
726
1071
|
/**
|
|
727
1072
|
* Retrieves information about specific site.
|
|
1073
|
+
* @example
|
|
1074
|
+
* ```js
|
|
1075
|
+
* // Before running the sample:
|
|
1076
|
+
* // - Enable the API at:
|
|
1077
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1078
|
+
* // - Login into gcloud by running:
|
|
1079
|
+
* // ```sh
|
|
1080
|
+
* // $ gcloud auth application-default login
|
|
1081
|
+
* // ```
|
|
1082
|
+
* // - Install the npm module by running:
|
|
1083
|
+
* // ```sh
|
|
1084
|
+
* // $ npm install googleapis
|
|
1085
|
+
* // ```
|
|
1086
|
+
*
|
|
1087
|
+
* const {google} = require('googleapis');
|
|
1088
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1089
|
+
*
|
|
1090
|
+
* async function main() {
|
|
1091
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1092
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1093
|
+
* scopes: [
|
|
1094
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
1095
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
1096
|
+
* ],
|
|
1097
|
+
* });
|
|
1098
|
+
*
|
|
1099
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1100
|
+
* const authClient = await auth.getClient();
|
|
1101
|
+
* google.options({auth: authClient});
|
|
1102
|
+
*
|
|
1103
|
+
* // Do the magic
|
|
1104
|
+
* const res = await webmasters.sites.get({
|
|
1105
|
+
* // The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
|
|
1106
|
+
* siteUrl: 'placeholder-value',
|
|
1107
|
+
* });
|
|
1108
|
+
* console.log(res.data);
|
|
1109
|
+
*
|
|
1110
|
+
* // Example response
|
|
1111
|
+
* // {
|
|
1112
|
+
* // "permissionLevel": "my_permissionLevel",
|
|
1113
|
+
* // "siteUrl": "my_siteUrl"
|
|
1114
|
+
* // }
|
|
1115
|
+
* }
|
|
1116
|
+
*
|
|
1117
|
+
* main().catch(e => {
|
|
1118
|
+
* console.error(e);
|
|
1119
|
+
* throw e;
|
|
1120
|
+
* });
|
|
1121
|
+
*
|
|
1122
|
+
* ```
|
|
728
1123
|
*
|
|
729
1124
|
* @param params - Parameters for request
|
|
730
1125
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -739,6 +1134,52 @@ export declare namespace searchconsole_v1 {
|
|
|
739
1134
|
get(callback: BodyResponseCallback<Schema$WmxSite>): void;
|
|
740
1135
|
/**
|
|
741
1136
|
* Lists the user's Search Console sites.
|
|
1137
|
+
* @example
|
|
1138
|
+
* ```js
|
|
1139
|
+
* // Before running the sample:
|
|
1140
|
+
* // - Enable the API at:
|
|
1141
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1142
|
+
* // - Login into gcloud by running:
|
|
1143
|
+
* // ```sh
|
|
1144
|
+
* // $ gcloud auth application-default login
|
|
1145
|
+
* // ```
|
|
1146
|
+
* // - Install the npm module by running:
|
|
1147
|
+
* // ```sh
|
|
1148
|
+
* // $ npm install googleapis
|
|
1149
|
+
* // ```
|
|
1150
|
+
*
|
|
1151
|
+
* const {google} = require('googleapis');
|
|
1152
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1153
|
+
*
|
|
1154
|
+
* async function main() {
|
|
1155
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1156
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1157
|
+
* scopes: [
|
|
1158
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
1159
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
1160
|
+
* ],
|
|
1161
|
+
* });
|
|
1162
|
+
*
|
|
1163
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1164
|
+
* const authClient = await auth.getClient();
|
|
1165
|
+
* google.options({auth: authClient});
|
|
1166
|
+
*
|
|
1167
|
+
* // Do the magic
|
|
1168
|
+
* const res = await webmasters.sites.list({});
|
|
1169
|
+
* console.log(res.data);
|
|
1170
|
+
*
|
|
1171
|
+
* // Example response
|
|
1172
|
+
* // {
|
|
1173
|
+
* // "siteEntry": []
|
|
1174
|
+
* // }
|
|
1175
|
+
* }
|
|
1176
|
+
*
|
|
1177
|
+
* main().catch(e => {
|
|
1178
|
+
* console.error(e);
|
|
1179
|
+
* throw e;
|
|
1180
|
+
* });
|
|
1181
|
+
*
|
|
1182
|
+
* ```
|
|
742
1183
|
*
|
|
743
1184
|
* @param params - Parameters for request
|
|
744
1185
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -782,6 +1223,62 @@ export declare namespace searchconsole_v1 {
|
|
|
782
1223
|
constructor(context: APIRequestContext);
|
|
783
1224
|
/**
|
|
784
1225
|
* Index inspection.
|
|
1226
|
+
* @example
|
|
1227
|
+
* ```js
|
|
1228
|
+
* // Before running the sample:
|
|
1229
|
+
* // - Enable the API at:
|
|
1230
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1231
|
+
* // - Login into gcloud by running:
|
|
1232
|
+
* // ```sh
|
|
1233
|
+
* // $ gcloud auth application-default login
|
|
1234
|
+
* // ```
|
|
1235
|
+
* // - Install the npm module by running:
|
|
1236
|
+
* // ```sh
|
|
1237
|
+
* // $ npm install googleapis
|
|
1238
|
+
* // ```
|
|
1239
|
+
*
|
|
1240
|
+
* const {google} = require('googleapis');
|
|
1241
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1242
|
+
*
|
|
1243
|
+
* async function main() {
|
|
1244
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1245
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1246
|
+
* scopes: [
|
|
1247
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
1248
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
1249
|
+
* ],
|
|
1250
|
+
* });
|
|
1251
|
+
*
|
|
1252
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1253
|
+
* const authClient = await auth.getClient();
|
|
1254
|
+
* google.options({auth: authClient});
|
|
1255
|
+
*
|
|
1256
|
+
* // Do the magic
|
|
1257
|
+
* const res = await searchconsole.urlInspection.index.inspect({
|
|
1258
|
+
* // Request body metadata
|
|
1259
|
+
* requestBody: {
|
|
1260
|
+
* // request body parameters
|
|
1261
|
+
* // {
|
|
1262
|
+
* // "inspectionUrl": "my_inspectionUrl",
|
|
1263
|
+
* // "languageCode": "my_languageCode",
|
|
1264
|
+
* // "siteUrl": "my_siteUrl"
|
|
1265
|
+
* // }
|
|
1266
|
+
* },
|
|
1267
|
+
* });
|
|
1268
|
+
* console.log(res.data);
|
|
1269
|
+
*
|
|
1270
|
+
* // Example response
|
|
1271
|
+
* // {
|
|
1272
|
+
* // "inspectionResult": {}
|
|
1273
|
+
* // }
|
|
1274
|
+
* }
|
|
1275
|
+
*
|
|
1276
|
+
* main().catch(e => {
|
|
1277
|
+
* console.error(e);
|
|
1278
|
+
* throw e;
|
|
1279
|
+
* });
|
|
1280
|
+
*
|
|
1281
|
+
* ```
|
|
785
1282
|
*
|
|
786
1283
|
* @param params - Parameters for request
|
|
787
1284
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -811,6 +1308,62 @@ export declare namespace searchconsole_v1 {
|
|
|
811
1308
|
constructor(context: APIRequestContext);
|
|
812
1309
|
/**
|
|
813
1310
|
* Runs Mobile-Friendly Test for a given URL.
|
|
1311
|
+
* @example
|
|
1312
|
+
* ```js
|
|
1313
|
+
* // Before running the sample:
|
|
1314
|
+
* // - Enable the API at:
|
|
1315
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1316
|
+
* // - Login into gcloud by running:
|
|
1317
|
+
* // ```sh
|
|
1318
|
+
* // $ gcloud auth application-default login
|
|
1319
|
+
* // ```
|
|
1320
|
+
* // - Install the npm module by running:
|
|
1321
|
+
* // ```sh
|
|
1322
|
+
* // $ npm install googleapis
|
|
1323
|
+
* // ```
|
|
1324
|
+
*
|
|
1325
|
+
* const {google} = require('googleapis');
|
|
1326
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1327
|
+
*
|
|
1328
|
+
* async function main() {
|
|
1329
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1330
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1331
|
+
* scopes: [],
|
|
1332
|
+
* });
|
|
1333
|
+
*
|
|
1334
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1335
|
+
* const authClient = await auth.getClient();
|
|
1336
|
+
* google.options({auth: authClient});
|
|
1337
|
+
*
|
|
1338
|
+
* // Do the magic
|
|
1339
|
+
* const res = await searchconsole.urlTestingTools.mobileFriendlyTest.run({
|
|
1340
|
+
* // Request body metadata
|
|
1341
|
+
* requestBody: {
|
|
1342
|
+
* // request body parameters
|
|
1343
|
+
* // {
|
|
1344
|
+
* // "requestScreenshot": false,
|
|
1345
|
+
* // "url": "my_url"
|
|
1346
|
+
* // }
|
|
1347
|
+
* },
|
|
1348
|
+
* });
|
|
1349
|
+
* console.log(res.data);
|
|
1350
|
+
*
|
|
1351
|
+
* // Example response
|
|
1352
|
+
* // {
|
|
1353
|
+
* // "mobileFriendliness": "my_mobileFriendliness",
|
|
1354
|
+
* // "mobileFriendlyIssues": [],
|
|
1355
|
+
* // "resourceIssues": [],
|
|
1356
|
+
* // "screenshot": {},
|
|
1357
|
+
* // "testStatus": {}
|
|
1358
|
+
* // }
|
|
1359
|
+
* }
|
|
1360
|
+
*
|
|
1361
|
+
* main().catch(e => {
|
|
1362
|
+
* console.error(e);
|
|
1363
|
+
* throw e;
|
|
1364
|
+
* });
|
|
1365
|
+
*
|
|
1366
|
+
* ```
|
|
814
1367
|
*
|
|
815
1368
|
* @param params - Parameters for request
|
|
816
1369
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD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AAgB;gBAC5B,EAAE,CAA2D,CAAC;YAChE,IAAI,OAAO,GAAG,CAAC,iBAAiB,IAAI,EAAE,CAAkB,CAAC;YAEzD,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM,GAAG,EAA4D,CAAC;gBACtE,OAAO,GAAG,EAAE,CAAC;aACd;YAED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GACX,OAAO,CAAC,OAAO,IAAI,uCAAuC,CAAC;YAC7D,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CACH,OAAO,GAAG,4CAA4C,CACvD,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC;oBAC/B,MAAM,EAAE,MAAM;oBACd,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IA9JY,4DAA2C,8CA8JvD,CAAA;AASH,CAAC,EArvEgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAqvEhC"}
|
package/package.json
CHANGED
package/v1.ts
CHANGED
|
@@ -630,6 +630,73 @@ export namespace searchconsole_v1 {
|
|
|
630
630
|
|
|
631
631
|
/**
|
|
632
632
|
* 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.
|
|
633
|
+
* @example
|
|
634
|
+
* ```js
|
|
635
|
+
* // Before running the sample:
|
|
636
|
+
* // - Enable the API at:
|
|
637
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
638
|
+
* // - Login into gcloud by running:
|
|
639
|
+
* // ```sh
|
|
640
|
+
* // $ gcloud auth application-default login
|
|
641
|
+
* // ```
|
|
642
|
+
* // - Install the npm module by running:
|
|
643
|
+
* // ```sh
|
|
644
|
+
* // $ npm install googleapis
|
|
645
|
+
* // ```
|
|
646
|
+
*
|
|
647
|
+
* const {google} = require('googleapis');
|
|
648
|
+
* const searchconsole = google.searchconsole('v1');
|
|
649
|
+
*
|
|
650
|
+
* async function main() {
|
|
651
|
+
* const auth = new google.auth.GoogleAuth({
|
|
652
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
653
|
+
* scopes: [
|
|
654
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
655
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
656
|
+
* ],
|
|
657
|
+
* });
|
|
658
|
+
*
|
|
659
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
660
|
+
* const authClient = await auth.getClient();
|
|
661
|
+
* google.options({auth: authClient});
|
|
662
|
+
*
|
|
663
|
+
* // Do the magic
|
|
664
|
+
* const res = await webmasters.searchanalytics.query({
|
|
665
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
666
|
+
* siteUrl: 'placeholder-value',
|
|
667
|
+
*
|
|
668
|
+
* // Request body metadata
|
|
669
|
+
* requestBody: {
|
|
670
|
+
* // request body parameters
|
|
671
|
+
* // {
|
|
672
|
+
* // "aggregationType": "my_aggregationType",
|
|
673
|
+
* // "dataState": "my_dataState",
|
|
674
|
+
* // "dimensionFilterGroups": [],
|
|
675
|
+
* // "dimensions": [],
|
|
676
|
+
* // "endDate": "my_endDate",
|
|
677
|
+
* // "rowLimit": 0,
|
|
678
|
+
* // "searchType": "my_searchType",
|
|
679
|
+
* // "startDate": "my_startDate",
|
|
680
|
+
* // "startRow": 0,
|
|
681
|
+
* // "type": "my_type"
|
|
682
|
+
* // }
|
|
683
|
+
* },
|
|
684
|
+
* });
|
|
685
|
+
* console.log(res.data);
|
|
686
|
+
*
|
|
687
|
+
* // Example response
|
|
688
|
+
* // {
|
|
689
|
+
* // "responseAggregationType": "my_responseAggregationType",
|
|
690
|
+
* // "rows": []
|
|
691
|
+
* // }
|
|
692
|
+
* }
|
|
693
|
+
*
|
|
694
|
+
* main().catch(e => {
|
|
695
|
+
* console.error(e);
|
|
696
|
+
* throw e;
|
|
697
|
+
* });
|
|
698
|
+
*
|
|
699
|
+
* ```
|
|
633
700
|
*
|
|
634
701
|
* @param params - Parameters for request
|
|
635
702
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -747,6 +814,49 @@ export namespace searchconsole_v1 {
|
|
|
747
814
|
|
|
748
815
|
/**
|
|
749
816
|
* 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.
|
|
817
|
+
* @example
|
|
818
|
+
* ```js
|
|
819
|
+
* // Before running the sample:
|
|
820
|
+
* // - Enable the API at:
|
|
821
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
822
|
+
* // - Login into gcloud by running:
|
|
823
|
+
* // ```sh
|
|
824
|
+
* // $ gcloud auth application-default login
|
|
825
|
+
* // ```
|
|
826
|
+
* // - Install the npm module by running:
|
|
827
|
+
* // ```sh
|
|
828
|
+
* // $ npm install googleapis
|
|
829
|
+
* // ```
|
|
830
|
+
*
|
|
831
|
+
* const {google} = require('googleapis');
|
|
832
|
+
* const searchconsole = google.searchconsole('v1');
|
|
833
|
+
*
|
|
834
|
+
* async function main() {
|
|
835
|
+
* const auth = new google.auth.GoogleAuth({
|
|
836
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
837
|
+
* scopes: ['https://www.googleapis.com/auth/webmasters'],
|
|
838
|
+
* });
|
|
839
|
+
*
|
|
840
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
841
|
+
* const authClient = await auth.getClient();
|
|
842
|
+
* google.options({auth: authClient});
|
|
843
|
+
*
|
|
844
|
+
* // Do the magic
|
|
845
|
+
* const res = await webmasters.sitemaps.delete({
|
|
846
|
+
* // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
|
|
847
|
+
* feedpath: 'placeholder-value',
|
|
848
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
849
|
+
* siteUrl: 'placeholder-value',
|
|
850
|
+
* });
|
|
851
|
+
* console.log(res.data);
|
|
852
|
+
* }
|
|
853
|
+
*
|
|
854
|
+
* main().catch(e => {
|
|
855
|
+
* console.error(e);
|
|
856
|
+
* throw e;
|
|
857
|
+
* });
|
|
858
|
+
*
|
|
859
|
+
* ```
|
|
750
860
|
*
|
|
751
861
|
* @param params - Parameters for request
|
|
752
862
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -835,6 +945,65 @@ export namespace searchconsole_v1 {
|
|
|
835
945
|
|
|
836
946
|
/**
|
|
837
947
|
* Retrieves information about a specific sitemap.
|
|
948
|
+
* @example
|
|
949
|
+
* ```js
|
|
950
|
+
* // Before running the sample:
|
|
951
|
+
* // - Enable the API at:
|
|
952
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
953
|
+
* // - Login into gcloud by running:
|
|
954
|
+
* // ```sh
|
|
955
|
+
* // $ gcloud auth application-default login
|
|
956
|
+
* // ```
|
|
957
|
+
* // - Install the npm module by running:
|
|
958
|
+
* // ```sh
|
|
959
|
+
* // $ npm install googleapis
|
|
960
|
+
* // ```
|
|
961
|
+
*
|
|
962
|
+
* const {google} = require('googleapis');
|
|
963
|
+
* const searchconsole = google.searchconsole('v1');
|
|
964
|
+
*
|
|
965
|
+
* async function main() {
|
|
966
|
+
* const auth = new google.auth.GoogleAuth({
|
|
967
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
968
|
+
* scopes: [
|
|
969
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
970
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
971
|
+
* ],
|
|
972
|
+
* });
|
|
973
|
+
*
|
|
974
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
975
|
+
* const authClient = await auth.getClient();
|
|
976
|
+
* google.options({auth: authClient});
|
|
977
|
+
*
|
|
978
|
+
* // Do the magic
|
|
979
|
+
* const res = await webmasters.sitemaps.get({
|
|
980
|
+
* // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
|
|
981
|
+
* feedpath: 'placeholder-value',
|
|
982
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
983
|
+
* siteUrl: 'placeholder-value',
|
|
984
|
+
* });
|
|
985
|
+
* console.log(res.data);
|
|
986
|
+
*
|
|
987
|
+
* // Example response
|
|
988
|
+
* // {
|
|
989
|
+
* // "contents": [],
|
|
990
|
+
* // "errors": "my_errors",
|
|
991
|
+
* // "isPending": false,
|
|
992
|
+
* // "isSitemapsIndex": false,
|
|
993
|
+
* // "lastDownloaded": "my_lastDownloaded",
|
|
994
|
+
* // "lastSubmitted": "my_lastSubmitted",
|
|
995
|
+
* // "path": "my_path",
|
|
996
|
+
* // "type": "my_type",
|
|
997
|
+
* // "warnings": "my_warnings"
|
|
998
|
+
* // }
|
|
999
|
+
* }
|
|
1000
|
+
*
|
|
1001
|
+
* main().catch(e => {
|
|
1002
|
+
* console.error(e);
|
|
1003
|
+
* throw e;
|
|
1004
|
+
* });
|
|
1005
|
+
*
|
|
1006
|
+
* ```
|
|
838
1007
|
*
|
|
839
1008
|
* @param params - Parameters for request
|
|
840
1009
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -925,6 +1094,57 @@ export namespace searchconsole_v1 {
|
|
|
925
1094
|
|
|
926
1095
|
/**
|
|
927
1096
|
* 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).
|
|
1097
|
+
* @example
|
|
1098
|
+
* ```js
|
|
1099
|
+
* // Before running the sample:
|
|
1100
|
+
* // - Enable the API at:
|
|
1101
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1102
|
+
* // - Login into gcloud by running:
|
|
1103
|
+
* // ```sh
|
|
1104
|
+
* // $ gcloud auth application-default login
|
|
1105
|
+
* // ```
|
|
1106
|
+
* // - Install the npm module by running:
|
|
1107
|
+
* // ```sh
|
|
1108
|
+
* // $ npm install googleapis
|
|
1109
|
+
* // ```
|
|
1110
|
+
*
|
|
1111
|
+
* const {google} = require('googleapis');
|
|
1112
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1113
|
+
*
|
|
1114
|
+
* async function main() {
|
|
1115
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1116
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1117
|
+
* scopes: [
|
|
1118
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
1119
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
1120
|
+
* ],
|
|
1121
|
+
* });
|
|
1122
|
+
*
|
|
1123
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1124
|
+
* const authClient = await auth.getClient();
|
|
1125
|
+
* google.options({auth: authClient});
|
|
1126
|
+
*
|
|
1127
|
+
* // Do the magic
|
|
1128
|
+
* const res = await webmasters.sitemaps.list({
|
|
1129
|
+
* // A URL of a site's sitemap index. For example: `http://www.example.com/sitemapindex.xml`.
|
|
1130
|
+
* sitemapIndex: 'placeholder-value',
|
|
1131
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
1132
|
+
* siteUrl: 'placeholder-value',
|
|
1133
|
+
* });
|
|
1134
|
+
* console.log(res.data);
|
|
1135
|
+
*
|
|
1136
|
+
* // Example response
|
|
1137
|
+
* // {
|
|
1138
|
+
* // "sitemap": []
|
|
1139
|
+
* // }
|
|
1140
|
+
* }
|
|
1141
|
+
*
|
|
1142
|
+
* main().catch(e => {
|
|
1143
|
+
* console.error(e);
|
|
1144
|
+
* throw e;
|
|
1145
|
+
* });
|
|
1146
|
+
*
|
|
1147
|
+
* ```
|
|
928
1148
|
*
|
|
929
1149
|
* @param params - Parameters for request
|
|
930
1150
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1018,6 +1238,49 @@ export namespace searchconsole_v1 {
|
|
|
1018
1238
|
|
|
1019
1239
|
/**
|
|
1020
1240
|
* Submits a sitemap for a site.
|
|
1241
|
+
* @example
|
|
1242
|
+
* ```js
|
|
1243
|
+
* // Before running the sample:
|
|
1244
|
+
* // - Enable the API at:
|
|
1245
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1246
|
+
* // - Login into gcloud by running:
|
|
1247
|
+
* // ```sh
|
|
1248
|
+
* // $ gcloud auth application-default login
|
|
1249
|
+
* // ```
|
|
1250
|
+
* // - Install the npm module by running:
|
|
1251
|
+
* // ```sh
|
|
1252
|
+
* // $ npm install googleapis
|
|
1253
|
+
* // ```
|
|
1254
|
+
*
|
|
1255
|
+
* const {google} = require('googleapis');
|
|
1256
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1257
|
+
*
|
|
1258
|
+
* async function main() {
|
|
1259
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1260
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1261
|
+
* scopes: ['https://www.googleapis.com/auth/webmasters'],
|
|
1262
|
+
* });
|
|
1263
|
+
*
|
|
1264
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1265
|
+
* const authClient = await auth.getClient();
|
|
1266
|
+
* google.options({auth: authClient});
|
|
1267
|
+
*
|
|
1268
|
+
* // Do the magic
|
|
1269
|
+
* const res = await webmasters.sitemaps.submit({
|
|
1270
|
+
* // The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
|
|
1271
|
+
* feedpath: 'placeholder-value',
|
|
1272
|
+
* // The site's URL, including protocol. For example: `http://www.example.com/`.
|
|
1273
|
+
* siteUrl: 'placeholder-value',
|
|
1274
|
+
* });
|
|
1275
|
+
* console.log(res.data);
|
|
1276
|
+
* }
|
|
1277
|
+
*
|
|
1278
|
+
* main().catch(e => {
|
|
1279
|
+
* console.error(e);
|
|
1280
|
+
* throw e;
|
|
1281
|
+
* });
|
|
1282
|
+
*
|
|
1283
|
+
* ```
|
|
1021
1284
|
*
|
|
1022
1285
|
* @param params - Parameters for request
|
|
1023
1286
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1154,6 +1417,47 @@ export namespace searchconsole_v1 {
|
|
|
1154
1417
|
|
|
1155
1418
|
/**
|
|
1156
1419
|
* Adds a site to the set of the user's sites in Search Console.
|
|
1420
|
+
* @example
|
|
1421
|
+
* ```js
|
|
1422
|
+
* // Before running the sample:
|
|
1423
|
+
* // - Enable the API at:
|
|
1424
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1425
|
+
* // - Login into gcloud by running:
|
|
1426
|
+
* // ```sh
|
|
1427
|
+
* // $ gcloud auth application-default login
|
|
1428
|
+
* // ```
|
|
1429
|
+
* // - Install the npm module by running:
|
|
1430
|
+
* // ```sh
|
|
1431
|
+
* // $ npm install googleapis
|
|
1432
|
+
* // ```
|
|
1433
|
+
*
|
|
1434
|
+
* const {google} = require('googleapis');
|
|
1435
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1436
|
+
*
|
|
1437
|
+
* async function main() {
|
|
1438
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1439
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1440
|
+
* scopes: ['https://www.googleapis.com/auth/webmasters'],
|
|
1441
|
+
* });
|
|
1442
|
+
*
|
|
1443
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1444
|
+
* const authClient = await auth.getClient();
|
|
1445
|
+
* google.options({auth: authClient});
|
|
1446
|
+
*
|
|
1447
|
+
* // Do the magic
|
|
1448
|
+
* const res = await webmasters.sites.add({
|
|
1449
|
+
* // The URL of the site to add.
|
|
1450
|
+
* siteUrl: 'placeholder-value',
|
|
1451
|
+
* });
|
|
1452
|
+
* console.log(res.data);
|
|
1453
|
+
* }
|
|
1454
|
+
*
|
|
1455
|
+
* main().catch(e => {
|
|
1456
|
+
* console.error(e);
|
|
1457
|
+
* throw e;
|
|
1458
|
+
* });
|
|
1459
|
+
*
|
|
1460
|
+
* ```
|
|
1157
1461
|
*
|
|
1158
1462
|
* @param params - Parameters for request
|
|
1159
1463
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1243,6 +1547,47 @@ export namespace searchconsole_v1 {
|
|
|
1243
1547
|
|
|
1244
1548
|
/**
|
|
1245
1549
|
* Removes a site from the set of the user's Search Console sites.
|
|
1550
|
+
* @example
|
|
1551
|
+
* ```js
|
|
1552
|
+
* // Before running the sample:
|
|
1553
|
+
* // - Enable the API at:
|
|
1554
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1555
|
+
* // - Login into gcloud by running:
|
|
1556
|
+
* // ```sh
|
|
1557
|
+
* // $ gcloud auth application-default login
|
|
1558
|
+
* // ```
|
|
1559
|
+
* // - Install the npm module by running:
|
|
1560
|
+
* // ```sh
|
|
1561
|
+
* // $ npm install googleapis
|
|
1562
|
+
* // ```
|
|
1563
|
+
*
|
|
1564
|
+
* const {google} = require('googleapis');
|
|
1565
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1566
|
+
*
|
|
1567
|
+
* async function main() {
|
|
1568
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1569
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1570
|
+
* scopes: ['https://www.googleapis.com/auth/webmasters'],
|
|
1571
|
+
* });
|
|
1572
|
+
*
|
|
1573
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1574
|
+
* const authClient = await auth.getClient();
|
|
1575
|
+
* google.options({auth: authClient});
|
|
1576
|
+
*
|
|
1577
|
+
* // Do the magic
|
|
1578
|
+
* const res = await webmasters.sites.delete({
|
|
1579
|
+
* // The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
|
|
1580
|
+
* siteUrl: 'placeholder-value',
|
|
1581
|
+
* });
|
|
1582
|
+
* console.log(res.data);
|
|
1583
|
+
* }
|
|
1584
|
+
*
|
|
1585
|
+
* main().catch(e => {
|
|
1586
|
+
* console.error(e);
|
|
1587
|
+
* throw e;
|
|
1588
|
+
* });
|
|
1589
|
+
*
|
|
1590
|
+
* ```
|
|
1246
1591
|
*
|
|
1247
1592
|
* @param params - Parameters for request
|
|
1248
1593
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1332,6 +1677,56 @@ export namespace searchconsole_v1 {
|
|
|
1332
1677
|
|
|
1333
1678
|
/**
|
|
1334
1679
|
* Retrieves information about specific site.
|
|
1680
|
+
* @example
|
|
1681
|
+
* ```js
|
|
1682
|
+
* // Before running the sample:
|
|
1683
|
+
* // - Enable the API at:
|
|
1684
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1685
|
+
* // - Login into gcloud by running:
|
|
1686
|
+
* // ```sh
|
|
1687
|
+
* // $ gcloud auth application-default login
|
|
1688
|
+
* // ```
|
|
1689
|
+
* // - Install the npm module by running:
|
|
1690
|
+
* // ```sh
|
|
1691
|
+
* // $ npm install googleapis
|
|
1692
|
+
* // ```
|
|
1693
|
+
*
|
|
1694
|
+
* const {google} = require('googleapis');
|
|
1695
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1696
|
+
*
|
|
1697
|
+
* async function main() {
|
|
1698
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1699
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1700
|
+
* scopes: [
|
|
1701
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
1702
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
1703
|
+
* ],
|
|
1704
|
+
* });
|
|
1705
|
+
*
|
|
1706
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1707
|
+
* const authClient = await auth.getClient();
|
|
1708
|
+
* google.options({auth: authClient});
|
|
1709
|
+
*
|
|
1710
|
+
* // Do the magic
|
|
1711
|
+
* const res = await webmasters.sites.get({
|
|
1712
|
+
* // The URI of the property as defined in Search Console. **Examples:** `http://www.example.com/` or `sc-domain:example.com`.
|
|
1713
|
+
* siteUrl: 'placeholder-value',
|
|
1714
|
+
* });
|
|
1715
|
+
* console.log(res.data);
|
|
1716
|
+
*
|
|
1717
|
+
* // Example response
|
|
1718
|
+
* // {
|
|
1719
|
+
* // "permissionLevel": "my_permissionLevel",
|
|
1720
|
+
* // "siteUrl": "my_siteUrl"
|
|
1721
|
+
* // }
|
|
1722
|
+
* }
|
|
1723
|
+
*
|
|
1724
|
+
* main().catch(e => {
|
|
1725
|
+
* console.error(e);
|
|
1726
|
+
* throw e;
|
|
1727
|
+
* });
|
|
1728
|
+
*
|
|
1729
|
+
* ```
|
|
1335
1730
|
*
|
|
1336
1731
|
* @param params - Parameters for request
|
|
1337
1732
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1423,6 +1818,52 @@ export namespace searchconsole_v1 {
|
|
|
1423
1818
|
|
|
1424
1819
|
/**
|
|
1425
1820
|
* Lists the user's Search Console sites.
|
|
1821
|
+
* @example
|
|
1822
|
+
* ```js
|
|
1823
|
+
* // Before running the sample:
|
|
1824
|
+
* // - Enable the API at:
|
|
1825
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1826
|
+
* // - Login into gcloud by running:
|
|
1827
|
+
* // ```sh
|
|
1828
|
+
* // $ gcloud auth application-default login
|
|
1829
|
+
* // ```
|
|
1830
|
+
* // - Install the npm module by running:
|
|
1831
|
+
* // ```sh
|
|
1832
|
+
* // $ npm install googleapis
|
|
1833
|
+
* // ```
|
|
1834
|
+
*
|
|
1835
|
+
* const {google} = require('googleapis');
|
|
1836
|
+
* const searchconsole = google.searchconsole('v1');
|
|
1837
|
+
*
|
|
1838
|
+
* async function main() {
|
|
1839
|
+
* const auth = new google.auth.GoogleAuth({
|
|
1840
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1841
|
+
* scopes: [
|
|
1842
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
1843
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
1844
|
+
* ],
|
|
1845
|
+
* });
|
|
1846
|
+
*
|
|
1847
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
1848
|
+
* const authClient = await auth.getClient();
|
|
1849
|
+
* google.options({auth: authClient});
|
|
1850
|
+
*
|
|
1851
|
+
* // Do the magic
|
|
1852
|
+
* const res = await webmasters.sites.list({});
|
|
1853
|
+
* console.log(res.data);
|
|
1854
|
+
*
|
|
1855
|
+
* // Example response
|
|
1856
|
+
* // {
|
|
1857
|
+
* // "siteEntry": []
|
|
1858
|
+
* // }
|
|
1859
|
+
* }
|
|
1860
|
+
*
|
|
1861
|
+
* main().catch(e => {
|
|
1862
|
+
* console.error(e);
|
|
1863
|
+
* throw e;
|
|
1864
|
+
* });
|
|
1865
|
+
*
|
|
1866
|
+
* ```
|
|
1426
1867
|
*
|
|
1427
1868
|
* @param params - Parameters for request
|
|
1428
1869
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1550,6 +1991,62 @@ export namespace searchconsole_v1 {
|
|
|
1550
1991
|
|
|
1551
1992
|
/**
|
|
1552
1993
|
* Index inspection.
|
|
1994
|
+
* @example
|
|
1995
|
+
* ```js
|
|
1996
|
+
* // Before running the sample:
|
|
1997
|
+
* // - Enable the API at:
|
|
1998
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
1999
|
+
* // - Login into gcloud by running:
|
|
2000
|
+
* // ```sh
|
|
2001
|
+
* // $ gcloud auth application-default login
|
|
2002
|
+
* // ```
|
|
2003
|
+
* // - Install the npm module by running:
|
|
2004
|
+
* // ```sh
|
|
2005
|
+
* // $ npm install googleapis
|
|
2006
|
+
* // ```
|
|
2007
|
+
*
|
|
2008
|
+
* const {google} = require('googleapis');
|
|
2009
|
+
* const searchconsole = google.searchconsole('v1');
|
|
2010
|
+
*
|
|
2011
|
+
* async function main() {
|
|
2012
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2013
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2014
|
+
* scopes: [
|
|
2015
|
+
* 'https://www.googleapis.com/auth/webmasters',
|
|
2016
|
+
* 'https://www.googleapis.com/auth/webmasters.readonly',
|
|
2017
|
+
* ],
|
|
2018
|
+
* });
|
|
2019
|
+
*
|
|
2020
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2021
|
+
* const authClient = await auth.getClient();
|
|
2022
|
+
* google.options({auth: authClient});
|
|
2023
|
+
*
|
|
2024
|
+
* // Do the magic
|
|
2025
|
+
* const res = await searchconsole.urlInspection.index.inspect({
|
|
2026
|
+
* // Request body metadata
|
|
2027
|
+
* requestBody: {
|
|
2028
|
+
* // request body parameters
|
|
2029
|
+
* // {
|
|
2030
|
+
* // "inspectionUrl": "my_inspectionUrl",
|
|
2031
|
+
* // "languageCode": "my_languageCode",
|
|
2032
|
+
* // "siteUrl": "my_siteUrl"
|
|
2033
|
+
* // }
|
|
2034
|
+
* },
|
|
2035
|
+
* });
|
|
2036
|
+
* console.log(res.data);
|
|
2037
|
+
*
|
|
2038
|
+
* // Example response
|
|
2039
|
+
* // {
|
|
2040
|
+
* // "inspectionResult": {}
|
|
2041
|
+
* // }
|
|
2042
|
+
* }
|
|
2043
|
+
*
|
|
2044
|
+
* main().catch(e => {
|
|
2045
|
+
* console.error(e);
|
|
2046
|
+
* throw e;
|
|
2047
|
+
* });
|
|
2048
|
+
*
|
|
2049
|
+
* ```
|
|
1553
2050
|
*
|
|
1554
2051
|
* @param params - Parameters for request
|
|
1555
2052
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1672,6 +2169,62 @@ export namespace searchconsole_v1 {
|
|
|
1672
2169
|
|
|
1673
2170
|
/**
|
|
1674
2171
|
* Runs Mobile-Friendly Test for a given URL.
|
|
2172
|
+
* @example
|
|
2173
|
+
* ```js
|
|
2174
|
+
* // Before running the sample:
|
|
2175
|
+
* // - Enable the API at:
|
|
2176
|
+
* // https://console.developers.google.com/apis/api/searchconsole.googleapis.com
|
|
2177
|
+
* // - Login into gcloud by running:
|
|
2178
|
+
* // ```sh
|
|
2179
|
+
* // $ gcloud auth application-default login
|
|
2180
|
+
* // ```
|
|
2181
|
+
* // - Install the npm module by running:
|
|
2182
|
+
* // ```sh
|
|
2183
|
+
* // $ npm install googleapis
|
|
2184
|
+
* // ```
|
|
2185
|
+
*
|
|
2186
|
+
* const {google} = require('googleapis');
|
|
2187
|
+
* const searchconsole = google.searchconsole('v1');
|
|
2188
|
+
*
|
|
2189
|
+
* async function main() {
|
|
2190
|
+
* const auth = new google.auth.GoogleAuth({
|
|
2191
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2192
|
+
* scopes: [],
|
|
2193
|
+
* });
|
|
2194
|
+
*
|
|
2195
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
2196
|
+
* const authClient = await auth.getClient();
|
|
2197
|
+
* google.options({auth: authClient});
|
|
2198
|
+
*
|
|
2199
|
+
* // Do the magic
|
|
2200
|
+
* const res = await searchconsole.urlTestingTools.mobileFriendlyTest.run({
|
|
2201
|
+
* // Request body metadata
|
|
2202
|
+
* requestBody: {
|
|
2203
|
+
* // request body parameters
|
|
2204
|
+
* // {
|
|
2205
|
+
* // "requestScreenshot": false,
|
|
2206
|
+
* // "url": "my_url"
|
|
2207
|
+
* // }
|
|
2208
|
+
* },
|
|
2209
|
+
* });
|
|
2210
|
+
* console.log(res.data);
|
|
2211
|
+
*
|
|
2212
|
+
* // Example response
|
|
2213
|
+
* // {
|
|
2214
|
+
* // "mobileFriendliness": "my_mobileFriendliness",
|
|
2215
|
+
* // "mobileFriendlyIssues": [],
|
|
2216
|
+
* // "resourceIssues": [],
|
|
2217
|
+
* // "screenshot": {},
|
|
2218
|
+
* // "testStatus": {}
|
|
2219
|
+
* // }
|
|
2220
|
+
* }
|
|
2221
|
+
*
|
|
2222
|
+
* main().catch(e => {
|
|
2223
|
+
* console.error(e);
|
|
2224
|
+
* throw e;
|
|
2225
|
+
* });
|
|
2226
|
+
*
|
|
2227
|
+
* ```
|
|
1675
2228
|
*
|
|
1676
2229
|
* @param params - Parameters for request
|
|
1677
2230
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|