@googleapis/merchantapi 3.0.0 → 4.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 +18 -0
- package/accounts_v1beta.ts +359 -26
- package/build/accounts_v1beta.d.ts +194 -26
- package/build/accounts_v1beta.js +64 -0
- package/build/accounts_v1beta.js.map +1 -1
- package/build/conversions_v1beta.d.ts +10 -6
- package/build/conversions_v1beta.js.map +1 -1
- package/build/datasources_v1beta.d.ts +28 -7
- package/build/datasources_v1beta.js.map +1 -1
- package/build/inventories_v1beta.d.ts +10 -6
- package/build/inventories_v1beta.js.map +1 -1
- package/build/lfp_v1beta.d.ts +10 -6
- package/build/lfp_v1beta.js.map +1 -1
- package/build/notifications_v1beta.d.ts +10 -6
- package/build/notifications_v1beta.js.map +1 -1
- package/build/products_v1beta.d.ts +43 -7
- package/build/products_v1beta.js +32 -0
- package/build/products_v1beta.js.map +1 -1
- package/build/promotions_v1beta.d.ts +10 -6
- package/build/promotions_v1beta.js.map +1 -1
- package/build/quota_v1beta.d.ts +10 -6
- package/build/quota_v1beta.js.map +1 -1
- package/build/reports_v1beta.d.ts +10 -6
- package/build/reports_v1beta.js.map +1 -1
- package/build/reviews_v1beta.d.ts +12 -8
- package/build/reviews_v1beta.js.map +1 -1
- package/conversions_v1beta.ts +10 -6
- package/datasources_v1beta.ts +28 -7
- package/inventories_v1beta.ts +10 -6
- package/lfp_v1beta.ts +10 -6
- package/notifications_v1beta.ts +10 -6
- package/package.json +1 -1
- package/products_v1beta.ts +119 -7
- package/promotions_v1beta.ts +10 -6
- package/quota_v1beta.ts +10 -6
- package/reports_v1beta.ts +10 -6
- package/reviews_v1beta.ts +12 -8
package/inventories_v1beta.ts
CHANGED
|
@@ -255,19 +255,19 @@ export namespace merchantapi_inventories_v1beta {
|
|
|
255
255
|
*/
|
|
256
256
|
export interface Schema$ProductChange {
|
|
257
257
|
/**
|
|
258
|
-
* The new value of the changed resource or attribute.
|
|
258
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
259
259
|
*/
|
|
260
260
|
newValue?: string | null;
|
|
261
261
|
/**
|
|
262
|
-
* The old value of the changed resource or attribute.
|
|
262
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
263
263
|
*/
|
|
264
264
|
oldValue?: string | null;
|
|
265
265
|
/**
|
|
266
|
-
* Countries that have the change (if applicable)
|
|
266
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
267
267
|
*/
|
|
268
268
|
regionCode?: string | null;
|
|
269
269
|
/**
|
|
270
|
-
* Reporting contexts that have the change (if applicable)
|
|
270
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
271
271
|
*/
|
|
272
272
|
reportingContext?: string | null;
|
|
273
273
|
}
|
|
@@ -288,7 +288,11 @@ export namespace merchantapi_inventories_v1beta {
|
|
|
288
288
|
*/
|
|
289
289
|
changes?: Schema$ProductChange[];
|
|
290
290
|
/**
|
|
291
|
-
* The
|
|
291
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
292
|
+
*/
|
|
293
|
+
eventTime?: string | null;
|
|
294
|
+
/**
|
|
295
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
292
296
|
*/
|
|
293
297
|
expirationTime?: string | null;
|
|
294
298
|
/**
|
|
@@ -296,7 +300,7 @@ export namespace merchantapi_inventories_v1beta {
|
|
|
296
300
|
*/
|
|
297
301
|
managingAccount?: string | null;
|
|
298
302
|
/**
|
|
299
|
-
* The product name. Format: `
|
|
303
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
300
304
|
*/
|
|
301
305
|
resource?: string | null;
|
|
302
306
|
/**
|
package/lfp_v1beta.ts
CHANGED
|
@@ -322,19 +322,19 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
322
322
|
*/
|
|
323
323
|
export interface Schema$ProductChange {
|
|
324
324
|
/**
|
|
325
|
-
* The new value of the changed resource or attribute.
|
|
325
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
326
326
|
*/
|
|
327
327
|
newValue?: string | null;
|
|
328
328
|
/**
|
|
329
|
-
* The old value of the changed resource or attribute.
|
|
329
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
330
330
|
*/
|
|
331
331
|
oldValue?: string | null;
|
|
332
332
|
/**
|
|
333
|
-
* Countries that have the change (if applicable)
|
|
333
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
334
334
|
*/
|
|
335
335
|
regionCode?: string | null;
|
|
336
336
|
/**
|
|
337
|
-
* Reporting contexts that have the change (if applicable)
|
|
337
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
338
338
|
*/
|
|
339
339
|
reportingContext?: string | null;
|
|
340
340
|
}
|
|
@@ -355,7 +355,11 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
355
355
|
*/
|
|
356
356
|
changes?: Schema$ProductChange[];
|
|
357
357
|
/**
|
|
358
|
-
* The
|
|
358
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
359
|
+
*/
|
|
360
|
+
eventTime?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
359
363
|
*/
|
|
360
364
|
expirationTime?: string | null;
|
|
361
365
|
/**
|
|
@@ -363,7 +367,7 @@ export namespace merchantapi_lfp_v1beta {
|
|
|
363
367
|
*/
|
|
364
368
|
managingAccount?: string | null;
|
|
365
369
|
/**
|
|
366
|
-
* The product name. Format: `
|
|
370
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
367
371
|
*/
|
|
368
372
|
resource?: string | null;
|
|
369
373
|
/**
|
package/notifications_v1beta.ts
CHANGED
|
@@ -171,19 +171,19 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
171
171
|
*/
|
|
172
172
|
export interface Schema$ProductChange {
|
|
173
173
|
/**
|
|
174
|
-
* The new value of the changed resource or attribute.
|
|
174
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
175
175
|
*/
|
|
176
176
|
newValue?: string | null;
|
|
177
177
|
/**
|
|
178
|
-
* The old value of the changed resource or attribute.
|
|
178
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
179
179
|
*/
|
|
180
180
|
oldValue?: string | null;
|
|
181
181
|
/**
|
|
182
|
-
* Countries that have the change (if applicable)
|
|
182
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
183
183
|
*/
|
|
184
184
|
regionCode?: string | null;
|
|
185
185
|
/**
|
|
186
|
-
* Reporting contexts that have the change (if applicable)
|
|
186
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
187
187
|
*/
|
|
188
188
|
reportingContext?: string | null;
|
|
189
189
|
}
|
|
@@ -204,7 +204,11 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
204
204
|
*/
|
|
205
205
|
changes?: Schema$ProductChange[];
|
|
206
206
|
/**
|
|
207
|
-
* The
|
|
207
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
208
|
+
*/
|
|
209
|
+
eventTime?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
208
212
|
*/
|
|
209
213
|
expirationTime?: string | null;
|
|
210
214
|
/**
|
|
@@ -212,7 +216,7 @@ export namespace merchantapi_notifications_v1beta {
|
|
|
212
216
|
*/
|
|
213
217
|
managingAccount?: string | null;
|
|
214
218
|
/**
|
|
215
|
-
* The product name. Format: `
|
|
219
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
216
220
|
*/
|
|
217
221
|
resource?: string | null;
|
|
218
222
|
/**
|
package/package.json
CHANGED
package/products_v1beta.ts
CHANGED
|
@@ -815,19 +815,19 @@ export namespace merchantapi_products_v1beta {
|
|
|
815
815
|
*/
|
|
816
816
|
export interface Schema$ProductChange {
|
|
817
817
|
/**
|
|
818
|
-
* The new value of the changed resource or attribute.
|
|
818
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
819
819
|
*/
|
|
820
820
|
newValue?: string | null;
|
|
821
821
|
/**
|
|
822
|
-
* The old value of the changed resource or attribute.
|
|
822
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
823
823
|
*/
|
|
824
824
|
oldValue?: string | null;
|
|
825
825
|
/**
|
|
826
|
-
* Countries that have the change (if applicable)
|
|
826
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
827
827
|
*/
|
|
828
828
|
regionCode?: string | null;
|
|
829
829
|
/**
|
|
830
|
-
* Reporting contexts that have the change (if applicable)
|
|
830
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
831
831
|
*/
|
|
832
832
|
reportingContext?: string | null;
|
|
833
833
|
}
|
|
@@ -944,7 +944,11 @@ export namespace merchantapi_products_v1beta {
|
|
|
944
944
|
*/
|
|
945
945
|
changes?: Schema$ProductChange[];
|
|
946
946
|
/**
|
|
947
|
-
* The
|
|
947
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
948
|
+
*/
|
|
949
|
+
eventTime?: string | null;
|
|
950
|
+
/**
|
|
951
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
948
952
|
*/
|
|
949
953
|
expirationTime?: string | null;
|
|
950
954
|
/**
|
|
@@ -952,7 +956,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
952
956
|
*/
|
|
953
957
|
managingAccount?: string | null;
|
|
954
958
|
/**
|
|
955
|
-
* The product name. Format: `
|
|
959
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
956
960
|
*/
|
|
957
961
|
resource?: string | null;
|
|
958
962
|
/**
|
|
@@ -1359,6 +1363,94 @@ export namespace merchantapi_products_v1beta {
|
|
|
1359
1363
|
return createAPIRequest<Schema$ProductInput>(parameters);
|
|
1360
1364
|
}
|
|
1361
1365
|
}
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* Updates the existing product input in your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.
|
|
1369
|
+
*
|
|
1370
|
+
* @param params - Parameters for request
|
|
1371
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
1372
|
+
* @param callback - Optional callback that handles the response.
|
|
1373
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
1374
|
+
*/
|
|
1375
|
+
patch(
|
|
1376
|
+
params: Params$Resource$Accounts$Productinputs$Patch,
|
|
1377
|
+
options: StreamMethodOptions
|
|
1378
|
+
): GaxiosPromise<Readable>;
|
|
1379
|
+
patch(
|
|
1380
|
+
params?: Params$Resource$Accounts$Productinputs$Patch,
|
|
1381
|
+
options?: MethodOptions
|
|
1382
|
+
): GaxiosPromise<Schema$ProductInput>;
|
|
1383
|
+
patch(
|
|
1384
|
+
params: Params$Resource$Accounts$Productinputs$Patch,
|
|
1385
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
1386
|
+
callback: BodyResponseCallback<Readable>
|
|
1387
|
+
): void;
|
|
1388
|
+
patch(
|
|
1389
|
+
params: Params$Resource$Accounts$Productinputs$Patch,
|
|
1390
|
+
options: MethodOptions | BodyResponseCallback<Schema$ProductInput>,
|
|
1391
|
+
callback: BodyResponseCallback<Schema$ProductInput>
|
|
1392
|
+
): void;
|
|
1393
|
+
patch(
|
|
1394
|
+
params: Params$Resource$Accounts$Productinputs$Patch,
|
|
1395
|
+
callback: BodyResponseCallback<Schema$ProductInput>
|
|
1396
|
+
): void;
|
|
1397
|
+
patch(callback: BodyResponseCallback<Schema$ProductInput>): void;
|
|
1398
|
+
patch(
|
|
1399
|
+
paramsOrCallback?:
|
|
1400
|
+
| Params$Resource$Accounts$Productinputs$Patch
|
|
1401
|
+
| BodyResponseCallback<Schema$ProductInput>
|
|
1402
|
+
| BodyResponseCallback<Readable>,
|
|
1403
|
+
optionsOrCallback?:
|
|
1404
|
+
| MethodOptions
|
|
1405
|
+
| StreamMethodOptions
|
|
1406
|
+
| BodyResponseCallback<Schema$ProductInput>
|
|
1407
|
+
| BodyResponseCallback<Readable>,
|
|
1408
|
+
callback?:
|
|
1409
|
+
| BodyResponseCallback<Schema$ProductInput>
|
|
1410
|
+
| BodyResponseCallback<Readable>
|
|
1411
|
+
): void | GaxiosPromise<Schema$ProductInput> | GaxiosPromise<Readable> {
|
|
1412
|
+
let params = (paramsOrCallback ||
|
|
1413
|
+
{}) as Params$Resource$Accounts$Productinputs$Patch;
|
|
1414
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
1415
|
+
|
|
1416
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1417
|
+
callback = paramsOrCallback;
|
|
1418
|
+
params = {} as Params$Resource$Accounts$Productinputs$Patch;
|
|
1419
|
+
options = {};
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1423
|
+
callback = optionsOrCallback;
|
|
1424
|
+
options = {};
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
const rootUrl = options.rootUrl || 'https://merchantapi.googleapis.com/';
|
|
1428
|
+
const parameters = {
|
|
1429
|
+
options: Object.assign(
|
|
1430
|
+
{
|
|
1431
|
+
url: (rootUrl + '/products/v1beta/{+name}').replace(
|
|
1432
|
+
/([^:]\/)\/+/g,
|
|
1433
|
+
'$1'
|
|
1434
|
+
),
|
|
1435
|
+
method: 'PATCH',
|
|
1436
|
+
apiVersion: '',
|
|
1437
|
+
},
|
|
1438
|
+
options
|
|
1439
|
+
),
|
|
1440
|
+
params,
|
|
1441
|
+
requiredParams: ['name'],
|
|
1442
|
+
pathParams: ['name'],
|
|
1443
|
+
context: this.context,
|
|
1444
|
+
};
|
|
1445
|
+
if (callback) {
|
|
1446
|
+
createAPIRequest<Schema$ProductInput>(
|
|
1447
|
+
parameters,
|
|
1448
|
+
callback as BodyResponseCallback<unknown>
|
|
1449
|
+
);
|
|
1450
|
+
} else {
|
|
1451
|
+
return createAPIRequest<Schema$ProductInput>(parameters);
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1362
1454
|
}
|
|
1363
1455
|
|
|
1364
1456
|
export interface Params$Resource$Accounts$Productinputs$Delete
|
|
@@ -1375,7 +1467,7 @@ export namespace merchantapi_products_v1beta {
|
|
|
1375
1467
|
export interface Params$Resource$Accounts$Productinputs$Insert
|
|
1376
1468
|
extends StandardParameters {
|
|
1377
1469
|
/**
|
|
1378
|
-
* Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. Format: `accounts/{account\}/dataSources/{datasource\}`.
|
|
1470
|
+
* Required. The primary or supplemental product data source name. If the product already exists and data source provided is different, then the product will be moved to a new data source. Only API data sources are supported. Format: `accounts/{account\}/dataSources/{datasource\}`.
|
|
1379
1471
|
*/
|
|
1380
1472
|
dataSource?: string;
|
|
1381
1473
|
/**
|
|
@@ -1388,6 +1480,26 @@ export namespace merchantapi_products_v1beta {
|
|
|
1388
1480
|
*/
|
|
1389
1481
|
requestBody?: Schema$ProductInput;
|
|
1390
1482
|
}
|
|
1483
|
+
export interface Params$Resource$Accounts$Productinputs$Patch
|
|
1484
|
+
extends StandardParameters {
|
|
1485
|
+
/**
|
|
1486
|
+
* Required. The primary or supplemental product data source where `data_source` name identifies the product input to be updated. Only API data sources are supported. Format: `accounts/{account\}/dataSources/{datasource\}`.
|
|
1487
|
+
*/
|
|
1488
|
+
dataSource?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Identifier. The name of the product input. Format: `"{productinput.name=accounts/{account\}/productInputs/{productinput\}\}"` where the last section `productinput` consists of 4 parts: channel~content_language~feed_label~offer_id example for product input name is "accounts/123/productInputs/online~en~US~sku123"
|
|
1491
|
+
*/
|
|
1492
|
+
name?: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* Optional. The list of product attributes to be updated. If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value). Attributes specified in the update mask without a value specified in the body will be deleted from the product. Update mask can only be specified for top level fields in attributes and custom attributes. To specify the update mask for custom attributes you need to add the `custom_attribute.` prefix. Providing special "*" value for full product replacement is not supported.
|
|
1495
|
+
*/
|
|
1496
|
+
updateMask?: string;
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* Request body metadata
|
|
1500
|
+
*/
|
|
1501
|
+
requestBody?: Schema$ProductInput;
|
|
1502
|
+
}
|
|
1391
1503
|
|
|
1392
1504
|
export class Resource$Accounts$Products {
|
|
1393
1505
|
context: APIRequestContext;
|
package/promotions_v1beta.ts
CHANGED
|
@@ -377,19 +377,19 @@ export namespace merchantapi_promotions_v1beta {
|
|
|
377
377
|
*/
|
|
378
378
|
export interface Schema$ProductChange {
|
|
379
379
|
/**
|
|
380
|
-
* The new value of the changed resource or attribute.
|
|
380
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
381
381
|
*/
|
|
382
382
|
newValue?: string | null;
|
|
383
383
|
/**
|
|
384
|
-
* The old value of the changed resource or attribute.
|
|
384
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
385
385
|
*/
|
|
386
386
|
oldValue?: string | null;
|
|
387
387
|
/**
|
|
388
|
-
* Countries that have the change (if applicable)
|
|
388
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
389
389
|
*/
|
|
390
390
|
regionCode?: string | null;
|
|
391
391
|
/**
|
|
392
|
-
* Reporting contexts that have the change (if applicable)
|
|
392
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
393
393
|
*/
|
|
394
394
|
reportingContext?: string | null;
|
|
395
395
|
}
|
|
@@ -410,7 +410,11 @@ export namespace merchantapi_promotions_v1beta {
|
|
|
410
410
|
*/
|
|
411
411
|
changes?: Schema$ProductChange[];
|
|
412
412
|
/**
|
|
413
|
-
* The
|
|
413
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
414
|
+
*/
|
|
415
|
+
eventTime?: string | null;
|
|
416
|
+
/**
|
|
417
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
414
418
|
*/
|
|
415
419
|
expirationTime?: string | null;
|
|
416
420
|
/**
|
|
@@ -418,7 +422,7 @@ export namespace merchantapi_promotions_v1beta {
|
|
|
418
422
|
*/
|
|
419
423
|
managingAccount?: string | null;
|
|
420
424
|
/**
|
|
421
|
-
* The product name. Format: `
|
|
425
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
422
426
|
*/
|
|
423
427
|
resource?: string | null;
|
|
424
428
|
/**
|
package/quota_v1beta.ts
CHANGED
|
@@ -163,19 +163,19 @@ export namespace merchantapi_quota_v1beta {
|
|
|
163
163
|
*/
|
|
164
164
|
export interface Schema$ProductChange {
|
|
165
165
|
/**
|
|
166
|
-
* The new value of the changed resource or attribute.
|
|
166
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
167
167
|
*/
|
|
168
168
|
newValue?: string | null;
|
|
169
169
|
/**
|
|
170
|
-
* The old value of the changed resource or attribute.
|
|
170
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
171
171
|
*/
|
|
172
172
|
oldValue?: string | null;
|
|
173
173
|
/**
|
|
174
|
-
* Countries that have the change (if applicable)
|
|
174
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
175
175
|
*/
|
|
176
176
|
regionCode?: string | null;
|
|
177
177
|
/**
|
|
178
|
-
* Reporting contexts that have the change (if applicable)
|
|
178
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
179
179
|
*/
|
|
180
180
|
reportingContext?: string | null;
|
|
181
181
|
}
|
|
@@ -196,7 +196,11 @@ export namespace merchantapi_quota_v1beta {
|
|
|
196
196
|
*/
|
|
197
197
|
changes?: Schema$ProductChange[];
|
|
198
198
|
/**
|
|
199
|
-
* The
|
|
199
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
200
|
+
*/
|
|
201
|
+
eventTime?: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
200
204
|
*/
|
|
201
205
|
expirationTime?: string | null;
|
|
202
206
|
/**
|
|
@@ -204,7 +208,7 @@ export namespace merchantapi_quota_v1beta {
|
|
|
204
208
|
*/
|
|
205
209
|
managingAccount?: string | null;
|
|
206
210
|
/**
|
|
207
|
-
* The product name. Format: `
|
|
211
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
208
212
|
*/
|
|
209
213
|
resource?: string | null;
|
|
210
214
|
/**
|
package/reports_v1beta.ts
CHANGED
|
@@ -651,19 +651,19 @@ export namespace merchantapi_reports_v1beta {
|
|
|
651
651
|
*/
|
|
652
652
|
export interface Schema$ProductChange {
|
|
653
653
|
/**
|
|
654
|
-
* The new value of the changed resource or attribute.
|
|
654
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
655
655
|
*/
|
|
656
656
|
newValue?: string | null;
|
|
657
657
|
/**
|
|
658
|
-
* The old value of the changed resource or attribute.
|
|
658
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
659
659
|
*/
|
|
660
660
|
oldValue?: string | null;
|
|
661
661
|
/**
|
|
662
|
-
* Countries that have the change (if applicable)
|
|
662
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
663
663
|
*/
|
|
664
664
|
regionCode?: string | null;
|
|
665
665
|
/**
|
|
666
|
-
* Reporting contexts that have the change (if applicable)
|
|
666
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
667
667
|
*/
|
|
668
668
|
reportingContext?: string | null;
|
|
669
669
|
}
|
|
@@ -801,7 +801,11 @@ export namespace merchantapi_reports_v1beta {
|
|
|
801
801
|
*/
|
|
802
802
|
changes?: Schema$ProductChange[];
|
|
803
803
|
/**
|
|
804
|
-
* The
|
|
804
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
805
|
+
*/
|
|
806
|
+
eventTime?: string | null;
|
|
807
|
+
/**
|
|
808
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
805
809
|
*/
|
|
806
810
|
expirationTime?: string | null;
|
|
807
811
|
/**
|
|
@@ -809,7 +813,7 @@ export namespace merchantapi_reports_v1beta {
|
|
|
809
813
|
*/
|
|
810
814
|
managingAccount?: string | null;
|
|
811
815
|
/**
|
|
812
|
-
* The product name. Format: `
|
|
816
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
813
817
|
*/
|
|
814
818
|
resource?: string | null;
|
|
815
819
|
/**
|
package/reviews_v1beta.ts
CHANGED
|
@@ -180,7 +180,7 @@ export namespace merchantapi_reviews_v1beta {
|
|
|
180
180
|
*/
|
|
181
181
|
attributes?: Schema$MerchantReviewAttributes;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* Optional. A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the data specification in its generic form (for example, `{ "name": "size type", "value": "regular" \}`). This is useful for submitting attributes not explicitly exposed by the API, such as experimental attributes. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per product, with total size of 102.4kB. Underscores in custom attribute names are replaced by spaces upon insertion.
|
|
184
184
|
*/
|
|
185
185
|
customAttributes?: Schema$CustomAttribute[];
|
|
186
186
|
/**
|
|
@@ -257,7 +257,7 @@ export namespace merchantapi_reviews_v1beta {
|
|
|
257
257
|
*/
|
|
258
258
|
reviewerUsername?: string | null;
|
|
259
259
|
/**
|
|
260
|
-
*
|
|
260
|
+
* Optional. The language of the review defined by BCP-47 language code.
|
|
261
261
|
*/
|
|
262
262
|
reviewLanguage?: string | null;
|
|
263
263
|
/**
|
|
@@ -341,19 +341,19 @@ export namespace merchantapi_reviews_v1beta {
|
|
|
341
341
|
*/
|
|
342
342
|
export interface Schema$ProductChange {
|
|
343
343
|
/**
|
|
344
|
-
* The new value of the changed resource or attribute.
|
|
344
|
+
* The new value of the changed resource or attribute. If empty, it means that the product was deleted. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
345
345
|
*/
|
|
346
346
|
newValue?: string | null;
|
|
347
347
|
/**
|
|
348
|
-
* The old value of the changed resource or attribute.
|
|
348
|
+
* The old value of the changed resource or attribute. If empty, it means that the product was created. Will have one of these values : (`approved`, `pending`, `disapproved`, ``)
|
|
349
349
|
*/
|
|
350
350
|
oldValue?: string | null;
|
|
351
351
|
/**
|
|
352
|
-
* Countries that have the change (if applicable)
|
|
352
|
+
* Countries that have the change (if applicable). Represented in the ISO 3166 format.
|
|
353
353
|
*/
|
|
354
354
|
regionCode?: string | null;
|
|
355
355
|
/**
|
|
356
|
-
* Reporting contexts that have the change (if applicable)
|
|
356
|
+
* Reporting contexts that have the change (if applicable). Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)
|
|
357
357
|
*/
|
|
358
358
|
reportingContext?: string | null;
|
|
359
359
|
}
|
|
@@ -591,7 +591,11 @@ export namespace merchantapi_reviews_v1beta {
|
|
|
591
591
|
*/
|
|
592
592
|
changes?: Schema$ProductChange[];
|
|
593
593
|
/**
|
|
594
|
-
* The
|
|
594
|
+
* The time at which the event was generated. If you want to order the notification messages you receive you should rely on this field not on the order of receiving the notifications.
|
|
595
|
+
*/
|
|
596
|
+
eventTime?: string | null;
|
|
597
|
+
/**
|
|
598
|
+
* Optional. The product expiration time. This field will not bet set if the notification is sent for a product deletion event.
|
|
595
599
|
*/
|
|
596
600
|
expirationTime?: string | null;
|
|
597
601
|
/**
|
|
@@ -599,7 +603,7 @@ export namespace merchantapi_reviews_v1beta {
|
|
|
599
603
|
*/
|
|
600
604
|
managingAccount?: string | null;
|
|
601
605
|
/**
|
|
602
|
-
* The product name. Format: `
|
|
606
|
+
* The product name. Format: `accounts/{account\}/products/{product\}`
|
|
603
607
|
*/
|
|
604
608
|
resource?: string | null;
|
|
605
609
|
/**
|