@google-ads/admanager 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/LICENSE +202 -0
- package/README.md +236 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +81 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +230 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +195 -0
- package/build/protos/google/ads/admanager/v1/admanager_error.proto +52 -0
- package/build/protos/google/ads/admanager/v1/applied_label.proto +41 -0
- package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +97 -0
- package/build/protos/google/ads/admanager/v1/company_messages.proto +122 -0
- package/build/protos/google/ads/admanager/v1/company_service.proto +126 -0
- package/build/protos/google/ads/admanager/v1/company_type_enum.proto +51 -0
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +49 -0
- package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +110 -0
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +87 -0
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +127 -0
- package/build/protos/google/ads/admanager/v1/custom_field_value.proto +62 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +76 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +69 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +90 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +66 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +132 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +64 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +252 -0
- package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +41 -0
- package/build/protos/google/ads/admanager/v1/frequency_cap.proto +39 -0
- package/build/protos/google/ads/admanager/v1/label_messages.proto +42 -0
- package/build/protos/google/ads/admanager/v1/network_messages.proto +79 -0
- package/build/protos/google/ads/admanager/v1/network_service.proto +72 -0
- package/build/protos/google/ads/admanager/v1/order_enums.proto +59 -0
- package/build/protos/google/ads/admanager/v1/order_messages.proto +209 -0
- package/build/protos/google/ads/admanager/v1/order_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/placement_enums.proto +44 -0
- package/build/protos/google/ads/admanager/v1/placement_messages.proto +77 -0
- package/build/protos/google/ads/admanager/v1/placement_service.proto +126 -0
- package/build/protos/google/ads/admanager/v1/report_service.proto +3526 -0
- package/build/protos/google/ads/admanager/v1/role_enums.proto +41 -0
- package/build/protos/google/ads/admanager/v1/role_messages.proto +59 -0
- package/build/protos/google/ads/admanager/v1/role_service.proto +122 -0
- package/build/protos/google/ads/admanager/v1/size.proto +47 -0
- package/build/protos/google/ads/admanager/v1/size_type_enum.proto +62 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +70 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +51 -0
- package/build/protos/google/ads/admanager/v1/team_messages.proto +46 -0
- package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +59 -0
- package/build/protos/google/ads/admanager/v1/user_messages.proto +78 -0
- package/build/protos/google/ads/admanager/v1/user_service.proto +57 -0
- package/build/protos/protos.d.ts +23491 -0
- package/build/protos/protos.js +69798 -0
- package/build/protos/protos.json +7273 -0
- package/build/src/index.d.ts +47 -0
- package/build/src/index.js +67 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v1/ad_unit_service_client.d.ts +794 -0
- package/build/src/v1/ad_unit_service_client.js +1136 -0
- package/build/src/v1/ad_unit_service_client.js.map +1 -0
- package/build/src/v1/ad_unit_service_client_config.json +38 -0
- package/build/src/v1/company_service_client.d.ts +663 -0
- package/build/src/v1/company_service_client.js +999 -0
- package/build/src/v1/company_service_client.js.map +1 -0
- package/build/src/v1/company_service_client_config.json +34 -0
- package/build/src/v1/custom_field_service_client.d.ts +663 -0
- package/build/src/v1/custom_field_service_client.js +1002 -0
- package/build/src/v1/custom_field_service_client.js.map +1 -0
- package/build/src/v1/custom_field_service_client_config.json +34 -0
- package/build/src/v1/custom_targeting_key_service_client.d.ts +664 -0
- package/build/src/v1/custom_targeting_key_service_client.js +1004 -0
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -0
- package/build/src/v1/custom_targeting_key_service_client_config.json +34 -0
- package/build/src/v1/custom_targeting_value_service_client.d.ts +673 -0
- package/build/src/v1/custom_targeting_value_service_client.js +1010 -0
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -0
- package/build/src/v1/custom_targeting_value_service_client_config.json +34 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +782 -0
- package/build/src/v1/entity_signals_mapping_service_client.js +1096 -0
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -0
- package/build/src/v1/entity_signals_mapping_service_client_config.json +50 -0
- package/build/src/v1/index.d.ts +13 -0
- package/build/src/v1/index.js +47 -0
- package/build/src/v1/index.js.map +1 -0
- package/build/src/v1/network_service_client.d.ts +552 -0
- package/build/src/v1/network_service_client.js +877 -0
- package/build/src/v1/network_service_client.js.map +1 -0
- package/build/src/v1/network_service_client_config.json +34 -0
- package/build/src/v1/order_service_client.d.ts +668 -0
- package/build/src/v1/order_service_client.js +999 -0
- package/build/src/v1/order_service_client.js.map +1 -0
- package/build/src/v1/order_service_client_config.json +48 -0
- package/build/src/v1/placement_service_client.d.ts +663 -0
- package/build/src/v1/placement_service_client.js +999 -0
- package/build/src/v1/placement_service_client.js.map +1 -0
- package/build/src/v1/placement_service_client_config.json +34 -0
- package/build/src/v1/report_service_client.d.ts +975 -0
- package/build/src/v1/report_service_client.js +1352 -0
- package/build/src/v1/report_service_client.js.map +1 -0
- package/build/src/v1/report_service_client_config.json +50 -0
- package/build/src/v1/role_service_client.d.ts +660 -0
- package/build/src/v1/role_service_client.js +997 -0
- package/build/src/v1/role_service_client.js.map +1 -0
- package/build/src/v1/role_service_client_config.json +34 -0
- package/build/src/v1/taxonomy_category_service_client.d.ts +663 -0
- package/build/src/v1/taxonomy_category_service_client.js +1003 -0
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -0
- package/build/src/v1/taxonomy_category_service_client_config.json +34 -0
- package/build/src/v1/user_service_client.d.ts +534 -0
- package/build/src/v1/user_service_client.js +861 -0
- package/build/src/v1/user_service_client.js.map +1 -0
- package/build/src/v1/user_service_client_config.json +30 -0
- package/package.json +70 -0
|
@@ -0,0 +1,975 @@
|
|
|
1
|
+
import type * as gax from 'google-gax';
|
|
2
|
+
import type { Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback } from 'google-gax';
|
|
3
|
+
import { Transform } from 'stream';
|
|
4
|
+
import * as protos from '../../protos/protos';
|
|
5
|
+
/**
|
|
6
|
+
* Provides methods for interacting with reports.
|
|
7
|
+
* @class
|
|
8
|
+
* @memberof v1
|
|
9
|
+
*/
|
|
10
|
+
export declare class ReportServiceClient {
|
|
11
|
+
private _terminated;
|
|
12
|
+
private _opts;
|
|
13
|
+
private _providedCustomServicePath;
|
|
14
|
+
private _gaxModule;
|
|
15
|
+
private _gaxGrpc;
|
|
16
|
+
private _protos;
|
|
17
|
+
private _defaults;
|
|
18
|
+
private _universeDomain;
|
|
19
|
+
private _servicePath;
|
|
20
|
+
auth: gax.GoogleAuth;
|
|
21
|
+
descriptors: Descriptors;
|
|
22
|
+
warn: (code: string, message: string, warnType?: string) => void;
|
|
23
|
+
innerApiCalls: {
|
|
24
|
+
[name: string]: Function;
|
|
25
|
+
};
|
|
26
|
+
pathTemplates: {
|
|
27
|
+
[name: string]: gax.PathTemplate;
|
|
28
|
+
};
|
|
29
|
+
operationsClient: gax.OperationsClient;
|
|
30
|
+
reportServiceStub?: Promise<{
|
|
31
|
+
[name: string]: Function;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Construct an instance of ReportServiceClient.
|
|
35
|
+
*
|
|
36
|
+
* @param {object} [options] - The configuration object.
|
|
37
|
+
* The options accepted by the constructor are described in detail
|
|
38
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
39
|
+
* The common options are:
|
|
40
|
+
* @param {object} [options.credentials] - Credentials object.
|
|
41
|
+
* @param {string} [options.credentials.client_email]
|
|
42
|
+
* @param {string} [options.credentials.private_key]
|
|
43
|
+
* @param {string} [options.email] - Account email address. Required when
|
|
44
|
+
* using a .pem or .p12 keyFilename.
|
|
45
|
+
* @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
|
|
46
|
+
* .p12 key downloaded from the Google Developers Console. If you provide
|
|
47
|
+
* a path to a JSON file, the projectId option below is not necessary.
|
|
48
|
+
* NOTE: .pem and .p12 require you to specify options.email as well.
|
|
49
|
+
* @param {number} [options.port] - The port on which to connect to
|
|
50
|
+
* the remote host.
|
|
51
|
+
* @param {string} [options.projectId] - The project ID from the Google
|
|
52
|
+
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
|
|
53
|
+
* the environment variable GCLOUD_PROJECT for your project ID. If your
|
|
54
|
+
* app is running in an environment which supports
|
|
55
|
+
* {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
|
|
56
|
+
* your project ID will be detected automatically.
|
|
57
|
+
* @param {string} [options.apiEndpoint] - The domain name of the
|
|
58
|
+
* API remote host.
|
|
59
|
+
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
60
|
+
* Follows the structure of {@link gapicConfig}.
|
|
61
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
62
|
+
* For more information, please check the
|
|
63
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
64
|
+
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
65
|
+
* need to avoid loading the default gRPC version and want to use the fallback
|
|
66
|
+
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
67
|
+
* ```
|
|
68
|
+
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
69
|
+
* const client = new ReportServiceClient({fallback: true}, gax);
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
73
|
+
/**
|
|
74
|
+
* Initialize the client.
|
|
75
|
+
* Performs asynchronous operations (such as authentication) and prepares the client.
|
|
76
|
+
* This function will be called automatically when any class method is called for the
|
|
77
|
+
* first time, but if you need to initialize it before calling an actual method,
|
|
78
|
+
* feel free to call initialize() directly.
|
|
79
|
+
*
|
|
80
|
+
* You can await on this method if you want to make sure the client is initialized.
|
|
81
|
+
*
|
|
82
|
+
* @returns {Promise} A promise that resolves to an authenticated service stub.
|
|
83
|
+
*/
|
|
84
|
+
initialize(): Promise<{
|
|
85
|
+
[name: string]: Function;
|
|
86
|
+
}>;
|
|
87
|
+
/**
|
|
88
|
+
* The DNS address for this API service.
|
|
89
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
90
|
+
* @returns {string} The DNS address for this service.
|
|
91
|
+
*/
|
|
92
|
+
static get servicePath(): string;
|
|
93
|
+
/**
|
|
94
|
+
* The DNS address for this API service - same as servicePath.
|
|
95
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
96
|
+
* @returns {string} The DNS address for this service.
|
|
97
|
+
*/
|
|
98
|
+
static get apiEndpoint(): string;
|
|
99
|
+
/**
|
|
100
|
+
* The DNS address for this API service.
|
|
101
|
+
* @returns {string} The DNS address for this service.
|
|
102
|
+
*/
|
|
103
|
+
get apiEndpoint(): string;
|
|
104
|
+
get universeDomain(): string;
|
|
105
|
+
/**
|
|
106
|
+
* The port for this API service.
|
|
107
|
+
* @returns {number} The default port for this service.
|
|
108
|
+
*/
|
|
109
|
+
static get port(): number;
|
|
110
|
+
/**
|
|
111
|
+
* The scopes needed to make gRPC calls for every method defined
|
|
112
|
+
* in this service.
|
|
113
|
+
* @returns {string[]} List of default scopes.
|
|
114
|
+
*/
|
|
115
|
+
static get scopes(): never[];
|
|
116
|
+
getProjectId(): Promise<string>;
|
|
117
|
+
getProjectId(callback: Callback<string, undefined, undefined>): void;
|
|
118
|
+
/**
|
|
119
|
+
* API to retrieve a `Report` object.
|
|
120
|
+
*
|
|
121
|
+
* @param {Object} request
|
|
122
|
+
* The request object that will be sent.
|
|
123
|
+
* @param {string} request.name
|
|
124
|
+
* Required. The resource name of the report.
|
|
125
|
+
* Format: `networks/{network_code}/reports/{report_id}`
|
|
126
|
+
* @param {object} [options]
|
|
127
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
128
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
129
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.Report|Report}.
|
|
130
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
131
|
+
* for more details and examples.
|
|
132
|
+
* @example <caption>include:samples/generated/v1/report_service.get_report.js</caption>
|
|
133
|
+
* region_tag:admanager_v1_generated_ReportService_GetReport_async
|
|
134
|
+
*/
|
|
135
|
+
getReport(request?: protos.google.ads.admanager.v1.IGetReportRequest, options?: CallOptions): Promise<[
|
|
136
|
+
protos.google.ads.admanager.v1.IReport,
|
|
137
|
+
protos.google.ads.admanager.v1.IGetReportRequest | undefined,
|
|
138
|
+
{} | undefined
|
|
139
|
+
]>;
|
|
140
|
+
getReport(request: protos.google.ads.admanager.v1.IGetReportRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IReport, protos.google.ads.admanager.v1.IGetReportRequest | null | undefined, {} | null | undefined>): void;
|
|
141
|
+
getReport(request: protos.google.ads.admanager.v1.IGetReportRequest, callback: Callback<protos.google.ads.admanager.v1.IReport, protos.google.ads.admanager.v1.IGetReportRequest | null | undefined, {} | null | undefined>): void;
|
|
142
|
+
/**
|
|
143
|
+
* API to create a `Report` object.
|
|
144
|
+
*
|
|
145
|
+
* @param {Object} request
|
|
146
|
+
* The request object that will be sent.
|
|
147
|
+
* @param {string} request.parent
|
|
148
|
+
* Required. The parent resource where this `Report` will be created.
|
|
149
|
+
* Format: `networks/{network_code}`
|
|
150
|
+
* @param {google.ads.admanager.v1.Report} request.report
|
|
151
|
+
* Required. The `Report` to create.
|
|
152
|
+
* @param {object} [options]
|
|
153
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
154
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
155
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.Report|Report}.
|
|
156
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
157
|
+
* for more details and examples.
|
|
158
|
+
* @example <caption>include:samples/generated/v1/report_service.create_report.js</caption>
|
|
159
|
+
* region_tag:admanager_v1_generated_ReportService_CreateReport_async
|
|
160
|
+
*/
|
|
161
|
+
createReport(request?: protos.google.ads.admanager.v1.ICreateReportRequest, options?: CallOptions): Promise<[
|
|
162
|
+
protos.google.ads.admanager.v1.IReport,
|
|
163
|
+
protos.google.ads.admanager.v1.ICreateReportRequest | undefined,
|
|
164
|
+
{} | undefined
|
|
165
|
+
]>;
|
|
166
|
+
createReport(request: protos.google.ads.admanager.v1.ICreateReportRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IReport, protos.google.ads.admanager.v1.ICreateReportRequest | null | undefined, {} | null | undefined>): void;
|
|
167
|
+
createReport(request: protos.google.ads.admanager.v1.ICreateReportRequest, callback: Callback<protos.google.ads.admanager.v1.IReport, protos.google.ads.admanager.v1.ICreateReportRequest | null | undefined, {} | null | undefined>): void;
|
|
168
|
+
/**
|
|
169
|
+
* API to update a `Report` object.
|
|
170
|
+
*
|
|
171
|
+
* @param {Object} request
|
|
172
|
+
* The request object that will be sent.
|
|
173
|
+
* @param {google.ads.admanager.v1.Report} request.report
|
|
174
|
+
* Required. The `Report` to update.
|
|
175
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
176
|
+
* Required. The list of fields to update.
|
|
177
|
+
* @param {object} [options]
|
|
178
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
179
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
180
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.Report|Report}.
|
|
181
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
182
|
+
* for more details and examples.
|
|
183
|
+
* @example <caption>include:samples/generated/v1/report_service.update_report.js</caption>
|
|
184
|
+
* region_tag:admanager_v1_generated_ReportService_UpdateReport_async
|
|
185
|
+
*/
|
|
186
|
+
updateReport(request?: protos.google.ads.admanager.v1.IUpdateReportRequest, options?: CallOptions): Promise<[
|
|
187
|
+
protos.google.ads.admanager.v1.IReport,
|
|
188
|
+
protos.google.ads.admanager.v1.IUpdateReportRequest | undefined,
|
|
189
|
+
{} | undefined
|
|
190
|
+
]>;
|
|
191
|
+
updateReport(request: protos.google.ads.admanager.v1.IUpdateReportRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IReport, protos.google.ads.admanager.v1.IUpdateReportRequest | null | undefined, {} | null | undefined>): void;
|
|
192
|
+
updateReport(request: protos.google.ads.admanager.v1.IUpdateReportRequest, callback: Callback<protos.google.ads.admanager.v1.IReport, protos.google.ads.admanager.v1.IUpdateReportRequest | null | undefined, {} | null | undefined>): void;
|
|
193
|
+
/**
|
|
194
|
+
* Initiates the execution of an existing report asynchronously. Users can
|
|
195
|
+
* get the report by polling this operation via
|
|
196
|
+
* `OperationsService.GetOperation`.
|
|
197
|
+
* Poll every 5 seconds initially, with an exponential
|
|
198
|
+
* backoff. Once a report is complete, the operation will contain a
|
|
199
|
+
* `RunReportResponse` in its response field containing a report_result that
|
|
200
|
+
* can be passed to the `FetchReportResultRows` method to retrieve the report
|
|
201
|
+
* data.
|
|
202
|
+
*
|
|
203
|
+
* @param {Object} request
|
|
204
|
+
* The request object that will be sent.
|
|
205
|
+
* @param {string} request.name
|
|
206
|
+
* Required. The report to run.
|
|
207
|
+
* Format: `networks/{network_code}/reports/{report_id}`
|
|
208
|
+
* @param {object} [options]
|
|
209
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
210
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
211
|
+
* The first element of the array is an object representing
|
|
212
|
+
* a long running operation. Its `promise()` method returns a promise
|
|
213
|
+
* you can `await` for.
|
|
214
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
215
|
+
* for more details and examples.
|
|
216
|
+
* @example <caption>include:samples/generated/v1/report_service.run_report.js</caption>
|
|
217
|
+
* region_tag:admanager_v1_generated_ReportService_RunReport_async
|
|
218
|
+
*/
|
|
219
|
+
runReport(request?: protos.google.ads.admanager.v1.IRunReportRequest, options?: CallOptions): Promise<[
|
|
220
|
+
LROperation<protos.google.ads.admanager.v1.IRunReportResponse, protos.google.ads.admanager.v1.IRunReportMetadata>,
|
|
221
|
+
protos.google.longrunning.IOperation | undefined,
|
|
222
|
+
{} | undefined
|
|
223
|
+
]>;
|
|
224
|
+
runReport(request: protos.google.ads.admanager.v1.IRunReportRequest, options: CallOptions, callback: Callback<LROperation<protos.google.ads.admanager.v1.IRunReportResponse, protos.google.ads.admanager.v1.IRunReportMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
225
|
+
runReport(request: protos.google.ads.admanager.v1.IRunReportRequest, callback: Callback<LROperation<protos.google.ads.admanager.v1.IRunReportResponse, protos.google.ads.admanager.v1.IRunReportMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
226
|
+
/**
|
|
227
|
+
* Check the status of the long running operation returned by `runReport()`.
|
|
228
|
+
* @param {String} name
|
|
229
|
+
* The operation name that will be passed.
|
|
230
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
231
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
232
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
233
|
+
* for more details and examples.
|
|
234
|
+
* @example <caption>include:samples/generated/v1/report_service.run_report.js</caption>
|
|
235
|
+
* region_tag:admanager_v1_generated_ReportService_RunReport_async
|
|
236
|
+
*/
|
|
237
|
+
checkRunReportProgress(name: string): Promise<LROperation<protos.google.ads.admanager.v1.RunReportResponse, protos.google.ads.admanager.v1.RunReportMetadata>>;
|
|
238
|
+
/**
|
|
239
|
+
* API to retrieve a list of `Report` objects.
|
|
240
|
+
*
|
|
241
|
+
* @param {Object} request
|
|
242
|
+
* The request object that will be sent.
|
|
243
|
+
* @param {string} request.parent
|
|
244
|
+
* Required. The parent, which owns this collection of reports.
|
|
245
|
+
* Format: `networks/{network_code}`
|
|
246
|
+
* @param {number} [request.pageSize]
|
|
247
|
+
* Optional. The maximum number of `Reports` to return. The service may return
|
|
248
|
+
* fewer than this value. If unspecified, at most 50 `Reports` will be
|
|
249
|
+
* returned. The maximum value is 1000; values above 1000 will be coerced to
|
|
250
|
+
* 1000.
|
|
251
|
+
* @param {string} [request.pageToken]
|
|
252
|
+
* Optional. A page token, received from a previous `ListReports` call.
|
|
253
|
+
* Provide this to retrieve the subsequent page.
|
|
254
|
+
*
|
|
255
|
+
* When paginating, all other parameters provided to `ListReports` must
|
|
256
|
+
* match the call that provided the page token.
|
|
257
|
+
* @param {string} [request.filter]
|
|
258
|
+
* Optional. Expression to filter the response.
|
|
259
|
+
* See syntax details at
|
|
260
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
261
|
+
* @param {string} [request.orderBy]
|
|
262
|
+
* Optional. Expression to specify sorting order.
|
|
263
|
+
* See syntax details at
|
|
264
|
+
* https://developers.google.com/ad-manager/api/beta/filters#order
|
|
265
|
+
* @param {number} [request.skip]
|
|
266
|
+
* Optional. Number of individual resources to skip while paginating.
|
|
267
|
+
* @param {object} [options]
|
|
268
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
269
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
270
|
+
* The first element of the array is Array of {@link protos.google.ads.admanager.v1.Report|Report}.
|
|
271
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
272
|
+
* times as needed and will merge results from all the pages into this array.
|
|
273
|
+
* Note that it can affect your quota.
|
|
274
|
+
* We recommend using `listReportsAsync()`
|
|
275
|
+
* method described below for async iteration which you can stop as needed.
|
|
276
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
277
|
+
* for more details and examples.
|
|
278
|
+
*/
|
|
279
|
+
listReports(request?: protos.google.ads.admanager.v1.IListReportsRequest, options?: CallOptions): Promise<[
|
|
280
|
+
protos.google.ads.admanager.v1.IReport[],
|
|
281
|
+
protos.google.ads.admanager.v1.IListReportsRequest | null,
|
|
282
|
+
protos.google.ads.admanager.v1.IListReportsResponse
|
|
283
|
+
]>;
|
|
284
|
+
listReports(request: protos.google.ads.admanager.v1.IListReportsRequest, options: CallOptions, callback: PaginationCallback<protos.google.ads.admanager.v1.IListReportsRequest, protos.google.ads.admanager.v1.IListReportsResponse | null | undefined, protos.google.ads.admanager.v1.IReport>): void;
|
|
285
|
+
listReports(request: protos.google.ads.admanager.v1.IListReportsRequest, callback: PaginationCallback<protos.google.ads.admanager.v1.IListReportsRequest, protos.google.ads.admanager.v1.IListReportsResponse | null | undefined, protos.google.ads.admanager.v1.IReport>): void;
|
|
286
|
+
/**
|
|
287
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
288
|
+
* @param {Object} request
|
|
289
|
+
* The request object that will be sent.
|
|
290
|
+
* @param {string} request.parent
|
|
291
|
+
* Required. The parent, which owns this collection of reports.
|
|
292
|
+
* Format: `networks/{network_code}`
|
|
293
|
+
* @param {number} [request.pageSize]
|
|
294
|
+
* Optional. The maximum number of `Reports` to return. The service may return
|
|
295
|
+
* fewer than this value. If unspecified, at most 50 `Reports` will be
|
|
296
|
+
* returned. The maximum value is 1000; values above 1000 will be coerced to
|
|
297
|
+
* 1000.
|
|
298
|
+
* @param {string} [request.pageToken]
|
|
299
|
+
* Optional. A page token, received from a previous `ListReports` call.
|
|
300
|
+
* Provide this to retrieve the subsequent page.
|
|
301
|
+
*
|
|
302
|
+
* When paginating, all other parameters provided to `ListReports` must
|
|
303
|
+
* match the call that provided the page token.
|
|
304
|
+
* @param {string} [request.filter]
|
|
305
|
+
* Optional. Expression to filter the response.
|
|
306
|
+
* See syntax details at
|
|
307
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
308
|
+
* @param {string} [request.orderBy]
|
|
309
|
+
* Optional. Expression to specify sorting order.
|
|
310
|
+
* See syntax details at
|
|
311
|
+
* https://developers.google.com/ad-manager/api/beta/filters#order
|
|
312
|
+
* @param {number} [request.skip]
|
|
313
|
+
* Optional. Number of individual resources to skip while paginating.
|
|
314
|
+
* @param {object} [options]
|
|
315
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
316
|
+
* @returns {Stream}
|
|
317
|
+
* An object stream which emits an object representing {@link protos.google.ads.admanager.v1.Report|Report} on 'data' event.
|
|
318
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
319
|
+
* times as needed. Note that it can affect your quota.
|
|
320
|
+
* We recommend using `listReportsAsync()`
|
|
321
|
+
* method described below for async iteration which you can stop as needed.
|
|
322
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
323
|
+
* for more details and examples.
|
|
324
|
+
*/
|
|
325
|
+
listReportsStream(request?: protos.google.ads.admanager.v1.IListReportsRequest, options?: CallOptions): Transform;
|
|
326
|
+
/**
|
|
327
|
+
* Equivalent to `listReports`, but returns an iterable object.
|
|
328
|
+
*
|
|
329
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
330
|
+
* @param {Object} request
|
|
331
|
+
* The request object that will be sent.
|
|
332
|
+
* @param {string} request.parent
|
|
333
|
+
* Required. The parent, which owns this collection of reports.
|
|
334
|
+
* Format: `networks/{network_code}`
|
|
335
|
+
* @param {number} [request.pageSize]
|
|
336
|
+
* Optional. The maximum number of `Reports` to return. The service may return
|
|
337
|
+
* fewer than this value. If unspecified, at most 50 `Reports` will be
|
|
338
|
+
* returned. The maximum value is 1000; values above 1000 will be coerced to
|
|
339
|
+
* 1000.
|
|
340
|
+
* @param {string} [request.pageToken]
|
|
341
|
+
* Optional. A page token, received from a previous `ListReports` call.
|
|
342
|
+
* Provide this to retrieve the subsequent page.
|
|
343
|
+
*
|
|
344
|
+
* When paginating, all other parameters provided to `ListReports` must
|
|
345
|
+
* match the call that provided the page token.
|
|
346
|
+
* @param {string} [request.filter]
|
|
347
|
+
* Optional. Expression to filter the response.
|
|
348
|
+
* See syntax details at
|
|
349
|
+
* https://developers.google.com/ad-manager/api/beta/filters
|
|
350
|
+
* @param {string} [request.orderBy]
|
|
351
|
+
* Optional. Expression to specify sorting order.
|
|
352
|
+
* See syntax details at
|
|
353
|
+
* https://developers.google.com/ad-manager/api/beta/filters#order
|
|
354
|
+
* @param {number} [request.skip]
|
|
355
|
+
* Optional. Number of individual resources to skip while paginating.
|
|
356
|
+
* @param {object} [options]
|
|
357
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
358
|
+
* @returns {Object}
|
|
359
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
360
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
361
|
+
* {@link protos.google.ads.admanager.v1.Report|Report}. The API will be called under the hood as needed, once per the page,
|
|
362
|
+
* so you can stop the iteration when you don't need more results.
|
|
363
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
364
|
+
* for more details and examples.
|
|
365
|
+
* @example <caption>include:samples/generated/v1/report_service.list_reports.js</caption>
|
|
366
|
+
* region_tag:admanager_v1_generated_ReportService_ListReports_async
|
|
367
|
+
*/
|
|
368
|
+
listReportsAsync(request?: protos.google.ads.admanager.v1.IListReportsRequest, options?: CallOptions): AsyncIterable<protos.google.ads.admanager.v1.IReport>;
|
|
369
|
+
/**
|
|
370
|
+
* Returns the result rows from a completed report.
|
|
371
|
+
* The caller must have previously called `RunReport` and waited for that
|
|
372
|
+
* operation to complete. The rows will be returned according to the order
|
|
373
|
+
* specified by the `sorts` member of the report definition.
|
|
374
|
+
*
|
|
375
|
+
* @param {Object} request
|
|
376
|
+
* The request object that will be sent.
|
|
377
|
+
* @param {string} request.name
|
|
378
|
+
* The report result being fetched.
|
|
379
|
+
* Format:
|
|
380
|
+
* `networks/{network_code}/reports/{report_id}/results/{report_result_id}`
|
|
381
|
+
* @param {number} [request.pageSize]
|
|
382
|
+
* Optional. The maximum number of rows to return. The service may return
|
|
383
|
+
* fewer than this value. If unspecified, at most 1,000 rows will be returned.
|
|
384
|
+
* The maximum value is 10,000; values above 10,000 will be reduced to 10,000.
|
|
385
|
+
* @param {string} [request.pageToken]
|
|
386
|
+
* Optional. A page token, received from a previous `FetchReportResultRows`
|
|
387
|
+
* call. Provide this to retrieve the second and subsequent batches of rows.
|
|
388
|
+
* @param {object} [options]
|
|
389
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
390
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
391
|
+
* The first element of the array is Array of {@link protos.google.ads.admanager.v1.Report.DataTable.Row|Row}.
|
|
392
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
393
|
+
* times as needed and will merge results from all the pages into this array.
|
|
394
|
+
* Note that it can affect your quota.
|
|
395
|
+
* We recommend using `fetchReportResultRowsAsync()`
|
|
396
|
+
* method described below for async iteration which you can stop as needed.
|
|
397
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
398
|
+
* for more details and examples.
|
|
399
|
+
*/
|
|
400
|
+
fetchReportResultRows(request?: protos.google.ads.admanager.v1.IFetchReportResultRowsRequest, options?: CallOptions): Promise<[
|
|
401
|
+
protos.google.ads.admanager.v1.Report.DataTable.IRow[],
|
|
402
|
+
protos.google.ads.admanager.v1.IFetchReportResultRowsRequest | null,
|
|
403
|
+
protos.google.ads.admanager.v1.IFetchReportResultRowsResponse
|
|
404
|
+
]>;
|
|
405
|
+
fetchReportResultRows(request: protos.google.ads.admanager.v1.IFetchReportResultRowsRequest, options: CallOptions, callback: PaginationCallback<protos.google.ads.admanager.v1.IFetchReportResultRowsRequest, protos.google.ads.admanager.v1.IFetchReportResultRowsResponse | null | undefined, protos.google.ads.admanager.v1.Report.DataTable.IRow>): void;
|
|
406
|
+
fetchReportResultRows(request: protos.google.ads.admanager.v1.IFetchReportResultRowsRequest, callback: PaginationCallback<protos.google.ads.admanager.v1.IFetchReportResultRowsRequest, protos.google.ads.admanager.v1.IFetchReportResultRowsResponse | null | undefined, protos.google.ads.admanager.v1.Report.DataTable.IRow>): void;
|
|
407
|
+
/**
|
|
408
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
409
|
+
* @param {Object} request
|
|
410
|
+
* The request object that will be sent.
|
|
411
|
+
* @param {string} request.name
|
|
412
|
+
* The report result being fetched.
|
|
413
|
+
* Format:
|
|
414
|
+
* `networks/{network_code}/reports/{report_id}/results/{report_result_id}`
|
|
415
|
+
* @param {number} [request.pageSize]
|
|
416
|
+
* Optional. The maximum number of rows to return. The service may return
|
|
417
|
+
* fewer than this value. If unspecified, at most 1,000 rows will be returned.
|
|
418
|
+
* The maximum value is 10,000; values above 10,000 will be reduced to 10,000.
|
|
419
|
+
* @param {string} [request.pageToken]
|
|
420
|
+
* Optional. A page token, received from a previous `FetchReportResultRows`
|
|
421
|
+
* call. Provide this to retrieve the second and subsequent batches of rows.
|
|
422
|
+
* @param {object} [options]
|
|
423
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
424
|
+
* @returns {Stream}
|
|
425
|
+
* An object stream which emits an object representing {@link protos.google.ads.admanager.v1.Report.DataTable.Row|Row} on 'data' event.
|
|
426
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
427
|
+
* times as needed. Note that it can affect your quota.
|
|
428
|
+
* We recommend using `fetchReportResultRowsAsync()`
|
|
429
|
+
* method described below for async iteration which you can stop as needed.
|
|
430
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
431
|
+
* for more details and examples.
|
|
432
|
+
*/
|
|
433
|
+
fetchReportResultRowsStream(request?: protos.google.ads.admanager.v1.IFetchReportResultRowsRequest, options?: CallOptions): Transform;
|
|
434
|
+
/**
|
|
435
|
+
* Equivalent to `fetchReportResultRows`, but returns an iterable object.
|
|
436
|
+
*
|
|
437
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
438
|
+
* @param {Object} request
|
|
439
|
+
* The request object that will be sent.
|
|
440
|
+
* @param {string} request.name
|
|
441
|
+
* The report result being fetched.
|
|
442
|
+
* Format:
|
|
443
|
+
* `networks/{network_code}/reports/{report_id}/results/{report_result_id}`
|
|
444
|
+
* @param {number} [request.pageSize]
|
|
445
|
+
* Optional. The maximum number of rows to return. The service may return
|
|
446
|
+
* fewer than this value. If unspecified, at most 1,000 rows will be returned.
|
|
447
|
+
* The maximum value is 10,000; values above 10,000 will be reduced to 10,000.
|
|
448
|
+
* @param {string} [request.pageToken]
|
|
449
|
+
* Optional. A page token, received from a previous `FetchReportResultRows`
|
|
450
|
+
* call. Provide this to retrieve the second and subsequent batches of rows.
|
|
451
|
+
* @param {object} [options]
|
|
452
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
453
|
+
* @returns {Object}
|
|
454
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
455
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
456
|
+
* {@link protos.google.ads.admanager.v1.Report.DataTable.Row|Row}. The API will be called under the hood as needed, once per the page,
|
|
457
|
+
* so you can stop the iteration when you don't need more results.
|
|
458
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
459
|
+
* for more details and examples.
|
|
460
|
+
* @example <caption>include:samples/generated/v1/report_service.fetch_report_result_rows.js</caption>
|
|
461
|
+
* region_tag:admanager_v1_generated_ReportService_FetchReportResultRows_async
|
|
462
|
+
*/
|
|
463
|
+
fetchReportResultRowsAsync(request?: protos.google.ads.admanager.v1.IFetchReportResultRowsRequest, options?: CallOptions): AsyncIterable<protos.google.ads.admanager.v1.Report.DataTable.IRow>;
|
|
464
|
+
/**
|
|
465
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
|
466
|
+
* method to poll the operation result at intervals as recommended by the API
|
|
467
|
+
* service.
|
|
468
|
+
*
|
|
469
|
+
* @param {Object} request - The request object that will be sent.
|
|
470
|
+
* @param {string} request.name - The name of the operation resource.
|
|
471
|
+
* @param {Object=} options
|
|
472
|
+
* Optional parameters. You can override the default settings for this call,
|
|
473
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
474
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
475
|
+
* for the details.
|
|
476
|
+
* @param {function(?Error, ?Object)=} callback
|
|
477
|
+
* The function which will be called with the result of the API call.
|
|
478
|
+
*
|
|
479
|
+
* The second parameter to the callback is an object representing
|
|
480
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
481
|
+
* @return {Promise} - The promise which resolves to an array.
|
|
482
|
+
* The first element of the array is an object representing
|
|
483
|
+
* {@link google.longrunning.Operation | google.longrunning.Operation}.
|
|
484
|
+
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
485
|
+
*
|
|
486
|
+
* @example
|
|
487
|
+
* ```
|
|
488
|
+
* const client = longrunning.operationsClient();
|
|
489
|
+
* const name = '';
|
|
490
|
+
* const [response] = await client.getOperation({name});
|
|
491
|
+
* // doThingsWith(response)
|
|
492
|
+
* ```
|
|
493
|
+
*/
|
|
494
|
+
getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;
|
|
495
|
+
/**
|
|
496
|
+
* Lists operations that match the specified filter in the request. If the
|
|
497
|
+
* server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
|
|
498
|
+
*
|
|
499
|
+
* For-await-of syntax is used with the iterable to recursively get response element on-demand.
|
|
500
|
+
*
|
|
501
|
+
* @param {Object} request - The request object that will be sent.
|
|
502
|
+
* @param {string} request.name - The name of the operation collection.
|
|
503
|
+
* @param {string} request.filter - The standard list filter.
|
|
504
|
+
* @param {number=} request.pageSize -
|
|
505
|
+
* The maximum number of resources contained in the underlying API
|
|
506
|
+
* response. If page streaming is performed per-resource, this
|
|
507
|
+
* parameter does not affect the return value. If page streaming is
|
|
508
|
+
* performed per-page, this determines the maximum number of
|
|
509
|
+
* resources in a page.
|
|
510
|
+
* @param {Object=} options
|
|
511
|
+
* Optional parameters. You can override the default settings for this call,
|
|
512
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
513
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
|
514
|
+
* details.
|
|
515
|
+
* @returns {Object}
|
|
516
|
+
* An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
|
|
517
|
+
*
|
|
518
|
+
* @example
|
|
519
|
+
* ```
|
|
520
|
+
* const client = longrunning.operationsClient();
|
|
521
|
+
* for await (const response of client.listOperationsAsync(request));
|
|
522
|
+
* // doThingsWith(response)
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
|
|
526
|
+
/**
|
|
527
|
+
* Starts asynchronous cancellation on a long-running operation. The server
|
|
528
|
+
* makes a best effort to cancel the operation, but success is not
|
|
529
|
+
* guaranteed. If the server doesn't support this method, it returns
|
|
530
|
+
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
531
|
+
* {@link Operations.GetOperation} or
|
|
532
|
+
* other methods to check whether the cancellation succeeded or whether the
|
|
533
|
+
* operation completed despite cancellation. On successful cancellation,
|
|
534
|
+
* the operation is not deleted; instead, it becomes an operation with
|
|
535
|
+
* an {@link Operation.error} value with a {@link google.rpc.Status.code} of
|
|
536
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
537
|
+
*
|
|
538
|
+
* @param {Object} request - The request object that will be sent.
|
|
539
|
+
* @param {string} request.name - The name of the operation resource to be cancelled.
|
|
540
|
+
* @param {Object=} options
|
|
541
|
+
* Optional parameters. You can override the default settings for this call,
|
|
542
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
543
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
|
|
544
|
+
* details.
|
|
545
|
+
* @param {function(?Error)=} callback
|
|
546
|
+
* The function which will be called with the result of the API call.
|
|
547
|
+
* @return {Promise} - The promise which resolves when API call finishes.
|
|
548
|
+
* The promise has a method named "cancel" which cancels the ongoing API
|
|
549
|
+
* call.
|
|
550
|
+
*
|
|
551
|
+
* @example
|
|
552
|
+
* ```
|
|
553
|
+
* const client = longrunning.operationsClient();
|
|
554
|
+
* await client.cancelOperation({name: ''});
|
|
555
|
+
* ```
|
|
556
|
+
*/
|
|
557
|
+
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;
|
|
558
|
+
/**
|
|
559
|
+
* Deletes a long-running operation. This method indicates that the client is
|
|
560
|
+
* no longer interested in the operation result. It does not cancel the
|
|
561
|
+
* operation. If the server doesn't support this method, it returns
|
|
562
|
+
* `google.rpc.Code.UNIMPLEMENTED`.
|
|
563
|
+
*
|
|
564
|
+
* @param {Object} request - The request object that will be sent.
|
|
565
|
+
* @param {string} request.name - The name of the operation resource to be deleted.
|
|
566
|
+
* @param {Object=} options
|
|
567
|
+
* Optional parameters. You can override the default settings for this call,
|
|
568
|
+
* e.g, timeout, retries, paginations, etc. See {@link
|
|
569
|
+
* https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
|
|
570
|
+
* for the details.
|
|
571
|
+
* @param {function(?Error)=} callback
|
|
572
|
+
* The function which will be called with the result of the API call.
|
|
573
|
+
* @return {Promise} - The promise which resolves when API call finishes.
|
|
574
|
+
* The promise has a method named "cancel" which cancels the ongoing API
|
|
575
|
+
* call.
|
|
576
|
+
*
|
|
577
|
+
* @example
|
|
578
|
+
* ```
|
|
579
|
+
* const client = longrunning.operationsClient();
|
|
580
|
+
* await client.deleteOperation({name: ''});
|
|
581
|
+
* ```
|
|
582
|
+
*/
|
|
583
|
+
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;
|
|
584
|
+
/**
|
|
585
|
+
* Return a fully-qualified adUnit resource name string.
|
|
586
|
+
*
|
|
587
|
+
* @param {string} network_code
|
|
588
|
+
* @param {string} ad_unit
|
|
589
|
+
* @returns {string} Resource name string.
|
|
590
|
+
*/
|
|
591
|
+
adUnitPath(networkCode: string, adUnit: string): string;
|
|
592
|
+
/**
|
|
593
|
+
* Parse the network_code from AdUnit resource.
|
|
594
|
+
*
|
|
595
|
+
* @param {string} adUnitName
|
|
596
|
+
* A fully-qualified path representing AdUnit resource.
|
|
597
|
+
* @returns {string} A string representing the network_code.
|
|
598
|
+
*/
|
|
599
|
+
matchNetworkCodeFromAdUnitName(adUnitName: string): string | number;
|
|
600
|
+
/**
|
|
601
|
+
* Parse the ad_unit from AdUnit resource.
|
|
602
|
+
*
|
|
603
|
+
* @param {string} adUnitName
|
|
604
|
+
* A fully-qualified path representing AdUnit resource.
|
|
605
|
+
* @returns {string} A string representing the ad_unit.
|
|
606
|
+
*/
|
|
607
|
+
matchAdUnitFromAdUnitName(adUnitName: string): string | number;
|
|
608
|
+
/**
|
|
609
|
+
* Return a fully-qualified company resource name string.
|
|
610
|
+
*
|
|
611
|
+
* @param {string} network_code
|
|
612
|
+
* @param {string} company
|
|
613
|
+
* @returns {string} Resource name string.
|
|
614
|
+
*/
|
|
615
|
+
companyPath(networkCode: string, company: string): string;
|
|
616
|
+
/**
|
|
617
|
+
* Parse the network_code from Company resource.
|
|
618
|
+
*
|
|
619
|
+
* @param {string} companyName
|
|
620
|
+
* A fully-qualified path representing Company resource.
|
|
621
|
+
* @returns {string} A string representing the network_code.
|
|
622
|
+
*/
|
|
623
|
+
matchNetworkCodeFromCompanyName(companyName: string): string | number;
|
|
624
|
+
/**
|
|
625
|
+
* Parse the company from Company resource.
|
|
626
|
+
*
|
|
627
|
+
* @param {string} companyName
|
|
628
|
+
* A fully-qualified path representing Company resource.
|
|
629
|
+
* @returns {string} A string representing the company.
|
|
630
|
+
*/
|
|
631
|
+
matchCompanyFromCompanyName(companyName: string): string | number;
|
|
632
|
+
/**
|
|
633
|
+
* Return a fully-qualified contact resource name string.
|
|
634
|
+
*
|
|
635
|
+
* @param {string} network_code
|
|
636
|
+
* @param {string} contact
|
|
637
|
+
* @returns {string} Resource name string.
|
|
638
|
+
*/
|
|
639
|
+
contactPath(networkCode: string, contact: string): string;
|
|
640
|
+
/**
|
|
641
|
+
* Parse the network_code from Contact resource.
|
|
642
|
+
*
|
|
643
|
+
* @param {string} contactName
|
|
644
|
+
* A fully-qualified path representing Contact resource.
|
|
645
|
+
* @returns {string} A string representing the network_code.
|
|
646
|
+
*/
|
|
647
|
+
matchNetworkCodeFromContactName(contactName: string): string | number;
|
|
648
|
+
/**
|
|
649
|
+
* Parse the contact from Contact resource.
|
|
650
|
+
*
|
|
651
|
+
* @param {string} contactName
|
|
652
|
+
* A fully-qualified path representing Contact resource.
|
|
653
|
+
* @returns {string} A string representing the contact.
|
|
654
|
+
*/
|
|
655
|
+
matchContactFromContactName(contactName: string): string | number;
|
|
656
|
+
/**
|
|
657
|
+
* Return a fully-qualified customField resource name string.
|
|
658
|
+
*
|
|
659
|
+
* @param {string} network_code
|
|
660
|
+
* @param {string} custom_field
|
|
661
|
+
* @returns {string} Resource name string.
|
|
662
|
+
*/
|
|
663
|
+
customFieldPath(networkCode: string, customField: string): string;
|
|
664
|
+
/**
|
|
665
|
+
* Parse the network_code from CustomField resource.
|
|
666
|
+
*
|
|
667
|
+
* @param {string} customFieldName
|
|
668
|
+
* A fully-qualified path representing CustomField resource.
|
|
669
|
+
* @returns {string} A string representing the network_code.
|
|
670
|
+
*/
|
|
671
|
+
matchNetworkCodeFromCustomFieldName(customFieldName: string): string | number;
|
|
672
|
+
/**
|
|
673
|
+
* Parse the custom_field from CustomField resource.
|
|
674
|
+
*
|
|
675
|
+
* @param {string} customFieldName
|
|
676
|
+
* A fully-qualified path representing CustomField resource.
|
|
677
|
+
* @returns {string} A string representing the custom_field.
|
|
678
|
+
*/
|
|
679
|
+
matchCustomFieldFromCustomFieldName(customFieldName: string): string | number;
|
|
680
|
+
/**
|
|
681
|
+
* Return a fully-qualified customTargetingKey resource name string.
|
|
682
|
+
*
|
|
683
|
+
* @param {string} network_code
|
|
684
|
+
* @param {string} custom_targeting_key
|
|
685
|
+
* @returns {string} Resource name string.
|
|
686
|
+
*/
|
|
687
|
+
customTargetingKeyPath(networkCode: string, customTargetingKey: string): string;
|
|
688
|
+
/**
|
|
689
|
+
* Parse the network_code from CustomTargetingKey resource.
|
|
690
|
+
*
|
|
691
|
+
* @param {string} customTargetingKeyName
|
|
692
|
+
* A fully-qualified path representing CustomTargetingKey resource.
|
|
693
|
+
* @returns {string} A string representing the network_code.
|
|
694
|
+
*/
|
|
695
|
+
matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName: string): string | number;
|
|
696
|
+
/**
|
|
697
|
+
* Parse the custom_targeting_key from CustomTargetingKey resource.
|
|
698
|
+
*
|
|
699
|
+
* @param {string} customTargetingKeyName
|
|
700
|
+
* A fully-qualified path representing CustomTargetingKey resource.
|
|
701
|
+
* @returns {string} A string representing the custom_targeting_key.
|
|
702
|
+
*/
|
|
703
|
+
matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName: string): string | number;
|
|
704
|
+
/**
|
|
705
|
+
* Return a fully-qualified customTargetingValue resource name string.
|
|
706
|
+
*
|
|
707
|
+
* @param {string} network_code
|
|
708
|
+
* @param {string} custom_targeting_key
|
|
709
|
+
* @param {string} custom_targeting_value
|
|
710
|
+
* @returns {string} Resource name string.
|
|
711
|
+
*/
|
|
712
|
+
customTargetingValuePath(networkCode: string, customTargetingKey: string, customTargetingValue: string): string;
|
|
713
|
+
/**
|
|
714
|
+
* Parse the network_code from CustomTargetingValue resource.
|
|
715
|
+
*
|
|
716
|
+
* @param {string} customTargetingValueName
|
|
717
|
+
* A fully-qualified path representing CustomTargetingValue resource.
|
|
718
|
+
* @returns {string} A string representing the network_code.
|
|
719
|
+
*/
|
|
720
|
+
matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName: string): string | number;
|
|
721
|
+
/**
|
|
722
|
+
* Parse the custom_targeting_key from CustomTargetingValue resource.
|
|
723
|
+
*
|
|
724
|
+
* @param {string} customTargetingValueName
|
|
725
|
+
* A fully-qualified path representing CustomTargetingValue resource.
|
|
726
|
+
* @returns {string} A string representing the custom_targeting_key.
|
|
727
|
+
*/
|
|
728
|
+
matchCustomTargetingKeyFromCustomTargetingValueName(customTargetingValueName: string): string | number;
|
|
729
|
+
/**
|
|
730
|
+
* Parse the custom_targeting_value from CustomTargetingValue resource.
|
|
731
|
+
*
|
|
732
|
+
* @param {string} customTargetingValueName
|
|
733
|
+
* A fully-qualified path representing CustomTargetingValue resource.
|
|
734
|
+
* @returns {string} A string representing the custom_targeting_value.
|
|
735
|
+
*/
|
|
736
|
+
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName: string): string | number;
|
|
737
|
+
/**
|
|
738
|
+
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
739
|
+
*
|
|
740
|
+
* @param {string} network_code
|
|
741
|
+
* @param {string} entity_signals_mapping
|
|
742
|
+
* @returns {string} Resource name string.
|
|
743
|
+
*/
|
|
744
|
+
entitySignalsMappingPath(networkCode: string, entitySignalsMapping: string): string;
|
|
745
|
+
/**
|
|
746
|
+
* Parse the network_code from EntitySignalsMapping resource.
|
|
747
|
+
*
|
|
748
|
+
* @param {string} entitySignalsMappingName
|
|
749
|
+
* A fully-qualified path representing EntitySignalsMapping resource.
|
|
750
|
+
* @returns {string} A string representing the network_code.
|
|
751
|
+
*/
|
|
752
|
+
matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName: string): string | number;
|
|
753
|
+
/**
|
|
754
|
+
* Parse the entity_signals_mapping from EntitySignalsMapping resource.
|
|
755
|
+
*
|
|
756
|
+
* @param {string} entitySignalsMappingName
|
|
757
|
+
* A fully-qualified path representing EntitySignalsMapping resource.
|
|
758
|
+
* @returns {string} A string representing the entity_signals_mapping.
|
|
759
|
+
*/
|
|
760
|
+
matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName: string): string | number;
|
|
761
|
+
/**
|
|
762
|
+
* Return a fully-qualified label resource name string.
|
|
763
|
+
*
|
|
764
|
+
* @param {string} network_code
|
|
765
|
+
* @param {string} label
|
|
766
|
+
* @returns {string} Resource name string.
|
|
767
|
+
*/
|
|
768
|
+
labelPath(networkCode: string, label: string): string;
|
|
769
|
+
/**
|
|
770
|
+
* Parse the network_code from Label resource.
|
|
771
|
+
*
|
|
772
|
+
* @param {string} labelName
|
|
773
|
+
* A fully-qualified path representing Label resource.
|
|
774
|
+
* @returns {string} A string representing the network_code.
|
|
775
|
+
*/
|
|
776
|
+
matchNetworkCodeFromLabelName(labelName: string): string | number;
|
|
777
|
+
/**
|
|
778
|
+
* Parse the label from Label resource.
|
|
779
|
+
*
|
|
780
|
+
* @param {string} labelName
|
|
781
|
+
* A fully-qualified path representing Label resource.
|
|
782
|
+
* @returns {string} A string representing the label.
|
|
783
|
+
*/
|
|
784
|
+
matchLabelFromLabelName(labelName: string): string | number;
|
|
785
|
+
/**
|
|
786
|
+
* Return a fully-qualified network resource name string.
|
|
787
|
+
*
|
|
788
|
+
* @param {string} network_code
|
|
789
|
+
* @returns {string} Resource name string.
|
|
790
|
+
*/
|
|
791
|
+
networkPath(networkCode: string): string;
|
|
792
|
+
/**
|
|
793
|
+
* Parse the network_code from Network resource.
|
|
794
|
+
*
|
|
795
|
+
* @param {string} networkName
|
|
796
|
+
* A fully-qualified path representing Network resource.
|
|
797
|
+
* @returns {string} A string representing the network_code.
|
|
798
|
+
*/
|
|
799
|
+
matchNetworkCodeFromNetworkName(networkName: string): string | number;
|
|
800
|
+
/**
|
|
801
|
+
* Return a fully-qualified order resource name string.
|
|
802
|
+
*
|
|
803
|
+
* @param {string} network_code
|
|
804
|
+
* @param {string} order
|
|
805
|
+
* @returns {string} Resource name string.
|
|
806
|
+
*/
|
|
807
|
+
orderPath(networkCode: string, order: string): string;
|
|
808
|
+
/**
|
|
809
|
+
* Parse the network_code from Order resource.
|
|
810
|
+
*
|
|
811
|
+
* @param {string} orderName
|
|
812
|
+
* A fully-qualified path representing Order resource.
|
|
813
|
+
* @returns {string} A string representing the network_code.
|
|
814
|
+
*/
|
|
815
|
+
matchNetworkCodeFromOrderName(orderName: string): string | number;
|
|
816
|
+
/**
|
|
817
|
+
* Parse the order from Order resource.
|
|
818
|
+
*
|
|
819
|
+
* @param {string} orderName
|
|
820
|
+
* A fully-qualified path representing Order resource.
|
|
821
|
+
* @returns {string} A string representing the order.
|
|
822
|
+
*/
|
|
823
|
+
matchOrderFromOrderName(orderName: string): string | number;
|
|
824
|
+
/**
|
|
825
|
+
* Return a fully-qualified placement resource name string.
|
|
826
|
+
*
|
|
827
|
+
* @param {string} network_code
|
|
828
|
+
* @param {string} placement
|
|
829
|
+
* @returns {string} Resource name string.
|
|
830
|
+
*/
|
|
831
|
+
placementPath(networkCode: string, placement: string): string;
|
|
832
|
+
/**
|
|
833
|
+
* Parse the network_code from Placement resource.
|
|
834
|
+
*
|
|
835
|
+
* @param {string} placementName
|
|
836
|
+
* A fully-qualified path representing Placement resource.
|
|
837
|
+
* @returns {string} A string representing the network_code.
|
|
838
|
+
*/
|
|
839
|
+
matchNetworkCodeFromPlacementName(placementName: string): string | number;
|
|
840
|
+
/**
|
|
841
|
+
* Parse the placement from Placement resource.
|
|
842
|
+
*
|
|
843
|
+
* @param {string} placementName
|
|
844
|
+
* A fully-qualified path representing Placement resource.
|
|
845
|
+
* @returns {string} A string representing the placement.
|
|
846
|
+
*/
|
|
847
|
+
matchPlacementFromPlacementName(placementName: string): string | number;
|
|
848
|
+
/**
|
|
849
|
+
* Return a fully-qualified report resource name string.
|
|
850
|
+
*
|
|
851
|
+
* @param {string} network_code
|
|
852
|
+
* @param {string} report
|
|
853
|
+
* @returns {string} Resource name string.
|
|
854
|
+
*/
|
|
855
|
+
reportPath(networkCode: string, report: string): string;
|
|
856
|
+
/**
|
|
857
|
+
* Parse the network_code from Report resource.
|
|
858
|
+
*
|
|
859
|
+
* @param {string} reportName
|
|
860
|
+
* A fully-qualified path representing Report resource.
|
|
861
|
+
* @returns {string} A string representing the network_code.
|
|
862
|
+
*/
|
|
863
|
+
matchNetworkCodeFromReportName(reportName: string): string | number;
|
|
864
|
+
/**
|
|
865
|
+
* Parse the report from Report resource.
|
|
866
|
+
*
|
|
867
|
+
* @param {string} reportName
|
|
868
|
+
* A fully-qualified path representing Report resource.
|
|
869
|
+
* @returns {string} A string representing the report.
|
|
870
|
+
*/
|
|
871
|
+
matchReportFromReportName(reportName: string): string | number;
|
|
872
|
+
/**
|
|
873
|
+
* Return a fully-qualified role resource name string.
|
|
874
|
+
*
|
|
875
|
+
* @param {string} network_code
|
|
876
|
+
* @param {string} role
|
|
877
|
+
* @returns {string} Resource name string.
|
|
878
|
+
*/
|
|
879
|
+
rolePath(networkCode: string, role: string): string;
|
|
880
|
+
/**
|
|
881
|
+
* Parse the network_code from Role resource.
|
|
882
|
+
*
|
|
883
|
+
* @param {string} roleName
|
|
884
|
+
* A fully-qualified path representing Role resource.
|
|
885
|
+
* @returns {string} A string representing the network_code.
|
|
886
|
+
*/
|
|
887
|
+
matchNetworkCodeFromRoleName(roleName: string): string | number;
|
|
888
|
+
/**
|
|
889
|
+
* Parse the role from Role resource.
|
|
890
|
+
*
|
|
891
|
+
* @param {string} roleName
|
|
892
|
+
* A fully-qualified path representing Role resource.
|
|
893
|
+
* @returns {string} A string representing the role.
|
|
894
|
+
*/
|
|
895
|
+
matchRoleFromRoleName(roleName: string): string | number;
|
|
896
|
+
/**
|
|
897
|
+
* Return a fully-qualified taxonomyCategory resource name string.
|
|
898
|
+
*
|
|
899
|
+
* @param {string} network_code
|
|
900
|
+
* @param {string} taxonomy_category
|
|
901
|
+
* @returns {string} Resource name string.
|
|
902
|
+
*/
|
|
903
|
+
taxonomyCategoryPath(networkCode: string, taxonomyCategory: string): string;
|
|
904
|
+
/**
|
|
905
|
+
* Parse the network_code from TaxonomyCategory resource.
|
|
906
|
+
*
|
|
907
|
+
* @param {string} taxonomyCategoryName
|
|
908
|
+
* A fully-qualified path representing TaxonomyCategory resource.
|
|
909
|
+
* @returns {string} A string representing the network_code.
|
|
910
|
+
*/
|
|
911
|
+
matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName: string): string | number;
|
|
912
|
+
/**
|
|
913
|
+
* Parse the taxonomy_category from TaxonomyCategory resource.
|
|
914
|
+
*
|
|
915
|
+
* @param {string} taxonomyCategoryName
|
|
916
|
+
* A fully-qualified path representing TaxonomyCategory resource.
|
|
917
|
+
* @returns {string} A string representing the taxonomy_category.
|
|
918
|
+
*/
|
|
919
|
+
matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName: string): string | number;
|
|
920
|
+
/**
|
|
921
|
+
* Return a fully-qualified team resource name string.
|
|
922
|
+
*
|
|
923
|
+
* @param {string} network_code
|
|
924
|
+
* @param {string} team
|
|
925
|
+
* @returns {string} Resource name string.
|
|
926
|
+
*/
|
|
927
|
+
teamPath(networkCode: string, team: string): string;
|
|
928
|
+
/**
|
|
929
|
+
* Parse the network_code from Team resource.
|
|
930
|
+
*
|
|
931
|
+
* @param {string} teamName
|
|
932
|
+
* A fully-qualified path representing Team resource.
|
|
933
|
+
* @returns {string} A string representing the network_code.
|
|
934
|
+
*/
|
|
935
|
+
matchNetworkCodeFromTeamName(teamName: string): string | number;
|
|
936
|
+
/**
|
|
937
|
+
* Parse the team from Team resource.
|
|
938
|
+
*
|
|
939
|
+
* @param {string} teamName
|
|
940
|
+
* A fully-qualified path representing Team resource.
|
|
941
|
+
* @returns {string} A string representing the team.
|
|
942
|
+
*/
|
|
943
|
+
matchTeamFromTeamName(teamName: string): string | number;
|
|
944
|
+
/**
|
|
945
|
+
* Return a fully-qualified user resource name string.
|
|
946
|
+
*
|
|
947
|
+
* @param {string} network_code
|
|
948
|
+
* @param {string} user
|
|
949
|
+
* @returns {string} Resource name string.
|
|
950
|
+
*/
|
|
951
|
+
userPath(networkCode: string, user: string): string;
|
|
952
|
+
/**
|
|
953
|
+
* Parse the network_code from User resource.
|
|
954
|
+
*
|
|
955
|
+
* @param {string} userName
|
|
956
|
+
* A fully-qualified path representing User resource.
|
|
957
|
+
* @returns {string} A string representing the network_code.
|
|
958
|
+
*/
|
|
959
|
+
matchNetworkCodeFromUserName(userName: string): string | number;
|
|
960
|
+
/**
|
|
961
|
+
* Parse the user from User resource.
|
|
962
|
+
*
|
|
963
|
+
* @param {string} userName
|
|
964
|
+
* A fully-qualified path representing User resource.
|
|
965
|
+
* @returns {string} A string representing the user.
|
|
966
|
+
*/
|
|
967
|
+
matchUserFromUserName(userName: string): string | number;
|
|
968
|
+
/**
|
|
969
|
+
* Terminate the gRPC channel and close the client.
|
|
970
|
+
*
|
|
971
|
+
* The client will no longer be usable and all future behavior is undefined.
|
|
972
|
+
* @returns {Promise} A promise that resolves when the client is closed.
|
|
973
|
+
*/
|
|
974
|
+
close(): Promise<void>;
|
|
975
|
+
}
|