@googleapis/searchads360 6.4.0 → 8.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 +44 -0
- package/build/index.d.ts +1 -1
- package/build/index.js.map +1 -1
- package/build/v0.d.ts +339 -13
- package/build/v0.js.map +1 -1
- package/index.ts +0 -1
- package/package.json +2 -2
- package/v0.ts +375 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [8.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/searchads360-v8.0.0...searchads360-v8.0.1) (2025-07-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **searchads360:** update the API ([6e11bcc](https://github.com/googleapis/google-api-nodejs-client/commit/6e11bcc04fce4807531322b7ceb7901ad6d53d31))
|
|
9
|
+
* **searchads360:** update the API ([8e46b01](https://github.com/googleapis/google-api-nodejs-client/commit/8e46b01460a5d34ca2651ff659b7c4c436ad9cdb))
|
|
10
|
+
|
|
11
|
+
## [8.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/searchads360-v7.0.1...searchads360-v8.0.0) (2025-06-30)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* upgrade to node 18
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **searchads360:** update the API ([07726ff](https://github.com/googleapis/google-api-nodejs-client/commit/07726ff93e1fe65944ea3c0ca64c684c8f416cda))
|
|
21
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
27
|
+
* **searchads360:** update the API ([8e46b01](https://github.com/googleapis/google-api-nodejs-client/commit/8e46b01460a5d34ca2651ff659b7c4c436ad9cdb))
|
|
28
|
+
|
|
29
|
+
## [7.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/searchads360-v7.0.0...searchads360-v7.0.1) (2025-06-04)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
35
|
+
|
|
36
|
+
## [7.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/searchads360-v6.4.0...searchads360-v7.0.0) (2025-05-29)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### ⚠ BREAKING CHANGES
|
|
40
|
+
|
|
41
|
+
* upgrade to node 18
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
46
|
+
|
|
3
47
|
## [6.4.0](https://github.com/googleapis/google-api-nodejs-client/compare/searchads360-v6.3.0...searchads360-v6.4.0) (2025-05-05)
|
|
4
48
|
|
|
5
49
|
|
package/build/index.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ export declare function searchads360(options: searchads360_v0.Options): searchad
|
|
|
9
9
|
declare const auth: AuthPlus;
|
|
10
10
|
export { auth };
|
|
11
11
|
export { searchads360_v0 };
|
|
12
|
-
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions,
|
|
12
|
+
export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAqC;AAmB7B,gGAnBA,oBAAe,OAmBA;AAjBV,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,oBAAe,CAAC,YAAY;CACjC,CAAC;AAMF,SAAgB,YAAY,CAE1B,gBAAgD;IAEhD,OAAO,IAAA,0BAAM,EAAI,cAAc,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACrE,CAAC;AALD,oCAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAqC;AAmB7B,gGAnBA,oBAAe,OAmBA;AAjBV,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,oBAAe,CAAC,YAAY;CACjC,CAAC;AAMF,SAAgB,YAAY,CAE1B,gBAAgD;IAEhD,OAAO,IAAA,0BAAM,EAAI,cAAc,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACrE,CAAC;AALD,oCAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
|
package/build/v0.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient,
|
|
2
|
+
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
3
|
import { Readable } from 'stream';
|
|
4
4
|
export declare namespace searchads360_v0 {
|
|
5
5
|
export interface Options extends GlobalOptions {
|
|
@@ -4608,14 +4608,57 @@ export declare namespace searchads360_v0 {
|
|
|
4608
4608
|
constructor(context: APIRequestContext);
|
|
4609
4609
|
/**
|
|
4610
4610
|
* Returns resource names of customers directly accessible by the user authenticating the call. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
|
|
4611
|
+
* @example
|
|
4612
|
+
* ```js
|
|
4613
|
+
* // Before running the sample:
|
|
4614
|
+
* // - Enable the API at:
|
|
4615
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4616
|
+
* // - Login into gcloud by running:
|
|
4617
|
+
* // ```sh
|
|
4618
|
+
* // $ gcloud auth application-default login
|
|
4619
|
+
* // ```
|
|
4620
|
+
* // - Install the npm module by running:
|
|
4621
|
+
* // ```sh
|
|
4622
|
+
* // $ npm install googleapis
|
|
4623
|
+
* // ```
|
|
4624
|
+
*
|
|
4625
|
+
* const {google} = require('googleapis');
|
|
4626
|
+
* const searchads360 = google.searchads360('v0');
|
|
4627
|
+
*
|
|
4628
|
+
* async function main() {
|
|
4629
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4630
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4631
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
4632
|
+
* });
|
|
4633
|
+
*
|
|
4634
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4635
|
+
* const authClient = await auth.getClient();
|
|
4636
|
+
* google.options({auth: authClient});
|
|
4637
|
+
*
|
|
4638
|
+
* // Do the magic
|
|
4639
|
+
* const res = await searchads360.customers.listAccessibleCustomers({});
|
|
4640
|
+
* console.log(res.data);
|
|
4641
|
+
*
|
|
4642
|
+
* // Example response
|
|
4643
|
+
* // {
|
|
4644
|
+
* // "resourceNames": []
|
|
4645
|
+
* // }
|
|
4646
|
+
* }
|
|
4647
|
+
*
|
|
4648
|
+
* main().catch(e => {
|
|
4649
|
+
* console.error(e);
|
|
4650
|
+
* throw e;
|
|
4651
|
+
* });
|
|
4652
|
+
*
|
|
4653
|
+
* ```
|
|
4611
4654
|
*
|
|
4612
4655
|
* @param params - Parameters for request
|
|
4613
4656
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4614
4657
|
* @param callback - Optional callback that handles the response.
|
|
4615
4658
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4616
4659
|
*/
|
|
4617
|
-
listAccessibleCustomers(params: Params$Resource$Customers$Listaccessiblecustomers, options: StreamMethodOptions):
|
|
4618
|
-
listAccessibleCustomers(params?: Params$Resource$Customers$Listaccessiblecustomers, options?: MethodOptions):
|
|
4660
|
+
listAccessibleCustomers(params: Params$Resource$Customers$Listaccessiblecustomers, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4661
|
+
listAccessibleCustomers(params?: Params$Resource$Customers$Listaccessiblecustomers, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__ListAccessibleCustomersResponse>>;
|
|
4619
4662
|
listAccessibleCustomers(params: Params$Resource$Customers$Listaccessiblecustomers, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4620
4663
|
listAccessibleCustomers(params: Params$Resource$Customers$Listaccessiblecustomers, options: MethodOptions | BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__ListAccessibleCustomersResponse>, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__ListAccessibleCustomersResponse>): void;
|
|
4621
4664
|
listAccessibleCustomers(params: Params$Resource$Customers$Listaccessiblecustomers, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__ListAccessibleCustomersResponse>): void;
|
|
@@ -4628,28 +4671,129 @@ export declare namespace searchads360_v0 {
|
|
|
4628
4671
|
constructor(context: APIRequestContext);
|
|
4629
4672
|
/**
|
|
4630
4673
|
* Returns the requested custom column in full detail.
|
|
4674
|
+
* @example
|
|
4675
|
+
* ```js
|
|
4676
|
+
* // Before running the sample:
|
|
4677
|
+
* // - Enable the API at:
|
|
4678
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4679
|
+
* // - Login into gcloud by running:
|
|
4680
|
+
* // ```sh
|
|
4681
|
+
* // $ gcloud auth application-default login
|
|
4682
|
+
* // ```
|
|
4683
|
+
* // - Install the npm module by running:
|
|
4684
|
+
* // ```sh
|
|
4685
|
+
* // $ npm install googleapis
|
|
4686
|
+
* // ```
|
|
4687
|
+
*
|
|
4688
|
+
* const {google} = require('googleapis');
|
|
4689
|
+
* const searchads360 = google.searchads360('v0');
|
|
4690
|
+
*
|
|
4691
|
+
* async function main() {
|
|
4692
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4693
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4694
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
4695
|
+
* });
|
|
4696
|
+
*
|
|
4697
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4698
|
+
* const authClient = await auth.getClient();
|
|
4699
|
+
* google.options({auth: authClient});
|
|
4700
|
+
*
|
|
4701
|
+
* // Do the magic
|
|
4702
|
+
* const res = await searchads360.customers.customColumns.get({
|
|
4703
|
+
* // Required. The resource name of the custom column to fetch.
|
|
4704
|
+
* resourceName: 'customers/my-customer/customColumns/my-customColumn',
|
|
4705
|
+
* });
|
|
4706
|
+
* console.log(res.data);
|
|
4707
|
+
*
|
|
4708
|
+
* // Example response
|
|
4709
|
+
* // {
|
|
4710
|
+
* // "description": "my_description",
|
|
4711
|
+
* // "id": "my_id",
|
|
4712
|
+
* // "name": "my_name",
|
|
4713
|
+
* // "queryable": false,
|
|
4714
|
+
* // "referencedSystemColumns": [],
|
|
4715
|
+
* // "referencesAttributes": false,
|
|
4716
|
+
* // "referencesMetrics": false,
|
|
4717
|
+
* // "renderType": "my_renderType",
|
|
4718
|
+
* // "resourceName": "my_resourceName",
|
|
4719
|
+
* // "valueType": "my_valueType"
|
|
4720
|
+
* // }
|
|
4721
|
+
* }
|
|
4722
|
+
*
|
|
4723
|
+
* main().catch(e => {
|
|
4724
|
+
* console.error(e);
|
|
4725
|
+
* throw e;
|
|
4726
|
+
* });
|
|
4727
|
+
*
|
|
4728
|
+
* ```
|
|
4631
4729
|
*
|
|
4632
4730
|
* @param params - Parameters for request
|
|
4633
4731
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4634
4732
|
* @param callback - Optional callback that handles the response.
|
|
4635
4733
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4636
4734
|
*/
|
|
4637
|
-
get(params: Params$Resource$Customers$Customcolumns$Get, options: StreamMethodOptions):
|
|
4638
|
-
get(params?: Params$Resource$Customers$Customcolumns$Get, options?: MethodOptions):
|
|
4735
|
+
get(params: Params$Resource$Customers$Customcolumns$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4736
|
+
get(params?: Params$Resource$Customers$Customcolumns$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Resources__CustomColumn>>;
|
|
4639
4737
|
get(params: Params$Resource$Customers$Customcolumns$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4640
4738
|
get(params: Params$Resource$Customers$Customcolumns$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleAdsSearchads360V0Resources__CustomColumn>, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Resources__CustomColumn>): void;
|
|
4641
4739
|
get(params: Params$Resource$Customers$Customcolumns$Get, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Resources__CustomColumn>): void;
|
|
4642
4740
|
get(callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Resources__CustomColumn>): void;
|
|
4643
4741
|
/**
|
|
4644
4742
|
* Returns all the custom columns associated with the customer in full detail.
|
|
4743
|
+
* @example
|
|
4744
|
+
* ```js
|
|
4745
|
+
* // Before running the sample:
|
|
4746
|
+
* // - Enable the API at:
|
|
4747
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4748
|
+
* // - Login into gcloud by running:
|
|
4749
|
+
* // ```sh
|
|
4750
|
+
* // $ gcloud auth application-default login
|
|
4751
|
+
* // ```
|
|
4752
|
+
* // - Install the npm module by running:
|
|
4753
|
+
* // ```sh
|
|
4754
|
+
* // $ npm install googleapis
|
|
4755
|
+
* // ```
|
|
4756
|
+
*
|
|
4757
|
+
* const {google} = require('googleapis');
|
|
4758
|
+
* const searchads360 = google.searchads360('v0');
|
|
4759
|
+
*
|
|
4760
|
+
* async function main() {
|
|
4761
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4762
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4763
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
4764
|
+
* });
|
|
4765
|
+
*
|
|
4766
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4767
|
+
* const authClient = await auth.getClient();
|
|
4768
|
+
* google.options({auth: authClient});
|
|
4769
|
+
*
|
|
4770
|
+
* // Do the magic
|
|
4771
|
+
* const res = await searchads360.customers.customColumns.list({
|
|
4772
|
+
* // Required. The ID of the customer to apply the CustomColumn list operation to.
|
|
4773
|
+
* customerId: '[^/]+',
|
|
4774
|
+
* });
|
|
4775
|
+
* console.log(res.data);
|
|
4776
|
+
*
|
|
4777
|
+
* // Example response
|
|
4778
|
+
* // {
|
|
4779
|
+
* // "customColumns": []
|
|
4780
|
+
* // }
|
|
4781
|
+
* }
|
|
4782
|
+
*
|
|
4783
|
+
* main().catch(e => {
|
|
4784
|
+
* console.error(e);
|
|
4785
|
+
* throw e;
|
|
4786
|
+
* });
|
|
4787
|
+
*
|
|
4788
|
+
* ```
|
|
4645
4789
|
*
|
|
4646
4790
|
* @param params - Parameters for request
|
|
4647
4791
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4648
4792
|
* @param callback - Optional callback that handles the response.
|
|
4649
4793
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4650
4794
|
*/
|
|
4651
|
-
list(params: Params$Resource$Customers$Customcolumns$List, options: StreamMethodOptions):
|
|
4652
|
-
list(params?: Params$Resource$Customers$Customcolumns$List, options?: MethodOptions):
|
|
4795
|
+
list(params: Params$Resource$Customers$Customcolumns$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4796
|
+
list(params?: Params$Resource$Customers$Customcolumns$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__ListCustomColumnsResponse>>;
|
|
4653
4797
|
list(params: Params$Resource$Customers$Customcolumns$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4654
4798
|
list(params: Params$Resource$Customers$Customcolumns$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__ListCustomColumnsResponse>, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__ListCustomColumnsResponse>): void;
|
|
4655
4799
|
list(params: Params$Resource$Customers$Customcolumns$List, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__ListCustomColumnsResponse>): void;
|
|
@@ -4672,14 +4816,82 @@ export declare namespace searchads360_v0 {
|
|
|
4672
4816
|
constructor(context: APIRequestContext);
|
|
4673
4817
|
/**
|
|
4674
4818
|
* Returns all rows that match the search query. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QueryError]() [QuotaError]() [RequestError]()
|
|
4819
|
+
* @example
|
|
4820
|
+
* ```js
|
|
4821
|
+
* // Before running the sample:
|
|
4822
|
+
* // - Enable the API at:
|
|
4823
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4824
|
+
* // - Login into gcloud by running:
|
|
4825
|
+
* // ```sh
|
|
4826
|
+
* // $ gcloud auth application-default login
|
|
4827
|
+
* // ```
|
|
4828
|
+
* // - Install the npm module by running:
|
|
4829
|
+
* // ```sh
|
|
4830
|
+
* // $ npm install googleapis
|
|
4831
|
+
* // ```
|
|
4832
|
+
*
|
|
4833
|
+
* const {google} = require('googleapis');
|
|
4834
|
+
* const searchads360 = google.searchads360('v0');
|
|
4835
|
+
*
|
|
4836
|
+
* async function main() {
|
|
4837
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4838
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4839
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
4840
|
+
* });
|
|
4841
|
+
*
|
|
4842
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4843
|
+
* const authClient = await auth.getClient();
|
|
4844
|
+
* google.options({auth: authClient});
|
|
4845
|
+
*
|
|
4846
|
+
* // Do the magic
|
|
4847
|
+
* const res = await searchads360.customers.searchAds360.search({
|
|
4848
|
+
* // Required. The ID of the customer being queried.
|
|
4849
|
+
* customerId: '[^/]+',
|
|
4850
|
+
*
|
|
4851
|
+
* // Request body metadata
|
|
4852
|
+
* requestBody: {
|
|
4853
|
+
* // request body parameters
|
|
4854
|
+
* // {
|
|
4855
|
+
* // "pageSize": 0,
|
|
4856
|
+
* // "pageToken": "my_pageToken",
|
|
4857
|
+
* // "query": "my_query",
|
|
4858
|
+
* // "returnTotalResultsCount": false,
|
|
4859
|
+
* // "summaryRowSetting": "my_summaryRowSetting",
|
|
4860
|
+
* // "validateOnly": false
|
|
4861
|
+
* // }
|
|
4862
|
+
* },
|
|
4863
|
+
* });
|
|
4864
|
+
* console.log(res.data);
|
|
4865
|
+
*
|
|
4866
|
+
* // Example response
|
|
4867
|
+
* // {
|
|
4868
|
+
* // "conversionCustomDimensionHeaders": [],
|
|
4869
|
+
* // "conversionCustomMetricHeaders": [],
|
|
4870
|
+
* // "customColumnHeaders": [],
|
|
4871
|
+
* // "fieldMask": "my_fieldMask",
|
|
4872
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
4873
|
+
* // "rawEventConversionDimensionHeaders": [],
|
|
4874
|
+
* // "rawEventConversionMetricHeaders": [],
|
|
4875
|
+
* // "results": [],
|
|
4876
|
+
* // "summaryRow": {},
|
|
4877
|
+
* // "totalResultsCount": "my_totalResultsCount"
|
|
4878
|
+
* // }
|
|
4879
|
+
* }
|
|
4880
|
+
*
|
|
4881
|
+
* main().catch(e => {
|
|
4882
|
+
* console.error(e);
|
|
4883
|
+
* throw e;
|
|
4884
|
+
* });
|
|
4885
|
+
*
|
|
4886
|
+
* ```
|
|
4675
4887
|
*
|
|
4676
4888
|
* @param params - Parameters for request
|
|
4677
4889
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4678
4890
|
* @param callback - Optional callback that handles the response.
|
|
4679
4891
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4680
4892
|
*/
|
|
4681
|
-
search(params: Params$Resource$Customers$Searchads360$Search, options: StreamMethodOptions):
|
|
4682
|
-
search(params?: Params$Resource$Customers$Searchads360$Search, options?: MethodOptions):
|
|
4893
|
+
search(params: Params$Resource$Customers$Searchads360$Search, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4894
|
+
search(params?: Params$Resource$Customers$Searchads360$Search, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360Response>>;
|
|
4683
4895
|
search(params: Params$Resource$Customers$Searchads360$Search, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4684
4896
|
search(params: Params$Resource$Customers$Searchads360$Search, options: MethodOptions | BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360Response>, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360Response>): void;
|
|
4685
4897
|
search(params: Params$Resource$Customers$Searchads360$Search, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360Response>): void;
|
|
@@ -4700,28 +4912,142 @@ export declare namespace searchads360_v0 {
|
|
|
4700
4912
|
constructor(context: APIRequestContext);
|
|
4701
4913
|
/**
|
|
4702
4914
|
* Returns just the requested field. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
|
|
4915
|
+
* @example
|
|
4916
|
+
* ```js
|
|
4917
|
+
* // Before running the sample:
|
|
4918
|
+
* // - Enable the API at:
|
|
4919
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4920
|
+
* // - Login into gcloud by running:
|
|
4921
|
+
* // ```sh
|
|
4922
|
+
* // $ gcloud auth application-default login
|
|
4923
|
+
* // ```
|
|
4924
|
+
* // - Install the npm module by running:
|
|
4925
|
+
* // ```sh
|
|
4926
|
+
* // $ npm install googleapis
|
|
4927
|
+
* // ```
|
|
4928
|
+
*
|
|
4929
|
+
* const {google} = require('googleapis');
|
|
4930
|
+
* const searchads360 = google.searchads360('v0');
|
|
4931
|
+
*
|
|
4932
|
+
* async function main() {
|
|
4933
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4934
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4935
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
4936
|
+
* });
|
|
4937
|
+
*
|
|
4938
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4939
|
+
* const authClient = await auth.getClient();
|
|
4940
|
+
* google.options({auth: authClient});
|
|
4941
|
+
*
|
|
4942
|
+
* // Do the magic
|
|
4943
|
+
* const res = await searchads360.searchAds360Fields.get({
|
|
4944
|
+
* // Required. The resource name of the field to get.
|
|
4945
|
+
* resourceName: 'searchAds360Fields/my-searchAds360Field',
|
|
4946
|
+
* });
|
|
4947
|
+
* console.log(res.data);
|
|
4948
|
+
*
|
|
4949
|
+
* // Example response
|
|
4950
|
+
* // {
|
|
4951
|
+
* // "attributeResources": [],
|
|
4952
|
+
* // "category": "my_category",
|
|
4953
|
+
* // "dataType": "my_dataType",
|
|
4954
|
+
* // "enumValues": [],
|
|
4955
|
+
* // "filterable": false,
|
|
4956
|
+
* // "isRepeated": false,
|
|
4957
|
+
* // "metrics": [],
|
|
4958
|
+
* // "name": "my_name",
|
|
4959
|
+
* // "resourceName": "my_resourceName",
|
|
4960
|
+
* // "segments": [],
|
|
4961
|
+
* // "selectable": false,
|
|
4962
|
+
* // "selectableWith": [],
|
|
4963
|
+
* // "sortable": false,
|
|
4964
|
+
* // "typeUrl": "my_typeUrl"
|
|
4965
|
+
* // }
|
|
4966
|
+
* }
|
|
4967
|
+
*
|
|
4968
|
+
* main().catch(e => {
|
|
4969
|
+
* console.error(e);
|
|
4970
|
+
* throw e;
|
|
4971
|
+
* });
|
|
4972
|
+
*
|
|
4973
|
+
* ```
|
|
4703
4974
|
*
|
|
4704
4975
|
* @param params - Parameters for request
|
|
4705
4976
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4706
4977
|
* @param callback - Optional callback that handles the response.
|
|
4707
4978
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4708
4979
|
*/
|
|
4709
|
-
get(params: Params$Resource$Searchads360fields$Get, options: StreamMethodOptions):
|
|
4710
|
-
get(params?: Params$Resource$Searchads360fields$Get, options?: MethodOptions):
|
|
4980
|
+
get(params: Params$Resource$Searchads360fields$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4981
|
+
get(params?: Params$Resource$Searchads360fields$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Resources__SearchAds360Field>>;
|
|
4711
4982
|
get(params: Params$Resource$Searchads360fields$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4712
4983
|
get(params: Params$Resource$Searchads360fields$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleAdsSearchads360V0Resources__SearchAds360Field>, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Resources__SearchAds360Field>): void;
|
|
4713
4984
|
get(params: Params$Resource$Searchads360fields$Get, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Resources__SearchAds360Field>): void;
|
|
4714
4985
|
get(callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Resources__SearchAds360Field>): void;
|
|
4715
4986
|
/**
|
|
4716
4987
|
* Returns all fields that match the search [query](/search-ads/reporting/concepts/field-service#use_a_query_to_get_field_details). List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QueryError]() [QuotaError]() [RequestError]()
|
|
4988
|
+
* @example
|
|
4989
|
+
* ```js
|
|
4990
|
+
* // Before running the sample:
|
|
4991
|
+
* // - Enable the API at:
|
|
4992
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4993
|
+
* // - Login into gcloud by running:
|
|
4994
|
+
* // ```sh
|
|
4995
|
+
* // $ gcloud auth application-default login
|
|
4996
|
+
* // ```
|
|
4997
|
+
* // - Install the npm module by running:
|
|
4998
|
+
* // ```sh
|
|
4999
|
+
* // $ npm install googleapis
|
|
5000
|
+
* // ```
|
|
5001
|
+
*
|
|
5002
|
+
* const {google} = require('googleapis');
|
|
5003
|
+
* const searchads360 = google.searchads360('v0');
|
|
5004
|
+
*
|
|
5005
|
+
* async function main() {
|
|
5006
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5007
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5008
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
5009
|
+
* });
|
|
5010
|
+
*
|
|
5011
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5012
|
+
* const authClient = await auth.getClient();
|
|
5013
|
+
* google.options({auth: authClient});
|
|
5014
|
+
*
|
|
5015
|
+
* // Do the magic
|
|
5016
|
+
* const res = await searchads360.searchAds360Fields.search({
|
|
5017
|
+
* // Request body metadata
|
|
5018
|
+
* requestBody: {
|
|
5019
|
+
* // request body parameters
|
|
5020
|
+
* // {
|
|
5021
|
+
* // "pageSize": 0,
|
|
5022
|
+
* // "pageToken": "my_pageToken",
|
|
5023
|
+
* // "query": "my_query"
|
|
5024
|
+
* // }
|
|
5025
|
+
* },
|
|
5026
|
+
* });
|
|
5027
|
+
* console.log(res.data);
|
|
5028
|
+
*
|
|
5029
|
+
* // Example response
|
|
5030
|
+
* // {
|
|
5031
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5032
|
+
* // "results": [],
|
|
5033
|
+
* // "totalResultsCount": "my_totalResultsCount"
|
|
5034
|
+
* // }
|
|
5035
|
+
* }
|
|
5036
|
+
*
|
|
5037
|
+
* main().catch(e => {
|
|
5038
|
+
* console.error(e);
|
|
5039
|
+
* throw e;
|
|
5040
|
+
* });
|
|
5041
|
+
*
|
|
5042
|
+
* ```
|
|
4717
5043
|
*
|
|
4718
5044
|
* @param params - Parameters for request
|
|
4719
5045
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4720
5046
|
* @param callback - Optional callback that handles the response.
|
|
4721
5047
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4722
5048
|
*/
|
|
4723
|
-
search(params: Params$Resource$Searchads360fields$Search, options: StreamMethodOptions):
|
|
4724
|
-
search(params?: Params$Resource$Searchads360fields$Search, options?: MethodOptions):
|
|
5049
|
+
search(params: Params$Resource$Searchads360fields$Search, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5050
|
+
search(params?: Params$Resource$Searchads360fields$Search, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360FieldsResponse>>;
|
|
4725
5051
|
search(params: Params$Resource$Searchads360fields$Search, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4726
5052
|
search(params: Params$Resource$Searchads360fields$Search, options: MethodOptions | BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360FieldsResponse>, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360FieldsResponse>): void;
|
|
4727
5053
|
search(params: Params$Resource$Searchads360fields$Search, callback: BodyResponseCallback<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360FieldsResponse>): void;
|
package/build/v0.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v0.js","sourceRoot":"","sources":["../v0.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;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,eAAe,
|
|
1
|
+
{"version":3,"file":"v0.js","sourceRoot":"","sources":["../v0.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE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AAO,IAAA,oCAAgB,EACrB,UAAU,CACX,CAAC;aACH;QACH,CAAC;KACF;IAjUY,2CAA2B,8BAiUvC,CAAA;AAgBH,CAAC,EAt/KgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAs/K/B"}
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/searchads360",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "searchads360",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"webpack": "webpack"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"googleapis-common": "^
|
|
31
|
+
"googleapis-common": "^8.0.2-rc.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-documenter": "^7.8.10",
|
package/v0.ts
CHANGED
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
Compute,
|
|
24
24
|
UserRefreshClient,
|
|
25
25
|
BaseExternalAccountClient,
|
|
26
|
-
|
|
26
|
+
GaxiosResponseWithHTTP2,
|
|
27
27
|
GoogleConfigurable,
|
|
28
28
|
createAPIRequest,
|
|
29
29
|
MethodOptions,
|
|
@@ -4662,6 +4662,49 @@ export namespace searchads360_v0 {
|
|
|
4662
4662
|
|
|
4663
4663
|
/**
|
|
4664
4664
|
* Returns resource names of customers directly accessible by the user authenticating the call. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
|
|
4665
|
+
* @example
|
|
4666
|
+
* ```js
|
|
4667
|
+
* // Before running the sample:
|
|
4668
|
+
* // - Enable the API at:
|
|
4669
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4670
|
+
* // - Login into gcloud by running:
|
|
4671
|
+
* // ```sh
|
|
4672
|
+
* // $ gcloud auth application-default login
|
|
4673
|
+
* // ```
|
|
4674
|
+
* // - Install the npm module by running:
|
|
4675
|
+
* // ```sh
|
|
4676
|
+
* // $ npm install googleapis
|
|
4677
|
+
* // ```
|
|
4678
|
+
*
|
|
4679
|
+
* const {google} = require('googleapis');
|
|
4680
|
+
* const searchads360 = google.searchads360('v0');
|
|
4681
|
+
*
|
|
4682
|
+
* async function main() {
|
|
4683
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4684
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4685
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
4686
|
+
* });
|
|
4687
|
+
*
|
|
4688
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4689
|
+
* const authClient = await auth.getClient();
|
|
4690
|
+
* google.options({auth: authClient});
|
|
4691
|
+
*
|
|
4692
|
+
* // Do the magic
|
|
4693
|
+
* const res = await searchads360.customers.listAccessibleCustomers({});
|
|
4694
|
+
* console.log(res.data);
|
|
4695
|
+
*
|
|
4696
|
+
* // Example response
|
|
4697
|
+
* // {
|
|
4698
|
+
* // "resourceNames": []
|
|
4699
|
+
* // }
|
|
4700
|
+
* }
|
|
4701
|
+
*
|
|
4702
|
+
* main().catch(e => {
|
|
4703
|
+
* console.error(e);
|
|
4704
|
+
* throw e;
|
|
4705
|
+
* });
|
|
4706
|
+
*
|
|
4707
|
+
* ```
|
|
4665
4708
|
*
|
|
4666
4709
|
* @param params - Parameters for request
|
|
4667
4710
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4671,11 +4714,13 @@ export namespace searchads360_v0 {
|
|
|
4671
4714
|
listAccessibleCustomers(
|
|
4672
4715
|
params: Params$Resource$Customers$Listaccessiblecustomers,
|
|
4673
4716
|
options: StreamMethodOptions
|
|
4674
|
-
):
|
|
4717
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4675
4718
|
listAccessibleCustomers(
|
|
4676
4719
|
params?: Params$Resource$Customers$Listaccessiblecustomers,
|
|
4677
4720
|
options?: MethodOptions
|
|
4678
|
-
):
|
|
4721
|
+
): Promise<
|
|
4722
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__ListAccessibleCustomersResponse>
|
|
4723
|
+
>;
|
|
4679
4724
|
listAccessibleCustomers(
|
|
4680
4725
|
params: Params$Resource$Customers$Listaccessiblecustomers,
|
|
4681
4726
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -4710,8 +4755,10 @@ export namespace searchads360_v0 {
|
|
|
4710
4755
|
| BodyResponseCallback<Readable>
|
|
4711
4756
|
):
|
|
4712
4757
|
| void
|
|
4713
|
-
|
|
|
4714
|
-
|
|
4758
|
+
| Promise<
|
|
4759
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__ListAccessibleCustomersResponse>
|
|
4760
|
+
>
|
|
4761
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4715
4762
|
let params = (paramsOrCallback ||
|
|
4716
4763
|
{}) as Params$Resource$Customers$Listaccessiblecustomers;
|
|
4717
4764
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -4769,6 +4816,61 @@ export namespace searchads360_v0 {
|
|
|
4769
4816
|
|
|
4770
4817
|
/**
|
|
4771
4818
|
* Returns the requested custom column in full detail.
|
|
4819
|
+
* @example
|
|
4820
|
+
* ```js
|
|
4821
|
+
* // Before running the sample:
|
|
4822
|
+
* // - Enable the API at:
|
|
4823
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4824
|
+
* // - Login into gcloud by running:
|
|
4825
|
+
* // ```sh
|
|
4826
|
+
* // $ gcloud auth application-default login
|
|
4827
|
+
* // ```
|
|
4828
|
+
* // - Install the npm module by running:
|
|
4829
|
+
* // ```sh
|
|
4830
|
+
* // $ npm install googleapis
|
|
4831
|
+
* // ```
|
|
4832
|
+
*
|
|
4833
|
+
* const {google} = require('googleapis');
|
|
4834
|
+
* const searchads360 = google.searchads360('v0');
|
|
4835
|
+
*
|
|
4836
|
+
* async function main() {
|
|
4837
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4838
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4839
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
4840
|
+
* });
|
|
4841
|
+
*
|
|
4842
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4843
|
+
* const authClient = await auth.getClient();
|
|
4844
|
+
* google.options({auth: authClient});
|
|
4845
|
+
*
|
|
4846
|
+
* // Do the magic
|
|
4847
|
+
* const res = await searchads360.customers.customColumns.get({
|
|
4848
|
+
* // Required. The resource name of the custom column to fetch.
|
|
4849
|
+
* resourceName: 'customers/my-customer/customColumns/my-customColumn',
|
|
4850
|
+
* });
|
|
4851
|
+
* console.log(res.data);
|
|
4852
|
+
*
|
|
4853
|
+
* // Example response
|
|
4854
|
+
* // {
|
|
4855
|
+
* // "description": "my_description",
|
|
4856
|
+
* // "id": "my_id",
|
|
4857
|
+
* // "name": "my_name",
|
|
4858
|
+
* // "queryable": false,
|
|
4859
|
+
* // "referencedSystemColumns": [],
|
|
4860
|
+
* // "referencesAttributes": false,
|
|
4861
|
+
* // "referencesMetrics": false,
|
|
4862
|
+
* // "renderType": "my_renderType",
|
|
4863
|
+
* // "resourceName": "my_resourceName",
|
|
4864
|
+
* // "valueType": "my_valueType"
|
|
4865
|
+
* // }
|
|
4866
|
+
* }
|
|
4867
|
+
*
|
|
4868
|
+
* main().catch(e => {
|
|
4869
|
+
* console.error(e);
|
|
4870
|
+
* throw e;
|
|
4871
|
+
* });
|
|
4872
|
+
*
|
|
4873
|
+
* ```
|
|
4772
4874
|
*
|
|
4773
4875
|
* @param params - Parameters for request
|
|
4774
4876
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4778,11 +4880,13 @@ export namespace searchads360_v0 {
|
|
|
4778
4880
|
get(
|
|
4779
4881
|
params: Params$Resource$Customers$Customcolumns$Get,
|
|
4780
4882
|
options: StreamMethodOptions
|
|
4781
|
-
):
|
|
4883
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4782
4884
|
get(
|
|
4783
4885
|
params?: Params$Resource$Customers$Customcolumns$Get,
|
|
4784
4886
|
options?: MethodOptions
|
|
4785
|
-
):
|
|
4887
|
+
): Promise<
|
|
4888
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Resources__CustomColumn>
|
|
4889
|
+
>;
|
|
4786
4890
|
get(
|
|
4787
4891
|
params: Params$Resource$Customers$Customcolumns$Get,
|
|
4788
4892
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -4817,8 +4921,10 @@ export namespace searchads360_v0 {
|
|
|
4817
4921
|
| BodyResponseCallback<Readable>
|
|
4818
4922
|
):
|
|
4819
4923
|
| void
|
|
4820
|
-
|
|
|
4821
|
-
|
|
4924
|
+
| Promise<
|
|
4925
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Resources__CustomColumn>
|
|
4926
|
+
>
|
|
4927
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4822
4928
|
let params = (paramsOrCallback ||
|
|
4823
4929
|
{}) as Params$Resource$Customers$Customcolumns$Get;
|
|
4824
4930
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -4866,6 +4972,52 @@ export namespace searchads360_v0 {
|
|
|
4866
4972
|
|
|
4867
4973
|
/**
|
|
4868
4974
|
* Returns all the custom columns associated with the customer in full detail.
|
|
4975
|
+
* @example
|
|
4976
|
+
* ```js
|
|
4977
|
+
* // Before running the sample:
|
|
4978
|
+
* // - Enable the API at:
|
|
4979
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
4980
|
+
* // - Login into gcloud by running:
|
|
4981
|
+
* // ```sh
|
|
4982
|
+
* // $ gcloud auth application-default login
|
|
4983
|
+
* // ```
|
|
4984
|
+
* // - Install the npm module by running:
|
|
4985
|
+
* // ```sh
|
|
4986
|
+
* // $ npm install googleapis
|
|
4987
|
+
* // ```
|
|
4988
|
+
*
|
|
4989
|
+
* const {google} = require('googleapis');
|
|
4990
|
+
* const searchads360 = google.searchads360('v0');
|
|
4991
|
+
*
|
|
4992
|
+
* async function main() {
|
|
4993
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4994
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4995
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
4996
|
+
* });
|
|
4997
|
+
*
|
|
4998
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4999
|
+
* const authClient = await auth.getClient();
|
|
5000
|
+
* google.options({auth: authClient});
|
|
5001
|
+
*
|
|
5002
|
+
* // Do the magic
|
|
5003
|
+
* const res = await searchads360.customers.customColumns.list({
|
|
5004
|
+
* // Required. The ID of the customer to apply the CustomColumn list operation to.
|
|
5005
|
+
* customerId: '[^/]+',
|
|
5006
|
+
* });
|
|
5007
|
+
* console.log(res.data);
|
|
5008
|
+
*
|
|
5009
|
+
* // Example response
|
|
5010
|
+
* // {
|
|
5011
|
+
* // "customColumns": []
|
|
5012
|
+
* // }
|
|
5013
|
+
* }
|
|
5014
|
+
*
|
|
5015
|
+
* main().catch(e => {
|
|
5016
|
+
* console.error(e);
|
|
5017
|
+
* throw e;
|
|
5018
|
+
* });
|
|
5019
|
+
*
|
|
5020
|
+
* ```
|
|
4869
5021
|
*
|
|
4870
5022
|
* @param params - Parameters for request
|
|
4871
5023
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4875,11 +5027,13 @@ export namespace searchads360_v0 {
|
|
|
4875
5027
|
list(
|
|
4876
5028
|
params: Params$Resource$Customers$Customcolumns$List,
|
|
4877
5029
|
options: StreamMethodOptions
|
|
4878
|
-
):
|
|
5030
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4879
5031
|
list(
|
|
4880
5032
|
params?: Params$Resource$Customers$Customcolumns$List,
|
|
4881
5033
|
options?: MethodOptions
|
|
4882
|
-
):
|
|
5034
|
+
): Promise<
|
|
5035
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__ListCustomColumnsResponse>
|
|
5036
|
+
>;
|
|
4883
5037
|
list(
|
|
4884
5038
|
params: Params$Resource$Customers$Customcolumns$List,
|
|
4885
5039
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -4914,8 +5068,10 @@ export namespace searchads360_v0 {
|
|
|
4914
5068
|
| BodyResponseCallback<Readable>
|
|
4915
5069
|
):
|
|
4916
5070
|
| void
|
|
4917
|
-
|
|
|
4918
|
-
|
|
5071
|
+
| Promise<
|
|
5072
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__ListCustomColumnsResponse>
|
|
5073
|
+
>
|
|
5074
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4919
5075
|
let params = (paramsOrCallback ||
|
|
4920
5076
|
{}) as Params$Resource$Customers$Customcolumns$List;
|
|
4921
5077
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -4984,6 +5140,74 @@ export namespace searchads360_v0 {
|
|
|
4984
5140
|
|
|
4985
5141
|
/**
|
|
4986
5142
|
* Returns all rows that match the search query. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QueryError]() [QuotaError]() [RequestError]()
|
|
5143
|
+
* @example
|
|
5144
|
+
* ```js
|
|
5145
|
+
* // Before running the sample:
|
|
5146
|
+
* // - Enable the API at:
|
|
5147
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
5148
|
+
* // - Login into gcloud by running:
|
|
5149
|
+
* // ```sh
|
|
5150
|
+
* // $ gcloud auth application-default login
|
|
5151
|
+
* // ```
|
|
5152
|
+
* // - Install the npm module by running:
|
|
5153
|
+
* // ```sh
|
|
5154
|
+
* // $ npm install googleapis
|
|
5155
|
+
* // ```
|
|
5156
|
+
*
|
|
5157
|
+
* const {google} = require('googleapis');
|
|
5158
|
+
* const searchads360 = google.searchads360('v0');
|
|
5159
|
+
*
|
|
5160
|
+
* async function main() {
|
|
5161
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5162
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5163
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
5164
|
+
* });
|
|
5165
|
+
*
|
|
5166
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5167
|
+
* const authClient = await auth.getClient();
|
|
5168
|
+
* google.options({auth: authClient});
|
|
5169
|
+
*
|
|
5170
|
+
* // Do the magic
|
|
5171
|
+
* const res = await searchads360.customers.searchAds360.search({
|
|
5172
|
+
* // Required. The ID of the customer being queried.
|
|
5173
|
+
* customerId: '[^/]+',
|
|
5174
|
+
*
|
|
5175
|
+
* // Request body metadata
|
|
5176
|
+
* requestBody: {
|
|
5177
|
+
* // request body parameters
|
|
5178
|
+
* // {
|
|
5179
|
+
* // "pageSize": 0,
|
|
5180
|
+
* // "pageToken": "my_pageToken",
|
|
5181
|
+
* // "query": "my_query",
|
|
5182
|
+
* // "returnTotalResultsCount": false,
|
|
5183
|
+
* // "summaryRowSetting": "my_summaryRowSetting",
|
|
5184
|
+
* // "validateOnly": false
|
|
5185
|
+
* // }
|
|
5186
|
+
* },
|
|
5187
|
+
* });
|
|
5188
|
+
* console.log(res.data);
|
|
5189
|
+
*
|
|
5190
|
+
* // Example response
|
|
5191
|
+
* // {
|
|
5192
|
+
* // "conversionCustomDimensionHeaders": [],
|
|
5193
|
+
* // "conversionCustomMetricHeaders": [],
|
|
5194
|
+
* // "customColumnHeaders": [],
|
|
5195
|
+
* // "fieldMask": "my_fieldMask",
|
|
5196
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5197
|
+
* // "rawEventConversionDimensionHeaders": [],
|
|
5198
|
+
* // "rawEventConversionMetricHeaders": [],
|
|
5199
|
+
* // "results": [],
|
|
5200
|
+
* // "summaryRow": {},
|
|
5201
|
+
* // "totalResultsCount": "my_totalResultsCount"
|
|
5202
|
+
* // }
|
|
5203
|
+
* }
|
|
5204
|
+
*
|
|
5205
|
+
* main().catch(e => {
|
|
5206
|
+
* console.error(e);
|
|
5207
|
+
* throw e;
|
|
5208
|
+
* });
|
|
5209
|
+
*
|
|
5210
|
+
* ```
|
|
4987
5211
|
*
|
|
4988
5212
|
* @param params - Parameters for request
|
|
4989
5213
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4993,11 +5217,13 @@ export namespace searchads360_v0 {
|
|
|
4993
5217
|
search(
|
|
4994
5218
|
params: Params$Resource$Customers$Searchads360$Search,
|
|
4995
5219
|
options: StreamMethodOptions
|
|
4996
|
-
):
|
|
5220
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4997
5221
|
search(
|
|
4998
5222
|
params?: Params$Resource$Customers$Searchads360$Search,
|
|
4999
5223
|
options?: MethodOptions
|
|
5000
|
-
):
|
|
5224
|
+
): Promise<
|
|
5225
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360Response>
|
|
5226
|
+
>;
|
|
5001
5227
|
search(
|
|
5002
5228
|
params: Params$Resource$Customers$Searchads360$Search,
|
|
5003
5229
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -5032,8 +5258,10 @@ export namespace searchads360_v0 {
|
|
|
5032
5258
|
| BodyResponseCallback<Readable>
|
|
5033
5259
|
):
|
|
5034
5260
|
| void
|
|
5035
|
-
|
|
|
5036
|
-
|
|
5261
|
+
| Promise<
|
|
5262
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360Response>
|
|
5263
|
+
>
|
|
5264
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5037
5265
|
let params = (paramsOrCallback ||
|
|
5038
5266
|
{}) as Params$Resource$Customers$Searchads360$Search;
|
|
5039
5267
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -5100,6 +5328,65 @@ export namespace searchads360_v0 {
|
|
|
5100
5328
|
|
|
5101
5329
|
/**
|
|
5102
5330
|
* Returns just the requested field. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QuotaError]() [RequestError]()
|
|
5331
|
+
* @example
|
|
5332
|
+
* ```js
|
|
5333
|
+
* // Before running the sample:
|
|
5334
|
+
* // - Enable the API at:
|
|
5335
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
5336
|
+
* // - Login into gcloud by running:
|
|
5337
|
+
* // ```sh
|
|
5338
|
+
* // $ gcloud auth application-default login
|
|
5339
|
+
* // ```
|
|
5340
|
+
* // - Install the npm module by running:
|
|
5341
|
+
* // ```sh
|
|
5342
|
+
* // $ npm install googleapis
|
|
5343
|
+
* // ```
|
|
5344
|
+
*
|
|
5345
|
+
* const {google} = require('googleapis');
|
|
5346
|
+
* const searchads360 = google.searchads360('v0');
|
|
5347
|
+
*
|
|
5348
|
+
* async function main() {
|
|
5349
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5350
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5351
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
5352
|
+
* });
|
|
5353
|
+
*
|
|
5354
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5355
|
+
* const authClient = await auth.getClient();
|
|
5356
|
+
* google.options({auth: authClient});
|
|
5357
|
+
*
|
|
5358
|
+
* // Do the magic
|
|
5359
|
+
* const res = await searchads360.searchAds360Fields.get({
|
|
5360
|
+
* // Required. The resource name of the field to get.
|
|
5361
|
+
* resourceName: 'searchAds360Fields/my-searchAds360Field',
|
|
5362
|
+
* });
|
|
5363
|
+
* console.log(res.data);
|
|
5364
|
+
*
|
|
5365
|
+
* // Example response
|
|
5366
|
+
* // {
|
|
5367
|
+
* // "attributeResources": [],
|
|
5368
|
+
* // "category": "my_category",
|
|
5369
|
+
* // "dataType": "my_dataType",
|
|
5370
|
+
* // "enumValues": [],
|
|
5371
|
+
* // "filterable": false,
|
|
5372
|
+
* // "isRepeated": false,
|
|
5373
|
+
* // "metrics": [],
|
|
5374
|
+
* // "name": "my_name",
|
|
5375
|
+
* // "resourceName": "my_resourceName",
|
|
5376
|
+
* // "segments": [],
|
|
5377
|
+
* // "selectable": false,
|
|
5378
|
+
* // "selectableWith": [],
|
|
5379
|
+
* // "sortable": false,
|
|
5380
|
+
* // "typeUrl": "my_typeUrl"
|
|
5381
|
+
* // }
|
|
5382
|
+
* }
|
|
5383
|
+
*
|
|
5384
|
+
* main().catch(e => {
|
|
5385
|
+
* console.error(e);
|
|
5386
|
+
* throw e;
|
|
5387
|
+
* });
|
|
5388
|
+
*
|
|
5389
|
+
* ```
|
|
5103
5390
|
*
|
|
5104
5391
|
* @param params - Parameters for request
|
|
5105
5392
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5109,11 +5396,13 @@ export namespace searchads360_v0 {
|
|
|
5109
5396
|
get(
|
|
5110
5397
|
params: Params$Resource$Searchads360fields$Get,
|
|
5111
5398
|
options: StreamMethodOptions
|
|
5112
|
-
):
|
|
5399
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5113
5400
|
get(
|
|
5114
5401
|
params?: Params$Resource$Searchads360fields$Get,
|
|
5115
5402
|
options?: MethodOptions
|
|
5116
|
-
):
|
|
5403
|
+
): Promise<
|
|
5404
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Resources__SearchAds360Field>
|
|
5405
|
+
>;
|
|
5117
5406
|
get(
|
|
5118
5407
|
params: Params$Resource$Searchads360fields$Get,
|
|
5119
5408
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -5148,8 +5437,10 @@ export namespace searchads360_v0 {
|
|
|
5148
5437
|
| BodyResponseCallback<Readable>
|
|
5149
5438
|
):
|
|
5150
5439
|
| void
|
|
5151
|
-
|
|
|
5152
|
-
|
|
5440
|
+
| Promise<
|
|
5441
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Resources__SearchAds360Field>
|
|
5442
|
+
>
|
|
5443
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5153
5444
|
let params = (paramsOrCallback ||
|
|
5154
5445
|
{}) as Params$Resource$Searchads360fields$Get;
|
|
5155
5446
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
@@ -5197,6 +5488,61 @@ export namespace searchads360_v0 {
|
|
|
5197
5488
|
|
|
5198
5489
|
/**
|
|
5199
5490
|
* Returns all fields that match the search [query](/search-ads/reporting/concepts/field-service#use_a_query_to_get_field_details). List of thrown errors: [AuthenticationError]() [AuthorizationError]() [HeaderError]() [InternalError]() [QueryError]() [QuotaError]() [RequestError]()
|
|
5491
|
+
* @example
|
|
5492
|
+
* ```js
|
|
5493
|
+
* // Before running the sample:
|
|
5494
|
+
* // - Enable the API at:
|
|
5495
|
+
* // https://console.developers.google.com/apis/api/searchads360.googleapis.com
|
|
5496
|
+
* // - Login into gcloud by running:
|
|
5497
|
+
* // ```sh
|
|
5498
|
+
* // $ gcloud auth application-default login
|
|
5499
|
+
* // ```
|
|
5500
|
+
* // - Install the npm module by running:
|
|
5501
|
+
* // ```sh
|
|
5502
|
+
* // $ npm install googleapis
|
|
5503
|
+
* // ```
|
|
5504
|
+
*
|
|
5505
|
+
* const {google} = require('googleapis');
|
|
5506
|
+
* const searchads360 = google.searchads360('v0');
|
|
5507
|
+
*
|
|
5508
|
+
* async function main() {
|
|
5509
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5510
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5511
|
+
* scopes: ['https://www.googleapis.com/auth/doubleclicksearch'],
|
|
5512
|
+
* });
|
|
5513
|
+
*
|
|
5514
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5515
|
+
* const authClient = await auth.getClient();
|
|
5516
|
+
* google.options({auth: authClient});
|
|
5517
|
+
*
|
|
5518
|
+
* // Do the magic
|
|
5519
|
+
* const res = await searchads360.searchAds360Fields.search({
|
|
5520
|
+
* // Request body metadata
|
|
5521
|
+
* requestBody: {
|
|
5522
|
+
* // request body parameters
|
|
5523
|
+
* // {
|
|
5524
|
+
* // "pageSize": 0,
|
|
5525
|
+
* // "pageToken": "my_pageToken",
|
|
5526
|
+
* // "query": "my_query"
|
|
5527
|
+
* // }
|
|
5528
|
+
* },
|
|
5529
|
+
* });
|
|
5530
|
+
* console.log(res.data);
|
|
5531
|
+
*
|
|
5532
|
+
* // Example response
|
|
5533
|
+
* // {
|
|
5534
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
5535
|
+
* // "results": [],
|
|
5536
|
+
* // "totalResultsCount": "my_totalResultsCount"
|
|
5537
|
+
* // }
|
|
5538
|
+
* }
|
|
5539
|
+
*
|
|
5540
|
+
* main().catch(e => {
|
|
5541
|
+
* console.error(e);
|
|
5542
|
+
* throw e;
|
|
5543
|
+
* });
|
|
5544
|
+
*
|
|
5545
|
+
* ```
|
|
5200
5546
|
*
|
|
5201
5547
|
* @param params - Parameters for request
|
|
5202
5548
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5206,11 +5552,13 @@ export namespace searchads360_v0 {
|
|
|
5206
5552
|
search(
|
|
5207
5553
|
params: Params$Resource$Searchads360fields$Search,
|
|
5208
5554
|
options: StreamMethodOptions
|
|
5209
|
-
):
|
|
5555
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
5210
5556
|
search(
|
|
5211
5557
|
params?: Params$Resource$Searchads360fields$Search,
|
|
5212
5558
|
options?: MethodOptions
|
|
5213
|
-
):
|
|
5559
|
+
): Promise<
|
|
5560
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360FieldsResponse>
|
|
5561
|
+
>;
|
|
5214
5562
|
search(
|
|
5215
5563
|
params: Params$Resource$Searchads360fields$Search,
|
|
5216
5564
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
@@ -5245,8 +5593,10 @@ export namespace searchads360_v0 {
|
|
|
5245
5593
|
| BodyResponseCallback<Readable>
|
|
5246
5594
|
):
|
|
5247
5595
|
| void
|
|
5248
|
-
|
|
|
5249
|
-
|
|
5596
|
+
| Promise<
|
|
5597
|
+
GaxiosResponseWithHTTP2<Schema$GoogleAdsSearchads360V0Services__SearchSearchAds360FieldsResponse>
|
|
5598
|
+
>
|
|
5599
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
5250
5600
|
let params = (paramsOrCallback ||
|
|
5251
5601
|
{}) as Params$Resource$Searchads360fields$Search;
|
|
5252
5602
|
let options = (optionsOrCallback || {}) as MethodOptions;
|