@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.
Files changed (111) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +202 -0
  3. package/README.md +236 -0
  4. package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +81 -0
  5. package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +230 -0
  6. package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +195 -0
  7. package/build/protos/google/ads/admanager/v1/admanager_error.proto +52 -0
  8. package/build/protos/google/ads/admanager/v1/applied_label.proto +41 -0
  9. package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +97 -0
  10. package/build/protos/google/ads/admanager/v1/company_messages.proto +122 -0
  11. package/build/protos/google/ads/admanager/v1/company_service.proto +126 -0
  12. package/build/protos/google/ads/admanager/v1/company_type_enum.proto +51 -0
  13. package/build/protos/google/ads/admanager/v1/contact_messages.proto +49 -0
  14. package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +110 -0
  15. package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +87 -0
  16. package/build/protos/google/ads/admanager/v1/custom_field_service.proto +127 -0
  17. package/build/protos/google/ads/admanager/v1/custom_field_value.proto +62 -0
  18. package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +76 -0
  19. package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +69 -0
  20. package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +129 -0
  21. package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +90 -0
  22. package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +66 -0
  23. package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +132 -0
  24. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +64 -0
  25. package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +252 -0
  26. package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +41 -0
  27. package/build/protos/google/ads/admanager/v1/frequency_cap.proto +39 -0
  28. package/build/protos/google/ads/admanager/v1/label_messages.proto +42 -0
  29. package/build/protos/google/ads/admanager/v1/network_messages.proto +79 -0
  30. package/build/protos/google/ads/admanager/v1/network_service.proto +72 -0
  31. package/build/protos/google/ads/admanager/v1/order_enums.proto +59 -0
  32. package/build/protos/google/ads/admanager/v1/order_messages.proto +209 -0
  33. package/build/protos/google/ads/admanager/v1/order_service.proto +129 -0
  34. package/build/protos/google/ads/admanager/v1/placement_enums.proto +44 -0
  35. package/build/protos/google/ads/admanager/v1/placement_messages.proto +77 -0
  36. package/build/protos/google/ads/admanager/v1/placement_service.proto +126 -0
  37. package/build/protos/google/ads/admanager/v1/report_service.proto +3526 -0
  38. package/build/protos/google/ads/admanager/v1/role_enums.proto +41 -0
  39. package/build/protos/google/ads/admanager/v1/role_messages.proto +59 -0
  40. package/build/protos/google/ads/admanager/v1/role_service.proto +122 -0
  41. package/build/protos/google/ads/admanager/v1/size.proto +47 -0
  42. package/build/protos/google/ads/admanager/v1/size_type_enum.proto +62 -0
  43. package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +70 -0
  44. package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +128 -0
  45. package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +51 -0
  46. package/build/protos/google/ads/admanager/v1/team_messages.proto +46 -0
  47. package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +59 -0
  48. package/build/protos/google/ads/admanager/v1/user_messages.proto +78 -0
  49. package/build/protos/google/ads/admanager/v1/user_service.proto +57 -0
  50. package/build/protos/protos.d.ts +23491 -0
  51. package/build/protos/protos.js +69798 -0
  52. package/build/protos/protos.json +7273 -0
  53. package/build/src/index.d.ts +47 -0
  54. package/build/src/index.js +67 -0
  55. package/build/src/index.js.map +1 -0
  56. package/build/src/v1/ad_unit_service_client.d.ts +794 -0
  57. package/build/src/v1/ad_unit_service_client.js +1136 -0
  58. package/build/src/v1/ad_unit_service_client.js.map +1 -0
  59. package/build/src/v1/ad_unit_service_client_config.json +38 -0
  60. package/build/src/v1/company_service_client.d.ts +663 -0
  61. package/build/src/v1/company_service_client.js +999 -0
  62. package/build/src/v1/company_service_client.js.map +1 -0
  63. package/build/src/v1/company_service_client_config.json +34 -0
  64. package/build/src/v1/custom_field_service_client.d.ts +663 -0
  65. package/build/src/v1/custom_field_service_client.js +1002 -0
  66. package/build/src/v1/custom_field_service_client.js.map +1 -0
  67. package/build/src/v1/custom_field_service_client_config.json +34 -0
  68. package/build/src/v1/custom_targeting_key_service_client.d.ts +664 -0
  69. package/build/src/v1/custom_targeting_key_service_client.js +1004 -0
  70. package/build/src/v1/custom_targeting_key_service_client.js.map +1 -0
  71. package/build/src/v1/custom_targeting_key_service_client_config.json +34 -0
  72. package/build/src/v1/custom_targeting_value_service_client.d.ts +673 -0
  73. package/build/src/v1/custom_targeting_value_service_client.js +1010 -0
  74. package/build/src/v1/custom_targeting_value_service_client.js.map +1 -0
  75. package/build/src/v1/custom_targeting_value_service_client_config.json +34 -0
  76. package/build/src/v1/entity_signals_mapping_service_client.d.ts +782 -0
  77. package/build/src/v1/entity_signals_mapping_service_client.js +1096 -0
  78. package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -0
  79. package/build/src/v1/entity_signals_mapping_service_client_config.json +50 -0
  80. package/build/src/v1/index.d.ts +13 -0
  81. package/build/src/v1/index.js +47 -0
  82. package/build/src/v1/index.js.map +1 -0
  83. package/build/src/v1/network_service_client.d.ts +552 -0
  84. package/build/src/v1/network_service_client.js +877 -0
  85. package/build/src/v1/network_service_client.js.map +1 -0
  86. package/build/src/v1/network_service_client_config.json +34 -0
  87. package/build/src/v1/order_service_client.d.ts +668 -0
  88. package/build/src/v1/order_service_client.js +999 -0
  89. package/build/src/v1/order_service_client.js.map +1 -0
  90. package/build/src/v1/order_service_client_config.json +48 -0
  91. package/build/src/v1/placement_service_client.d.ts +663 -0
  92. package/build/src/v1/placement_service_client.js +999 -0
  93. package/build/src/v1/placement_service_client.js.map +1 -0
  94. package/build/src/v1/placement_service_client_config.json +34 -0
  95. package/build/src/v1/report_service_client.d.ts +975 -0
  96. package/build/src/v1/report_service_client.js +1352 -0
  97. package/build/src/v1/report_service_client.js.map +1 -0
  98. package/build/src/v1/report_service_client_config.json +50 -0
  99. package/build/src/v1/role_service_client.d.ts +660 -0
  100. package/build/src/v1/role_service_client.js +997 -0
  101. package/build/src/v1/role_service_client.js.map +1 -0
  102. package/build/src/v1/role_service_client_config.json +34 -0
  103. package/build/src/v1/taxonomy_category_service_client.d.ts +663 -0
  104. package/build/src/v1/taxonomy_category_service_client.js +1003 -0
  105. package/build/src/v1/taxonomy_category_service_client.js.map +1 -0
  106. package/build/src/v1/taxonomy_category_service_client_config.json +34 -0
  107. package/build/src/v1/user_service_client.d.ts +534 -0
  108. package/build/src/v1/user_service_client.js +861 -0
  109. package/build/src/v1/user_service_client.js.map +1 -0
  110. package/build/src/v1/user_service_client_config.json +30 -0
  111. package/package.json +70 -0
@@ -0,0 +1,668 @@
1
+ import type * as gax from 'google-gax';
2
+ import type { Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback } from 'google-gax';
3
+ import { Transform } from 'stream';
4
+ import * as protos from '../../protos/protos';
5
+ /**
6
+ * Provides methods for handling `Order` objects.
7
+ * @class
8
+ * @memberof v1
9
+ */
10
+ export declare class OrderServiceClient {
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
+ orderServiceStub?: Promise<{
30
+ [name: string]: Function;
31
+ }>;
32
+ /**
33
+ * Construct an instance of OrderServiceClient.
34
+ *
35
+ * @param {object} [options] - The configuration object.
36
+ * The options accepted by the constructor are described in detail
37
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
38
+ * The common options are:
39
+ * @param {object} [options.credentials] - Credentials object.
40
+ * @param {string} [options.credentials.client_email]
41
+ * @param {string} [options.credentials.private_key]
42
+ * @param {string} [options.email] - Account email address. Required when
43
+ * using a .pem or .p12 keyFilename.
44
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
45
+ * .p12 key downloaded from the Google Developers Console. If you provide
46
+ * a path to a JSON file, the projectId option below is not necessary.
47
+ * NOTE: .pem and .p12 require you to specify options.email as well.
48
+ * @param {number} [options.port] - The port on which to connect to
49
+ * the remote host.
50
+ * @param {string} [options.projectId] - The project ID from the Google
51
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
52
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
53
+ * app is running in an environment which supports
54
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
55
+ * your project ID will be detected automatically.
56
+ * @param {string} [options.apiEndpoint] - The domain name of the
57
+ * API remote host.
58
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
59
+ * Follows the structure of {@link gapicConfig}.
60
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
61
+ * For more information, please check the
62
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
63
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
64
+ * need to avoid loading the default gRPC version and want to use the fallback
65
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
66
+ * ```
67
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
68
+ * const client = new OrderServiceClient({fallback: true}, gax);
69
+ * ```
70
+ */
71
+ constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
72
+ /**
73
+ * Initialize the client.
74
+ * Performs asynchronous operations (such as authentication) and prepares the client.
75
+ * This function will be called automatically when any class method is called for the
76
+ * first time, but if you need to initialize it before calling an actual method,
77
+ * feel free to call initialize() directly.
78
+ *
79
+ * You can await on this method if you want to make sure the client is initialized.
80
+ *
81
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
82
+ */
83
+ initialize(): Promise<{
84
+ [name: string]: Function;
85
+ }>;
86
+ /**
87
+ * The DNS address for this API service.
88
+ * @deprecated Use the apiEndpoint method of the client instance.
89
+ * @returns {string} The DNS address for this service.
90
+ */
91
+ static get servicePath(): string;
92
+ /**
93
+ * The DNS address for this API service - same as servicePath.
94
+ * @deprecated Use the apiEndpoint method of the client instance.
95
+ * @returns {string} The DNS address for this service.
96
+ */
97
+ static get apiEndpoint(): string;
98
+ /**
99
+ * The DNS address for this API service.
100
+ * @returns {string} The DNS address for this service.
101
+ */
102
+ get apiEndpoint(): string;
103
+ get universeDomain(): string;
104
+ /**
105
+ * The port for this API service.
106
+ * @returns {number} The default port for this service.
107
+ */
108
+ static get port(): number;
109
+ /**
110
+ * The scopes needed to make gRPC calls for every method defined
111
+ * in this service.
112
+ * @returns {string[]} List of default scopes.
113
+ */
114
+ static get scopes(): never[];
115
+ getProjectId(): Promise<string>;
116
+ getProjectId(callback: Callback<string, undefined, undefined>): void;
117
+ /**
118
+ * API to retrieve an Order object.
119
+ *
120
+ * @param {Object} request
121
+ * The request object that will be sent.
122
+ * @param {string} request.name
123
+ * Required. The resource name of the Order.
124
+ * Format: `networks/{network_code}/orders/{order_id}`
125
+ * @param {object} [options]
126
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
127
+ * @returns {Promise} - The promise which resolves to an array.
128
+ * The first element of the array is an object representing {@link protos.google.ads.admanager.v1.Order|Order}.
129
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
130
+ * for more details and examples.
131
+ * @example <caption>include:samples/generated/v1/order_service.get_order.js</caption>
132
+ * region_tag:admanager_v1_generated_OrderService_GetOrder_async
133
+ */
134
+ getOrder(request?: protos.google.ads.admanager.v1.IGetOrderRequest, options?: CallOptions): Promise<[
135
+ protos.google.ads.admanager.v1.IOrder,
136
+ protos.google.ads.admanager.v1.IGetOrderRequest | undefined,
137
+ {} | undefined
138
+ ]>;
139
+ getOrder(request: protos.google.ads.admanager.v1.IGetOrderRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IOrder, protos.google.ads.admanager.v1.IGetOrderRequest | null | undefined, {} | null | undefined>): void;
140
+ getOrder(request: protos.google.ads.admanager.v1.IGetOrderRequest, callback: Callback<protos.google.ads.admanager.v1.IOrder, protos.google.ads.admanager.v1.IGetOrderRequest | null | undefined, {} | null | undefined>): void;
141
+ /**
142
+ * API to retrieve a list of `Order` objects.
143
+ *
144
+ * Fields used for literal matching in filter string:
145
+ * * `order_id`
146
+ * * `display_name`
147
+ * * `external_order_id`
148
+ *
149
+ * @param {Object} request
150
+ * The request object that will be sent.
151
+ * @param {string} request.parent
152
+ * Required. The parent, which owns this collection of Orders.
153
+ * Format: `networks/{network_code}`
154
+ * @param {number} [request.pageSize]
155
+ * Optional. The maximum number of `Orders` to return. The service may return
156
+ * fewer than this value. If unspecified, at most 50 `Orders` will be
157
+ * returned. The maximum value is 1000; values above 1000 will be coerced to
158
+ * 1000.
159
+ * @param {string} [request.pageToken]
160
+ * Optional. A page token, received from a previous `ListOrders` call.
161
+ * Provide this to retrieve the subsequent page.
162
+ *
163
+ * When paginating, all other parameters provided to `ListOrders` must match
164
+ * the call that provided the page token.
165
+ * @param {string} [request.filter]
166
+ * Optional. Expression to filter the response.
167
+ * See syntax details at
168
+ * https://developers.google.com/ad-manager/api/beta/filters
169
+ * @param {string} [request.orderBy]
170
+ * Optional. Expression to specify sorting order.
171
+ * See syntax details at
172
+ * https://developers.google.com/ad-manager/api/beta/filters#order
173
+ * @param {number} [request.skip]
174
+ * Optional. Number of individual resources to skip while paginating.
175
+ * @param {object} [options]
176
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
177
+ * @returns {Promise} - The promise which resolves to an array.
178
+ * The first element of the array is Array of {@link protos.google.ads.admanager.v1.Order|Order}.
179
+ * The client library will perform auto-pagination by default: it will call the API as many
180
+ * times as needed and will merge results from all the pages into this array.
181
+ * Note that it can affect your quota.
182
+ * We recommend using `listOrdersAsync()`
183
+ * method described below for async iteration which you can stop as needed.
184
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
185
+ * for more details and examples.
186
+ */
187
+ listOrders(request?: protos.google.ads.admanager.v1.IListOrdersRequest, options?: CallOptions): Promise<[
188
+ protos.google.ads.admanager.v1.IOrder[],
189
+ protos.google.ads.admanager.v1.IListOrdersRequest | null,
190
+ protos.google.ads.admanager.v1.IListOrdersResponse
191
+ ]>;
192
+ listOrders(request: protos.google.ads.admanager.v1.IListOrdersRequest, options: CallOptions, callback: PaginationCallback<protos.google.ads.admanager.v1.IListOrdersRequest, protos.google.ads.admanager.v1.IListOrdersResponse | null | undefined, protos.google.ads.admanager.v1.IOrder>): void;
193
+ listOrders(request: protos.google.ads.admanager.v1.IListOrdersRequest, callback: PaginationCallback<protos.google.ads.admanager.v1.IListOrdersRequest, protos.google.ads.admanager.v1.IListOrdersResponse | null | undefined, protos.google.ads.admanager.v1.IOrder>): void;
194
+ /**
195
+ * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
196
+ * @param {Object} request
197
+ * The request object that will be sent.
198
+ * @param {string} request.parent
199
+ * Required. The parent, which owns this collection of Orders.
200
+ * Format: `networks/{network_code}`
201
+ * @param {number} [request.pageSize]
202
+ * Optional. The maximum number of `Orders` to return. The service may return
203
+ * fewer than this value. If unspecified, at most 50 `Orders` will be
204
+ * returned. The maximum value is 1000; values above 1000 will be coerced to
205
+ * 1000.
206
+ * @param {string} [request.pageToken]
207
+ * Optional. A page token, received from a previous `ListOrders` call.
208
+ * Provide this to retrieve the subsequent page.
209
+ *
210
+ * When paginating, all other parameters provided to `ListOrders` must match
211
+ * the call that provided the page token.
212
+ * @param {string} [request.filter]
213
+ * Optional. Expression to filter the response.
214
+ * See syntax details at
215
+ * https://developers.google.com/ad-manager/api/beta/filters
216
+ * @param {string} [request.orderBy]
217
+ * Optional. Expression to specify sorting order.
218
+ * See syntax details at
219
+ * https://developers.google.com/ad-manager/api/beta/filters#order
220
+ * @param {number} [request.skip]
221
+ * Optional. Number of individual resources to skip while paginating.
222
+ * @param {object} [options]
223
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
224
+ * @returns {Stream}
225
+ * An object stream which emits an object representing {@link protos.google.ads.admanager.v1.Order|Order} on 'data' event.
226
+ * The client library will perform auto-pagination by default: it will call the API as many
227
+ * times as needed. Note that it can affect your quota.
228
+ * We recommend using `listOrdersAsync()`
229
+ * method described below for async iteration which you can stop as needed.
230
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
231
+ * for more details and examples.
232
+ */
233
+ listOrdersStream(request?: protos.google.ads.admanager.v1.IListOrdersRequest, options?: CallOptions): Transform;
234
+ /**
235
+ * Equivalent to `listOrders`, but returns an iterable object.
236
+ *
237
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
238
+ * @param {Object} request
239
+ * The request object that will be sent.
240
+ * @param {string} request.parent
241
+ * Required. The parent, which owns this collection of Orders.
242
+ * Format: `networks/{network_code}`
243
+ * @param {number} [request.pageSize]
244
+ * Optional. The maximum number of `Orders` to return. The service may return
245
+ * fewer than this value. If unspecified, at most 50 `Orders` will be
246
+ * returned. The maximum value is 1000; values above 1000 will be coerced to
247
+ * 1000.
248
+ * @param {string} [request.pageToken]
249
+ * Optional. A page token, received from a previous `ListOrders` call.
250
+ * Provide this to retrieve the subsequent page.
251
+ *
252
+ * When paginating, all other parameters provided to `ListOrders` must match
253
+ * the call that provided the page token.
254
+ * @param {string} [request.filter]
255
+ * Optional. Expression to filter the response.
256
+ * See syntax details at
257
+ * https://developers.google.com/ad-manager/api/beta/filters
258
+ * @param {string} [request.orderBy]
259
+ * Optional. Expression to specify sorting order.
260
+ * See syntax details at
261
+ * https://developers.google.com/ad-manager/api/beta/filters#order
262
+ * @param {number} [request.skip]
263
+ * Optional. Number of individual resources to skip while paginating.
264
+ * @param {object} [options]
265
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
266
+ * @returns {Object}
267
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
268
+ * When you iterate the returned iterable, each element will be an object representing
269
+ * {@link protos.google.ads.admanager.v1.Order|Order}. The API will be called under the hood as needed, once per the page,
270
+ * so you can stop the iteration when you don't need more results.
271
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
272
+ * for more details and examples.
273
+ * @example <caption>include:samples/generated/v1/order_service.list_orders.js</caption>
274
+ * region_tag:admanager_v1_generated_OrderService_ListOrders_async
275
+ */
276
+ listOrdersAsync(request?: protos.google.ads.admanager.v1.IListOrdersRequest, options?: CallOptions): AsyncIterable<protos.google.ads.admanager.v1.IOrder>;
277
+ /**
278
+ * Return a fully-qualified adUnit resource name string.
279
+ *
280
+ * @param {string} network_code
281
+ * @param {string} ad_unit
282
+ * @returns {string} Resource name string.
283
+ */
284
+ adUnitPath(networkCode: string, adUnit: string): string;
285
+ /**
286
+ * Parse the network_code from AdUnit resource.
287
+ *
288
+ * @param {string} adUnitName
289
+ * A fully-qualified path representing AdUnit resource.
290
+ * @returns {string} A string representing the network_code.
291
+ */
292
+ matchNetworkCodeFromAdUnitName(adUnitName: string): string | number;
293
+ /**
294
+ * Parse the ad_unit from AdUnit resource.
295
+ *
296
+ * @param {string} adUnitName
297
+ * A fully-qualified path representing AdUnit resource.
298
+ * @returns {string} A string representing the ad_unit.
299
+ */
300
+ matchAdUnitFromAdUnitName(adUnitName: string): string | number;
301
+ /**
302
+ * Return a fully-qualified company resource name string.
303
+ *
304
+ * @param {string} network_code
305
+ * @param {string} company
306
+ * @returns {string} Resource name string.
307
+ */
308
+ companyPath(networkCode: string, company: string): string;
309
+ /**
310
+ * Parse the network_code from Company resource.
311
+ *
312
+ * @param {string} companyName
313
+ * A fully-qualified path representing Company resource.
314
+ * @returns {string} A string representing the network_code.
315
+ */
316
+ matchNetworkCodeFromCompanyName(companyName: string): string | number;
317
+ /**
318
+ * Parse the company from Company resource.
319
+ *
320
+ * @param {string} companyName
321
+ * A fully-qualified path representing Company resource.
322
+ * @returns {string} A string representing the company.
323
+ */
324
+ matchCompanyFromCompanyName(companyName: string): string | number;
325
+ /**
326
+ * Return a fully-qualified contact resource name string.
327
+ *
328
+ * @param {string} network_code
329
+ * @param {string} contact
330
+ * @returns {string} Resource name string.
331
+ */
332
+ contactPath(networkCode: string, contact: string): string;
333
+ /**
334
+ * Parse the network_code from Contact resource.
335
+ *
336
+ * @param {string} contactName
337
+ * A fully-qualified path representing Contact resource.
338
+ * @returns {string} A string representing the network_code.
339
+ */
340
+ matchNetworkCodeFromContactName(contactName: string): string | number;
341
+ /**
342
+ * Parse the contact from Contact resource.
343
+ *
344
+ * @param {string} contactName
345
+ * A fully-qualified path representing Contact resource.
346
+ * @returns {string} A string representing the contact.
347
+ */
348
+ matchContactFromContactName(contactName: string): string | number;
349
+ /**
350
+ * Return a fully-qualified customField resource name string.
351
+ *
352
+ * @param {string} network_code
353
+ * @param {string} custom_field
354
+ * @returns {string} Resource name string.
355
+ */
356
+ customFieldPath(networkCode: string, customField: string): string;
357
+ /**
358
+ * Parse the network_code from CustomField resource.
359
+ *
360
+ * @param {string} customFieldName
361
+ * A fully-qualified path representing CustomField resource.
362
+ * @returns {string} A string representing the network_code.
363
+ */
364
+ matchNetworkCodeFromCustomFieldName(customFieldName: string): string | number;
365
+ /**
366
+ * Parse the custom_field from CustomField resource.
367
+ *
368
+ * @param {string} customFieldName
369
+ * A fully-qualified path representing CustomField resource.
370
+ * @returns {string} A string representing the custom_field.
371
+ */
372
+ matchCustomFieldFromCustomFieldName(customFieldName: string): string | number;
373
+ /**
374
+ * Return a fully-qualified customTargetingKey resource name string.
375
+ *
376
+ * @param {string} network_code
377
+ * @param {string} custom_targeting_key
378
+ * @returns {string} Resource name string.
379
+ */
380
+ customTargetingKeyPath(networkCode: string, customTargetingKey: string): string;
381
+ /**
382
+ * Parse the network_code from CustomTargetingKey resource.
383
+ *
384
+ * @param {string} customTargetingKeyName
385
+ * A fully-qualified path representing CustomTargetingKey resource.
386
+ * @returns {string} A string representing the network_code.
387
+ */
388
+ matchNetworkCodeFromCustomTargetingKeyName(customTargetingKeyName: string): string | number;
389
+ /**
390
+ * Parse the custom_targeting_key from CustomTargetingKey resource.
391
+ *
392
+ * @param {string} customTargetingKeyName
393
+ * A fully-qualified path representing CustomTargetingKey resource.
394
+ * @returns {string} A string representing the custom_targeting_key.
395
+ */
396
+ matchCustomTargetingKeyFromCustomTargetingKeyName(customTargetingKeyName: string): string | number;
397
+ /**
398
+ * Return a fully-qualified customTargetingValue resource name string.
399
+ *
400
+ * @param {string} network_code
401
+ * @param {string} custom_targeting_key
402
+ * @param {string} custom_targeting_value
403
+ * @returns {string} Resource name string.
404
+ */
405
+ customTargetingValuePath(networkCode: string, customTargetingKey: string, customTargetingValue: string): string;
406
+ /**
407
+ * Parse the network_code from CustomTargetingValue resource.
408
+ *
409
+ * @param {string} customTargetingValueName
410
+ * A fully-qualified path representing CustomTargetingValue resource.
411
+ * @returns {string} A string representing the network_code.
412
+ */
413
+ matchNetworkCodeFromCustomTargetingValueName(customTargetingValueName: string): string | number;
414
+ /**
415
+ * Parse the custom_targeting_key from CustomTargetingValue resource.
416
+ *
417
+ * @param {string} customTargetingValueName
418
+ * A fully-qualified path representing CustomTargetingValue resource.
419
+ * @returns {string} A string representing the custom_targeting_key.
420
+ */
421
+ matchCustomTargetingKeyFromCustomTargetingValueName(customTargetingValueName: string): string | number;
422
+ /**
423
+ * Parse the custom_targeting_value from CustomTargetingValue resource.
424
+ *
425
+ * @param {string} customTargetingValueName
426
+ * A fully-qualified path representing CustomTargetingValue resource.
427
+ * @returns {string} A string representing the custom_targeting_value.
428
+ */
429
+ matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName: string): string | number;
430
+ /**
431
+ * Return a fully-qualified entitySignalsMapping resource name string.
432
+ *
433
+ * @param {string} network_code
434
+ * @param {string} entity_signals_mapping
435
+ * @returns {string} Resource name string.
436
+ */
437
+ entitySignalsMappingPath(networkCode: string, entitySignalsMapping: string): string;
438
+ /**
439
+ * Parse the network_code from EntitySignalsMapping resource.
440
+ *
441
+ * @param {string} entitySignalsMappingName
442
+ * A fully-qualified path representing EntitySignalsMapping resource.
443
+ * @returns {string} A string representing the network_code.
444
+ */
445
+ matchNetworkCodeFromEntitySignalsMappingName(entitySignalsMappingName: string): string | number;
446
+ /**
447
+ * Parse the entity_signals_mapping from EntitySignalsMapping resource.
448
+ *
449
+ * @param {string} entitySignalsMappingName
450
+ * A fully-qualified path representing EntitySignalsMapping resource.
451
+ * @returns {string} A string representing the entity_signals_mapping.
452
+ */
453
+ matchEntitySignalsMappingFromEntitySignalsMappingName(entitySignalsMappingName: string): string | number;
454
+ /**
455
+ * Return a fully-qualified label resource name string.
456
+ *
457
+ * @param {string} network_code
458
+ * @param {string} label
459
+ * @returns {string} Resource name string.
460
+ */
461
+ labelPath(networkCode: string, label: string): string;
462
+ /**
463
+ * Parse the network_code from Label resource.
464
+ *
465
+ * @param {string} labelName
466
+ * A fully-qualified path representing Label resource.
467
+ * @returns {string} A string representing the network_code.
468
+ */
469
+ matchNetworkCodeFromLabelName(labelName: string): string | number;
470
+ /**
471
+ * Parse the label from Label resource.
472
+ *
473
+ * @param {string} labelName
474
+ * A fully-qualified path representing Label resource.
475
+ * @returns {string} A string representing the label.
476
+ */
477
+ matchLabelFromLabelName(labelName: string): string | number;
478
+ /**
479
+ * Return a fully-qualified network resource name string.
480
+ *
481
+ * @param {string} network_code
482
+ * @returns {string} Resource name string.
483
+ */
484
+ networkPath(networkCode: string): string;
485
+ /**
486
+ * Parse the network_code from Network resource.
487
+ *
488
+ * @param {string} networkName
489
+ * A fully-qualified path representing Network resource.
490
+ * @returns {string} A string representing the network_code.
491
+ */
492
+ matchNetworkCodeFromNetworkName(networkName: string): string | number;
493
+ /**
494
+ * Return a fully-qualified order resource name string.
495
+ *
496
+ * @param {string} network_code
497
+ * @param {string} order
498
+ * @returns {string} Resource name string.
499
+ */
500
+ orderPath(networkCode: string, order: string): string;
501
+ /**
502
+ * Parse the network_code from Order resource.
503
+ *
504
+ * @param {string} orderName
505
+ * A fully-qualified path representing Order resource.
506
+ * @returns {string} A string representing the network_code.
507
+ */
508
+ matchNetworkCodeFromOrderName(orderName: string): string | number;
509
+ /**
510
+ * Parse the order from Order resource.
511
+ *
512
+ * @param {string} orderName
513
+ * A fully-qualified path representing Order resource.
514
+ * @returns {string} A string representing the order.
515
+ */
516
+ matchOrderFromOrderName(orderName: string): string | number;
517
+ /**
518
+ * Return a fully-qualified placement resource name string.
519
+ *
520
+ * @param {string} network_code
521
+ * @param {string} placement
522
+ * @returns {string} Resource name string.
523
+ */
524
+ placementPath(networkCode: string, placement: string): string;
525
+ /**
526
+ * Parse the network_code from Placement resource.
527
+ *
528
+ * @param {string} placementName
529
+ * A fully-qualified path representing Placement resource.
530
+ * @returns {string} A string representing the network_code.
531
+ */
532
+ matchNetworkCodeFromPlacementName(placementName: string): string | number;
533
+ /**
534
+ * Parse the placement from Placement resource.
535
+ *
536
+ * @param {string} placementName
537
+ * A fully-qualified path representing Placement resource.
538
+ * @returns {string} A string representing the placement.
539
+ */
540
+ matchPlacementFromPlacementName(placementName: string): string | number;
541
+ /**
542
+ * Return a fully-qualified report resource name string.
543
+ *
544
+ * @param {string} network_code
545
+ * @param {string} report
546
+ * @returns {string} Resource name string.
547
+ */
548
+ reportPath(networkCode: string, report: string): string;
549
+ /**
550
+ * Parse the network_code from Report resource.
551
+ *
552
+ * @param {string} reportName
553
+ * A fully-qualified path representing Report resource.
554
+ * @returns {string} A string representing the network_code.
555
+ */
556
+ matchNetworkCodeFromReportName(reportName: string): string | number;
557
+ /**
558
+ * Parse the report from Report resource.
559
+ *
560
+ * @param {string} reportName
561
+ * A fully-qualified path representing Report resource.
562
+ * @returns {string} A string representing the report.
563
+ */
564
+ matchReportFromReportName(reportName: string): string | number;
565
+ /**
566
+ * Return a fully-qualified role resource name string.
567
+ *
568
+ * @param {string} network_code
569
+ * @param {string} role
570
+ * @returns {string} Resource name string.
571
+ */
572
+ rolePath(networkCode: string, role: string): string;
573
+ /**
574
+ * Parse the network_code from Role resource.
575
+ *
576
+ * @param {string} roleName
577
+ * A fully-qualified path representing Role resource.
578
+ * @returns {string} A string representing the network_code.
579
+ */
580
+ matchNetworkCodeFromRoleName(roleName: string): string | number;
581
+ /**
582
+ * Parse the role from Role resource.
583
+ *
584
+ * @param {string} roleName
585
+ * A fully-qualified path representing Role resource.
586
+ * @returns {string} A string representing the role.
587
+ */
588
+ matchRoleFromRoleName(roleName: string): string | number;
589
+ /**
590
+ * Return a fully-qualified taxonomyCategory resource name string.
591
+ *
592
+ * @param {string} network_code
593
+ * @param {string} taxonomy_category
594
+ * @returns {string} Resource name string.
595
+ */
596
+ taxonomyCategoryPath(networkCode: string, taxonomyCategory: string): string;
597
+ /**
598
+ * Parse the network_code from TaxonomyCategory resource.
599
+ *
600
+ * @param {string} taxonomyCategoryName
601
+ * A fully-qualified path representing TaxonomyCategory resource.
602
+ * @returns {string} A string representing the network_code.
603
+ */
604
+ matchNetworkCodeFromTaxonomyCategoryName(taxonomyCategoryName: string): string | number;
605
+ /**
606
+ * Parse the taxonomy_category from TaxonomyCategory resource.
607
+ *
608
+ * @param {string} taxonomyCategoryName
609
+ * A fully-qualified path representing TaxonomyCategory resource.
610
+ * @returns {string} A string representing the taxonomy_category.
611
+ */
612
+ matchTaxonomyCategoryFromTaxonomyCategoryName(taxonomyCategoryName: string): string | number;
613
+ /**
614
+ * Return a fully-qualified team resource name string.
615
+ *
616
+ * @param {string} network_code
617
+ * @param {string} team
618
+ * @returns {string} Resource name string.
619
+ */
620
+ teamPath(networkCode: string, team: string): string;
621
+ /**
622
+ * Parse the network_code from Team resource.
623
+ *
624
+ * @param {string} teamName
625
+ * A fully-qualified path representing Team resource.
626
+ * @returns {string} A string representing the network_code.
627
+ */
628
+ matchNetworkCodeFromTeamName(teamName: string): string | number;
629
+ /**
630
+ * Parse the team from Team resource.
631
+ *
632
+ * @param {string} teamName
633
+ * A fully-qualified path representing Team resource.
634
+ * @returns {string} A string representing the team.
635
+ */
636
+ matchTeamFromTeamName(teamName: string): string | number;
637
+ /**
638
+ * Return a fully-qualified user resource name string.
639
+ *
640
+ * @param {string} network_code
641
+ * @param {string} user
642
+ * @returns {string} Resource name string.
643
+ */
644
+ userPath(networkCode: string, user: string): string;
645
+ /**
646
+ * Parse the network_code from User resource.
647
+ *
648
+ * @param {string} userName
649
+ * A fully-qualified path representing User resource.
650
+ * @returns {string} A string representing the network_code.
651
+ */
652
+ matchNetworkCodeFromUserName(userName: string): string | number;
653
+ /**
654
+ * Parse the user from User resource.
655
+ *
656
+ * @param {string} userName
657
+ * A fully-qualified path representing User resource.
658
+ * @returns {string} A string representing the user.
659
+ */
660
+ matchUserFromUserName(userName: string): string | number;
661
+ /**
662
+ * Terminate the gRPC channel and close the client.
663
+ *
664
+ * The client will no longer be usable and all future behavior is undefined.
665
+ * @returns {Promise} A promise that resolves when the client is closed.
666
+ */
667
+ close(): Promise<void>;
668
+ }