@googleapis/merchantapi 5.0.0 → 8.0.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 +50 -0
- package/README.md +9 -0
- package/accounts_v1beta.ts +6487 -518
- package/build/accounts_v1beta.d.ts +4773 -229
- package/build/accounts_v1beta.js +560 -12
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +349 -14
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +427 -18
- package/build/datasources_v1beta.js.map +1 -1
- package/build/index.d.ts +11 -1
- package/build/index.js +7 -1
- package/build/index.js.map +1 -1
- package/build/inventories_v1beta.d.ts +349 -15
- package/build/inventories_v1beta.js.map +1 -1
- package/build/issueresolution_v1beta.d.ts +1027 -0
- package/build/issueresolution_v1beta.js +196 -0
- package/build/issueresolution_v1beta.js.map +1 -0
- package/build/lfp_v1beta.d.ts +451 -18
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +283 -12
- package/build/notifications_v1beta.js.map +1 -1
- package/build/ordertracking_v1beta.d.ts +459 -0
- package/build/ordertracking_v1beta.js +91 -0
- package/build/ordertracking_v1beta.js.map +1 -0
- package/build/products_v1beta.d.ts +358 -55
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +178 -11
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +55 -4
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +61 -4
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +443 -19
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +371 -21
- package/datasources_v1beta.ts +453 -26
- package/index.ts +24 -1
- package/inventories_v1beta.ts +367 -24
- package/issueresolution_v1beta.ts +1426 -0
- package/lfp_v1beta.ts +477 -26
- package/notifications_v1beta.ts +299 -21
- package/ordertracking_v1beta.ts +599 -0
- package/package.json +2 -2
- package/products_v1beta.ts +376 -61
- package/promotions_v1beta.ts +188 -15
- package/quota_v1beta.ts +57 -6
- package/reports_v1beta.ts +65 -5
- package/reviews_v1beta.ts +471 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient,
|
|
2
|
+
import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
|
|
3
3
|
import { Readable } from 'stream';
|
|
4
4
|
export declare namespace merchantapi_conversions_v1beta {
|
|
5
5
|
export interface Options extends GlobalOptions {
|
|
@@ -228,7 +228,7 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
228
228
|
*/
|
|
229
229
|
eventTime?: string | null;
|
|
230
230
|
/**
|
|
231
|
-
* Optional. The product expiration time. This field will not
|
|
231
|
+
* Optional. The product expiration time. This field will not be set if the notification is sent for a product deletion event.
|
|
232
232
|
*/
|
|
233
233
|
expirationTime?: string | null;
|
|
234
234
|
/**
|
|
@@ -263,84 +263,419 @@ export declare namespace merchantapi_conversions_v1beta {
|
|
|
263
263
|
constructor(context: APIRequestContext);
|
|
264
264
|
/**
|
|
265
265
|
* Creates a new conversion source.
|
|
266
|
+
* @example
|
|
267
|
+
* ```js
|
|
268
|
+
* // Before running the sample:
|
|
269
|
+
* // - Enable the API at:
|
|
270
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
271
|
+
* // - Login into gcloud by running:
|
|
272
|
+
* // ```sh
|
|
273
|
+
* // $ gcloud auth application-default login
|
|
274
|
+
* // ```
|
|
275
|
+
* // - Install the npm module by running:
|
|
276
|
+
* // ```sh
|
|
277
|
+
* // $ npm install googleapis
|
|
278
|
+
* // ```
|
|
279
|
+
*
|
|
280
|
+
* const {google} = require('googleapis');
|
|
281
|
+
* const merchantapi = google.merchantapi('conversions_v1beta');
|
|
282
|
+
*
|
|
283
|
+
* async function main() {
|
|
284
|
+
* const auth = new google.auth.GoogleAuth({
|
|
285
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
286
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
287
|
+
* });
|
|
288
|
+
*
|
|
289
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
290
|
+
* const authClient = await auth.getClient();
|
|
291
|
+
* google.options({auth: authClient});
|
|
292
|
+
*
|
|
293
|
+
* // Do the magic
|
|
294
|
+
* const res = await merchantapi.accounts.conversionSources.create({
|
|
295
|
+
* // Required. The merchant account that will own the new conversion source. Format: `accounts/{account\}`
|
|
296
|
+
* parent: 'accounts/my-account',
|
|
297
|
+
*
|
|
298
|
+
* // Request body metadata
|
|
299
|
+
* requestBody: {
|
|
300
|
+
* // request body parameters
|
|
301
|
+
* // {
|
|
302
|
+
* // "controller": "my_controller",
|
|
303
|
+
* // "expireTime": "my_expireTime",
|
|
304
|
+
* // "googleAnalyticsLink": {},
|
|
305
|
+
* // "merchantCenterDestination": {},
|
|
306
|
+
* // "name": "my_name",
|
|
307
|
+
* // "state": "my_state"
|
|
308
|
+
* // }
|
|
309
|
+
* },
|
|
310
|
+
* });
|
|
311
|
+
* console.log(res.data);
|
|
312
|
+
*
|
|
313
|
+
* // Example response
|
|
314
|
+
* // {
|
|
315
|
+
* // "controller": "my_controller",
|
|
316
|
+
* // "expireTime": "my_expireTime",
|
|
317
|
+
* // "googleAnalyticsLink": {},
|
|
318
|
+
* // "merchantCenterDestination": {},
|
|
319
|
+
* // "name": "my_name",
|
|
320
|
+
* // "state": "my_state"
|
|
321
|
+
* // }
|
|
322
|
+
* }
|
|
323
|
+
*
|
|
324
|
+
* main().catch(e => {
|
|
325
|
+
* console.error(e);
|
|
326
|
+
* throw e;
|
|
327
|
+
* });
|
|
328
|
+
*
|
|
329
|
+
* ```
|
|
266
330
|
*
|
|
267
331
|
* @param params - Parameters for request
|
|
268
332
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
269
333
|
* @param callback - Optional callback that handles the response.
|
|
270
334
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
271
335
|
*/
|
|
272
|
-
create(params: Params$Resource$Accounts$Conversionsources$Create, options: StreamMethodOptions):
|
|
273
|
-
create(params?: Params$Resource$Accounts$Conversionsources$Create, options?: MethodOptions):
|
|
336
|
+
create(params: Params$Resource$Accounts$Conversionsources$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
337
|
+
create(params?: Params$Resource$Accounts$Conversionsources$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConversionSource>>;
|
|
274
338
|
create(params: Params$Resource$Accounts$Conversionsources$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
275
339
|
create(params: Params$Resource$Accounts$Conversionsources$Create, options: MethodOptions | BodyResponseCallback<Schema$ConversionSource>, callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
276
340
|
create(params: Params$Resource$Accounts$Conversionsources$Create, callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
277
341
|
create(callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
278
342
|
/**
|
|
279
343
|
* Archives an existing conversion source. If the conversion source is a Merchant Center Destination, it will be recoverable for 30 days. If the conversion source is a Google Analytics Link, it will be deleted immediately and can be restored by creating a new one.
|
|
344
|
+
* @example
|
|
345
|
+
* ```js
|
|
346
|
+
* // Before running the sample:
|
|
347
|
+
* // - Enable the API at:
|
|
348
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
349
|
+
* // - Login into gcloud by running:
|
|
350
|
+
* // ```sh
|
|
351
|
+
* // $ gcloud auth application-default login
|
|
352
|
+
* // ```
|
|
353
|
+
* // - Install the npm module by running:
|
|
354
|
+
* // ```sh
|
|
355
|
+
* // $ npm install googleapis
|
|
356
|
+
* // ```
|
|
357
|
+
*
|
|
358
|
+
* const {google} = require('googleapis');
|
|
359
|
+
* const merchantapi = google.merchantapi('conversions_v1beta');
|
|
360
|
+
*
|
|
361
|
+
* async function main() {
|
|
362
|
+
* const auth = new google.auth.GoogleAuth({
|
|
363
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
364
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
365
|
+
* });
|
|
366
|
+
*
|
|
367
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
368
|
+
* const authClient = await auth.getClient();
|
|
369
|
+
* google.options({auth: authClient});
|
|
370
|
+
*
|
|
371
|
+
* // Do the magic
|
|
372
|
+
* const res = await merchantapi.accounts.conversionSources.delete({
|
|
373
|
+
* // Required. The name of the conversion source to be deleted. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
374
|
+
* name: 'accounts/my-account/conversionSources/my-conversionSource',
|
|
375
|
+
* });
|
|
376
|
+
* console.log(res.data);
|
|
377
|
+
*
|
|
378
|
+
* // Example response
|
|
379
|
+
* // {}
|
|
380
|
+
* }
|
|
381
|
+
*
|
|
382
|
+
* main().catch(e => {
|
|
383
|
+
* console.error(e);
|
|
384
|
+
* throw e;
|
|
385
|
+
* });
|
|
386
|
+
*
|
|
387
|
+
* ```
|
|
280
388
|
*
|
|
281
389
|
* @param params - Parameters for request
|
|
282
390
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
283
391
|
* @param callback - Optional callback that handles the response.
|
|
284
392
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
285
393
|
*/
|
|
286
|
-
delete(params: Params$Resource$Accounts$Conversionsources$Delete, options: StreamMethodOptions):
|
|
287
|
-
delete(params?: Params$Resource$Accounts$Conversionsources$Delete, options?: MethodOptions):
|
|
394
|
+
delete(params: Params$Resource$Accounts$Conversionsources$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
395
|
+
delete(params?: Params$Resource$Accounts$Conversionsources$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
|
|
288
396
|
delete(params: Params$Resource$Accounts$Conversionsources$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
289
397
|
delete(params: Params$Resource$Accounts$Conversionsources$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
290
398
|
delete(params: Params$Resource$Accounts$Conversionsources$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
291
399
|
delete(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
292
400
|
/**
|
|
293
401
|
* Fetches a conversion source.
|
|
402
|
+
* @example
|
|
403
|
+
* ```js
|
|
404
|
+
* // Before running the sample:
|
|
405
|
+
* // - Enable the API at:
|
|
406
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
407
|
+
* // - Login into gcloud by running:
|
|
408
|
+
* // ```sh
|
|
409
|
+
* // $ gcloud auth application-default login
|
|
410
|
+
* // ```
|
|
411
|
+
* // - Install the npm module by running:
|
|
412
|
+
* // ```sh
|
|
413
|
+
* // $ npm install googleapis
|
|
414
|
+
* // ```
|
|
415
|
+
*
|
|
416
|
+
* const {google} = require('googleapis');
|
|
417
|
+
* const merchantapi = google.merchantapi('conversions_v1beta');
|
|
418
|
+
*
|
|
419
|
+
* async function main() {
|
|
420
|
+
* const auth = new google.auth.GoogleAuth({
|
|
421
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
422
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
423
|
+
* });
|
|
424
|
+
*
|
|
425
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
426
|
+
* const authClient = await auth.getClient();
|
|
427
|
+
* google.options({auth: authClient});
|
|
428
|
+
*
|
|
429
|
+
* // Do the magic
|
|
430
|
+
* const res = await merchantapi.accounts.conversionSources.get({
|
|
431
|
+
* // Required. The name of the conversion source to be fetched. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
432
|
+
* name: 'accounts/my-account/conversionSources/my-conversionSource',
|
|
433
|
+
* });
|
|
434
|
+
* console.log(res.data);
|
|
435
|
+
*
|
|
436
|
+
* // Example response
|
|
437
|
+
* // {
|
|
438
|
+
* // "controller": "my_controller",
|
|
439
|
+
* // "expireTime": "my_expireTime",
|
|
440
|
+
* // "googleAnalyticsLink": {},
|
|
441
|
+
* // "merchantCenterDestination": {},
|
|
442
|
+
* // "name": "my_name",
|
|
443
|
+
* // "state": "my_state"
|
|
444
|
+
* // }
|
|
445
|
+
* }
|
|
446
|
+
*
|
|
447
|
+
* main().catch(e => {
|
|
448
|
+
* console.error(e);
|
|
449
|
+
* throw e;
|
|
450
|
+
* });
|
|
451
|
+
*
|
|
452
|
+
* ```
|
|
294
453
|
*
|
|
295
454
|
* @param params - Parameters for request
|
|
296
455
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
297
456
|
* @param callback - Optional callback that handles the response.
|
|
298
457
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
299
458
|
*/
|
|
300
|
-
get(params: Params$Resource$Accounts$Conversionsources$Get, options: StreamMethodOptions):
|
|
301
|
-
get(params?: Params$Resource$Accounts$Conversionsources$Get, options?: MethodOptions):
|
|
459
|
+
get(params: Params$Resource$Accounts$Conversionsources$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
460
|
+
get(params?: Params$Resource$Accounts$Conversionsources$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConversionSource>>;
|
|
302
461
|
get(params: Params$Resource$Accounts$Conversionsources$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
303
462
|
get(params: Params$Resource$Accounts$Conversionsources$Get, options: MethodOptions | BodyResponseCallback<Schema$ConversionSource>, callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
304
463
|
get(params: Params$Resource$Accounts$Conversionsources$Get, callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
305
464
|
get(callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
306
465
|
/**
|
|
307
466
|
* Retrieves the list of conversion sources the caller has access to.
|
|
467
|
+
* @example
|
|
468
|
+
* ```js
|
|
469
|
+
* // Before running the sample:
|
|
470
|
+
* // - Enable the API at:
|
|
471
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
472
|
+
* // - Login into gcloud by running:
|
|
473
|
+
* // ```sh
|
|
474
|
+
* // $ gcloud auth application-default login
|
|
475
|
+
* // ```
|
|
476
|
+
* // - Install the npm module by running:
|
|
477
|
+
* // ```sh
|
|
478
|
+
* // $ npm install googleapis
|
|
479
|
+
* // ```
|
|
480
|
+
*
|
|
481
|
+
* const {google} = require('googleapis');
|
|
482
|
+
* const merchantapi = google.merchantapi('conversions_v1beta');
|
|
483
|
+
*
|
|
484
|
+
* async function main() {
|
|
485
|
+
* const auth = new google.auth.GoogleAuth({
|
|
486
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
487
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
488
|
+
* });
|
|
489
|
+
*
|
|
490
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
491
|
+
* const authClient = await auth.getClient();
|
|
492
|
+
* google.options({auth: authClient});
|
|
493
|
+
*
|
|
494
|
+
* // Do the magic
|
|
495
|
+
* const res = await merchantapi.accounts.conversionSources.list({
|
|
496
|
+
* // Optional. The maximum number of conversion sources to return in a page. If no `page_size` is specified, `100` is used as the default value. The maximum value is `200`. Values above `200` will be coerced to `200`. Regardless of pagination, at most `200` conversion sources are returned in total.
|
|
497
|
+
* pageSize: 'placeholder-value',
|
|
498
|
+
* // Optional. Page token.
|
|
499
|
+
* pageToken: 'placeholder-value',
|
|
500
|
+
* // Required. The merchant account who owns the collection of conversion sources. Format: `accounts/{account\}`
|
|
501
|
+
* parent: 'accounts/my-account',
|
|
502
|
+
* // Optional. Show deleted (archived) conversion sources. By default, deleted conversion sources are not returned.
|
|
503
|
+
* showDeleted: 'placeholder-value',
|
|
504
|
+
* });
|
|
505
|
+
* console.log(res.data);
|
|
506
|
+
*
|
|
507
|
+
* // Example response
|
|
508
|
+
* // {
|
|
509
|
+
* // "conversionSources": [],
|
|
510
|
+
* // "nextPageToken": "my_nextPageToken"
|
|
511
|
+
* // }
|
|
512
|
+
* }
|
|
513
|
+
*
|
|
514
|
+
* main().catch(e => {
|
|
515
|
+
* console.error(e);
|
|
516
|
+
* throw e;
|
|
517
|
+
* });
|
|
518
|
+
*
|
|
519
|
+
* ```
|
|
308
520
|
*
|
|
309
521
|
* @param params - Parameters for request
|
|
310
522
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
311
523
|
* @param callback - Optional callback that handles the response.
|
|
312
524
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
313
525
|
*/
|
|
314
|
-
list(params: Params$Resource$Accounts$Conversionsources$List, options: StreamMethodOptions):
|
|
315
|
-
list(params?: Params$Resource$Accounts$Conversionsources$List, options?: MethodOptions):
|
|
526
|
+
list(params: Params$Resource$Accounts$Conversionsources$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
527
|
+
list(params?: Params$Resource$Accounts$Conversionsources$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListConversionSourcesResponse>>;
|
|
316
528
|
list(params: Params$Resource$Accounts$Conversionsources$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
317
529
|
list(params: Params$Resource$Accounts$Conversionsources$List, options: MethodOptions | BodyResponseCallback<Schema$ListConversionSourcesResponse>, callback: BodyResponseCallback<Schema$ListConversionSourcesResponse>): void;
|
|
318
530
|
list(params: Params$Resource$Accounts$Conversionsources$List, callback: BodyResponseCallback<Schema$ListConversionSourcesResponse>): void;
|
|
319
531
|
list(callback: BodyResponseCallback<Schema$ListConversionSourcesResponse>): void;
|
|
320
532
|
/**
|
|
321
533
|
* Updates information of an existing conversion source. Available only for Merchant Center Destination conversion sources.
|
|
534
|
+
* @example
|
|
535
|
+
* ```js
|
|
536
|
+
* // Before running the sample:
|
|
537
|
+
* // - Enable the API at:
|
|
538
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
539
|
+
* // - Login into gcloud by running:
|
|
540
|
+
* // ```sh
|
|
541
|
+
* // $ gcloud auth application-default login
|
|
542
|
+
* // ```
|
|
543
|
+
* // - Install the npm module by running:
|
|
544
|
+
* // ```sh
|
|
545
|
+
* // $ npm install googleapis
|
|
546
|
+
* // ```
|
|
547
|
+
*
|
|
548
|
+
* const {google} = require('googleapis');
|
|
549
|
+
* const merchantapi = google.merchantapi('conversions_v1beta');
|
|
550
|
+
*
|
|
551
|
+
* async function main() {
|
|
552
|
+
* const auth = new google.auth.GoogleAuth({
|
|
553
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
554
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
555
|
+
* });
|
|
556
|
+
*
|
|
557
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
558
|
+
* const authClient = await auth.getClient();
|
|
559
|
+
* google.options({auth: authClient});
|
|
560
|
+
*
|
|
561
|
+
* // Do the magic
|
|
562
|
+
* const res = await merchantapi.accounts.conversionSources.patch({
|
|
563
|
+
* // Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4\}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.
|
|
564
|
+
* name: 'accounts/my-account/conversionSources/my-conversionSource',
|
|
565
|
+
* // Optional. List of fields being updated.
|
|
566
|
+
* updateMask: 'placeholder-value',
|
|
567
|
+
*
|
|
568
|
+
* // Request body metadata
|
|
569
|
+
* requestBody: {
|
|
570
|
+
* // request body parameters
|
|
571
|
+
* // {
|
|
572
|
+
* // "controller": "my_controller",
|
|
573
|
+
* // "expireTime": "my_expireTime",
|
|
574
|
+
* // "googleAnalyticsLink": {},
|
|
575
|
+
* // "merchantCenterDestination": {},
|
|
576
|
+
* // "name": "my_name",
|
|
577
|
+
* // "state": "my_state"
|
|
578
|
+
* // }
|
|
579
|
+
* },
|
|
580
|
+
* });
|
|
581
|
+
* console.log(res.data);
|
|
582
|
+
*
|
|
583
|
+
* // Example response
|
|
584
|
+
* // {
|
|
585
|
+
* // "controller": "my_controller",
|
|
586
|
+
* // "expireTime": "my_expireTime",
|
|
587
|
+
* // "googleAnalyticsLink": {},
|
|
588
|
+
* // "merchantCenterDestination": {},
|
|
589
|
+
* // "name": "my_name",
|
|
590
|
+
* // "state": "my_state"
|
|
591
|
+
* // }
|
|
592
|
+
* }
|
|
593
|
+
*
|
|
594
|
+
* main().catch(e => {
|
|
595
|
+
* console.error(e);
|
|
596
|
+
* throw e;
|
|
597
|
+
* });
|
|
598
|
+
*
|
|
599
|
+
* ```
|
|
322
600
|
*
|
|
323
601
|
* @param params - Parameters for request
|
|
324
602
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
325
603
|
* @param callback - Optional callback that handles the response.
|
|
326
604
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
327
605
|
*/
|
|
328
|
-
patch(params: Params$Resource$Accounts$Conversionsources$Patch, options: StreamMethodOptions):
|
|
329
|
-
patch(params?: Params$Resource$Accounts$Conversionsources$Patch, options?: MethodOptions):
|
|
606
|
+
patch(params: Params$Resource$Accounts$Conversionsources$Patch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
607
|
+
patch(params?: Params$Resource$Accounts$Conversionsources$Patch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConversionSource>>;
|
|
330
608
|
patch(params: Params$Resource$Accounts$Conversionsources$Patch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
331
609
|
patch(params: Params$Resource$Accounts$Conversionsources$Patch, options: MethodOptions | BodyResponseCallback<Schema$ConversionSource>, callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
332
610
|
patch(params: Params$Resource$Accounts$Conversionsources$Patch, callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
333
611
|
patch(callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
334
612
|
/**
|
|
335
613
|
* Re-enables an archived conversion source. Only Available for Merchant Center Destination conversion sources.
|
|
614
|
+
* @example
|
|
615
|
+
* ```js
|
|
616
|
+
* // Before running the sample:
|
|
617
|
+
* // - Enable the API at:
|
|
618
|
+
* // https://console.developers.google.com/apis/api/merchantapi.googleapis.com
|
|
619
|
+
* // - Login into gcloud by running:
|
|
620
|
+
* // ```sh
|
|
621
|
+
* // $ gcloud auth application-default login
|
|
622
|
+
* // ```
|
|
623
|
+
* // - Install the npm module by running:
|
|
624
|
+
* // ```sh
|
|
625
|
+
* // $ npm install googleapis
|
|
626
|
+
* // ```
|
|
627
|
+
*
|
|
628
|
+
* const {google} = require('googleapis');
|
|
629
|
+
* const merchantapi = google.merchantapi('conversions_v1beta');
|
|
630
|
+
*
|
|
631
|
+
* async function main() {
|
|
632
|
+
* const auth = new google.auth.GoogleAuth({
|
|
633
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
634
|
+
* scopes: ['https://www.googleapis.com/auth/content'],
|
|
635
|
+
* });
|
|
636
|
+
*
|
|
637
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
638
|
+
* const authClient = await auth.getClient();
|
|
639
|
+
* google.options({auth: authClient});
|
|
640
|
+
*
|
|
641
|
+
* // Do the magic
|
|
642
|
+
* const res = await merchantapi.accounts.conversionSources.undelete({
|
|
643
|
+
* // Required. The name of the conversion source to be undeleted. Format: `accounts/{account\}/conversionSources/{conversion_source\}`
|
|
644
|
+
* name: 'accounts/my-account/conversionSources/my-conversionSource',
|
|
645
|
+
*
|
|
646
|
+
* // Request body metadata
|
|
647
|
+
* requestBody: {
|
|
648
|
+
* // request body parameters
|
|
649
|
+
* // {}
|
|
650
|
+
* },
|
|
651
|
+
* });
|
|
652
|
+
* console.log(res.data);
|
|
653
|
+
*
|
|
654
|
+
* // Example response
|
|
655
|
+
* // {
|
|
656
|
+
* // "controller": "my_controller",
|
|
657
|
+
* // "expireTime": "my_expireTime",
|
|
658
|
+
* // "googleAnalyticsLink": {},
|
|
659
|
+
* // "merchantCenterDestination": {},
|
|
660
|
+
* // "name": "my_name",
|
|
661
|
+
* // "state": "my_state"
|
|
662
|
+
* // }
|
|
663
|
+
* }
|
|
664
|
+
*
|
|
665
|
+
* main().catch(e => {
|
|
666
|
+
* console.error(e);
|
|
667
|
+
* throw e;
|
|
668
|
+
* });
|
|
669
|
+
*
|
|
670
|
+
* ```
|
|
336
671
|
*
|
|
337
672
|
* @param params - Parameters for request
|
|
338
673
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
339
674
|
* @param callback - Optional callback that handles the response.
|
|
340
675
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
341
676
|
*/
|
|
342
|
-
undelete(params: Params$Resource$Accounts$Conversionsources$Undelete, options: StreamMethodOptions):
|
|
343
|
-
undelete(params?: Params$Resource$Accounts$Conversionsources$Undelete, options?: MethodOptions):
|
|
677
|
+
undelete(params: Params$Resource$Accounts$Conversionsources$Undelete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
678
|
+
undelete(params?: Params$Resource$Accounts$Conversionsources$Undelete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConversionSource>>;
|
|
344
679
|
undelete(params: Params$Resource$Accounts$Conversionsources$Undelete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
345
680
|
undelete(params: Params$Resource$Accounts$Conversionsources$Undelete, options: MethodOptions | BodyResponseCallback<Schema$ConversionSource>, callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
346
681
|
undelete(params: Params$Resource$Accounts$Conversionsources$Undelete, callback: BodyResponseCallback<Schema$ConversionSource>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversions_v1beta.js","sourceRoot":"","sources":["../conversions_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,8BAA8B,
|
|
1
|
+
{"version":3,"file":"conversions_v1beta.js","sourceRoot":"","sources":["../conversions_v1beta.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,8BAA8B,CA8tC9C;AA9tCD,WAAiB,8BAA8B;IAgE7C;;;;;;;;;;OAUG;IACH,MAAa,WAAW;QAItB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,CAAC;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