File: merchantapi_accounts_v1.accounts.shippingSettings.html

package info (click to toggle)
python-googleapi 2.180.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 527,124 kB
  • sloc: python: 11,076; javascript: 249; sh: 114; makefile: 59
file content (1049 lines) | stat: -rw-r--r-- 132,196 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="merchantapi_accounts_v1.html">Merchant API</a> . <a href="merchantapi_accounts_v1.accounts.html">accounts</a> . <a href="merchantapi_accounts_v1.accounts.shippingSettings.html">shippingSettings</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#getShippingSettings">getShippingSettings(name, x__xgafv=None)</a></code></p>
<p class="firstline">Retrieve shipping setting information.</p>
<p class="toc_element">
  <code><a href="#insert">insert(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Replace the shipping setting of a business with the request shipping setting. Executing this method requires admin access.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="getShippingSettings">getShippingSettings(name, x__xgafv=None)</code>
  <pre>Retrieve shipping setting information.

Args:
  name: string, Required. The name of the shipping setting to retrieve. Format: `accounts/{account}/shippingsettings` (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The Merchant Center account&#x27;s [shipping settings](https://support.google.com/merchants/answer/6069284). The `ShippingSettings` resource lets you retrieve and update the shipping settings of your advanced account and all its associated sub-accounts.
  &quot;etag&quot;: &quot;A String&quot;, # Required. This field helps avoid async issues. It ensures that the shipping setting data doesn&#x27;t change between the `get` call and the `insert` call. The user should follow these steps: 1. Set the etag field as an empty string for the initial shipping setting creation. 2. After the initial creation, call the `get` method to obtain an etag and the current shipping setting data before calling `insert`. 3. Modify the shipping setting information. 4. Call the `insert` method with the shipping setting information and the etag obtained in step 2. 5. If the shipping setting data changes between step 2 and step 4, the insert request will fail because the etag changes every time the shipping setting data changes. In this case, the user should repeat steps 2-4 with the new etag.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the shipping settings. Format: `accounts/{account}/shippingSettings`. For example, `accounts/123456/shippingSettings`.
  &quot;services&quot;: [ # Optional. The target account&#x27;s list of services.
    { # Shipping service.
      &quot;active&quot;: True or False, # Required. A boolean exposing the active status of the shipping service.
      &quot;currencyCode&quot;: &quot;A String&quot;, # Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
      &quot;deliveryCountries&quot;: [ # Required. The CLDR territory code of the countries to which the service applies.
        &quot;A String&quot;,
      ],
      &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. # Required. Time spent in various aspects from order to the delivery of the product.
        &quot;cutoffTime&quot;: { # Business days cutoff time definition. # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
          &quot;hour&quot;: 42, # Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day.
          &quot;minute&quot;: 42, # Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day.
          &quot;timeZone&quot;: &quot;A String&quot;, # Required. [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids) For example &quot;Europe/Zurich&quot;.
        },
        &quot;handlingBusinessDayConfig&quot;: { # Business days of the warehouse. # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
          &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
            &quot;A String&quot;,
          ],
        },
        &quot;maxHandlingDays&quot;: 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `min_handling_days`. &#x27;min_handling_days&#x27; and &#x27;max_handling_days&#x27; should be either set or not set at the same time.
        &quot;maxTransitDays&quot;: 42, # Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to `min_transit_days`.
        &quot;minHandlingDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. &#x27;min_handling_days&#x27; and &#x27;max_handling_days&#x27; should be either set or not set at the same time.
        &quot;minTransitDays&quot;: 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `min_transit_days`, `max_transit_days` or `transit_time_table` must be set, but not both.
        &quot;transitBusinessDayConfig&quot;: { # Business days of the warehouse. # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
          &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
            &quot;A String&quot;,
          ],
        },
        &quot;transitTimeTable&quot;: { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both. # Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both.
          &quot;postalCodeGroupNames&quot;: [ # Required. A list of region names Region.name . The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
            &quot;A String&quot;,
          ],
          &quot;rows&quot;: [ # Required. If there&#x27;s only one dimension set of `postal_code_group_names` or `transit_time_labels`, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a `postal_code_group_names`, and columns (values) to a `transit_time_labels`.
            { # If there&#x27;s only one dimension set of `postal_code_group_names` or `transit_time_labels`, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a `postal_code_group_names`, and columns (values) to a `transit_time_labels`.
              &quot;values&quot;: [ # Required. Transit time range (min-max) in business days.
                { # Transit time range (min-max) in business days.
                  &quot;maxTransitDays&quot;: 42, # Must be greater than or equal to `min_transit_days`.
                  &quot;minTransitDays&quot;: 42, # Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery.
                },
              ],
            },
          ],
          &quot;transitTimeLabels&quot;: [ # Required. A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
            &quot;A String&quot;,
          ],
        },
        &quot;warehouseBasedDeliveryTimes&quot;: [ # Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set.
          { # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in `delivery_time` should be set.
            &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. [supported carriers](https://support.google.com/merchants/answer/7050921#zippy=%2Ccarrier-rates-au-de-uk-and-us-only)
            &quot;carrierService&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The name of the service must be in the eddSupportedServices list.
            &quot;warehouse&quot;: &quot;A String&quot;, # Required. Warehouse name. This should match warehouse.
          },
        ],
      },
      &quot;loyaltyPrograms&quot;: [ # Optional. Loyalty programs that this shipping service is limited to.
        { # [Loyalty program](https://support.google.com/merchants/answer/12922446) provided by a business.
          &quot;loyaltyProgramTiers&quot;: [ # Optional. Loyalty program tier of this shipping service.
            { # Subset of a business&#x27;s loyalty program.
              &quot;tierLabel&quot;: &quot;A String&quot;, # The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.
            },
          ],
          &quot;programLabel&quot;: &quot;A String&quot;, # This is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers.
        },
      ],
      &quot;minimumOrderValue&quot;: { # The price represented as a number and currency. # Optional. Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with `minimum_order_value_table`.
        &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
        &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
      },
      &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. # Optional. Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with `minimum_order_value`.
        &quot;storeCodeSetWithMovs&quot;: [ # Required. A list of store code sets sharing the same minimum order value (MOV). At least two sets are required and the last one must be empty, which signifies &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
          { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
            &quot;storeCodes&quot;: [ # Optional. A list of unique store codes or empty for the catch all.
              &quot;A String&quot;,
            ],
            &quot;value&quot;: { # The price represented as a number and currency. # The minimum order value for the given stores.
              &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
              &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
            },
          },
        ],
      },
      &quot;rateGroups&quot;: [ # Optional. Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means &quot;everything else&quot;. The other `applicable_shipping_labels` must not overlap.
        { # Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means &quot;everything else&quot;. The other `applicable_shipping_labels` must not overlap.
          &quot;applicableShippingLabels&quot;: [ # Required. A list of [shipping labels](https://support.google.com/merchants/answer/6324504) defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.
            &quot;A String&quot;,
          ],
          &quot;carrierRates&quot;: [ # Optional. A list of carrier rates that can be referred to by `main_table` or `single_value`.
            { # A list of carrier rates that can be referred to by `main_table` or `single_value`. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?ref_topic=12570808&amp;sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.
              &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`.
              &quot;carrierService&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`.
              &quot;flatAdjustment&quot;: { # The price represented as a number and currency. # Optional. Additive shipping rate modifier. Can be negative. For example `{ &quot;amount_micros&quot;: 1, &quot;currency_code&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;amount_micros&quot;: -3, &quot;currency_code&quot; : &quot;USD&quot; }` removes $3 from the rate.
                &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
              },
              &quot;name&quot;: &quot;A String&quot;, # Required. Name of the carrier rate. Must be unique per rate group.
              &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin for this carrier rate.
              &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Optional. Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%.
            },
          ],
          &quot;mainTable&quot;: { # A table defining the rate group, when `single_value` is not expressive enough. # A table defining the rate group, when `single_value` is not expressive enough. Can only be set if `single_value` is not set.
            &quot;columnHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Headers of the table&#x27;s columns. Optional: if not set then the table has only one dimension.
              &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                    &quot;A String&quot;,
                  ],
                },
              ],
              &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The price represented as a number and currency.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                },
              ],
              &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The weight represented as the value in string and the unit.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                  &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                },
              ],
            },
            &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
            &quot;rowHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Required. Headers of the table&#x27;s rows.
              &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                    &quot;A String&quot;,
                  ],
                },
              ],
              &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The price represented as a number and currency.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                },
              ],
              &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The weight represented as the value in string and the unit.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                  &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                },
              ],
            },
            &quot;rows&quot;: [ # Required. The list of rows that constitute the table. Must have the same length as `row_headers`.
              { # Include a list of cells.
                &quot;cells&quot;: [ # Required. The list of cells that constitute the row. Must have the same length as `columnHeaders` for two-dimensional tables, a length of 1 for one-dimensional tables.
                  { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set.
                    &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
                    &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
                      &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                      &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                    },
                    &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
                    &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
                    &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
                  },
                ],
              },
            ],
          },
          &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the rate group. If set has to be unique within shipping service.
          &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set. # The value of the rate group (For example flat rate $10). Can only be set if `main_table` and `subtables` are not set.
            &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
            &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
              &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
              &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
            },
            &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
            &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
            &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
          },
          &quot;subtables&quot;: [ # Optional. A list of subtables referred to by `main_table`. Can only be set if `main_table` is set.
            { # A table defining the rate group, when `single_value` is not expressive enough.
              &quot;columnHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Headers of the table&#x27;s columns. Optional: if not set then the table has only one dimension.
                &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                    &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                      &quot;A String&quot;,
                    ],
                  },
                ],
                &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The price represented as a number and currency.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                    &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                  },
                ],
                &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The weight represented as the value in string and the unit.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                    &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                  },
                ],
              },
              &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
              &quot;rowHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Required. Headers of the table&#x27;s rows.
                &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                    &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                      &quot;A String&quot;,
                    ],
                  },
                ],
                &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The price represented as a number and currency.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                    &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                  },
                ],
                &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The weight represented as the value in string and the unit.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                    &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                  },
                ],
              },
              &quot;rows&quot;: [ # Required. The list of rows that constitute the table. Must have the same length as `row_headers`.
                { # Include a list of cells.
                  &quot;cells&quot;: [ # Required. The list of cells that constitute the row. Must have the same length as `columnHeaders` for two-dimensional tables, a length of 1 for one-dimensional tables.
                    { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set.
                      &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
                      &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
                        &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                        &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                      },
                      &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
                      &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
                      &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
                    },
                  ],
                },
              ],
            },
          ],
        },
      ],
      &quot;serviceName&quot;: &quot;A String&quot;, # Required. Free-form name of the service. Must be unique within target account.
      &quot;shipmentType&quot;: &quot;A String&quot;, # Optional. Type of locations this service ships orders to.
      &quot;storeConfig&quot;: { # A list of stores your products are delivered from. This is only valid for the local delivery shipment type. # A list of stores your products are delivered from. This is only valid for the local delivery shipment type.
        &quot;cutoffConfig&quot;: { # Configs related to local delivery ends for the day. # Configs related to local delivery ends for the day.
          &quot;localCutoffTime&quot;: { # Time that local delivery ends for the day. # Time that local delivery ends for the day.
            &quot;hour&quot;: &quot;A String&quot;, # Hour local delivery orders must be placed by to process the same day.
            &quot;minute&quot;: &quot;A String&quot;, # Minute local delivery orders must be placed by to process the same day.
          },
          &quot;noDeliveryPostCutoff&quot;: True or False, # Businesses can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it&#x27;s past the cut-off, setting this field to `true` results in the calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the same example, setting this field to `false` results in the calculated shipping time being one day. This is only for local delivery.
          &quot;storeCloseOffsetHours&quot;: &quot;A String&quot;, # Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with `local_cutoff_time`.
        },
        &quot;serviceRadius&quot;: { # Maximum delivery radius. This is only required for the local delivery shipment type. # Maximum delivery radius. This is only required for the local delivery shipment type.
          &quot;unit&quot;: &quot;A String&quot;, # Unit can differ based on country, it is parameterized to include miles and kilometers.
          &quot;value&quot;: &quot;A String&quot;, # Integer value of distance.
        },
        &quot;storeCodes&quot;: [ # Optional. A list of store codes that provide local delivery. If empty, then `all_stores` must be true.
          &quot;A String&quot;,
        ],
        &quot;storeServiceType&quot;: &quot;A String&quot;, # Indicates whether all stores, or selected stores, listed by this business provide local delivery.
      },
    },
  ],
  &quot;warehouses&quot;: [ # Optional. A list of warehouses which can be referred to in `services`.
    { # A fulfillment warehouse, which stores and handles inventory.
      &quot;businessDayConfig&quot;: { # Business days of the warehouse. # Business days of the warehouse. If not set, will be Monday to Friday by default.
        &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
          &quot;A String&quot;,
        ],
      },
      &quot;cutoffTime&quot;: { # The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code. # Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.
        &quot;hour&quot;: 42, # Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Hour is based on the timezone of warehouse.
        &quot;minute&quot;: 42, # Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Minute is based on the timezone of warehouse.
      },
      &quot;handlingDays&quot;: &quot;A String&quot;, # Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item.
      &quot;name&quot;: &quot;A String&quot;, # Required. The name of the warehouse. Must be unique within account.
      &quot;shippingAddress&quot;: { # Shipping address of the warehouse. # Required. Shipping address of the warehouse.
        &quot;administrativeArea&quot;: &quot;A String&quot;, # Required. Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
        &quot;city&quot;: &quot;A String&quot;, # Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs).
        &quot;postalCode&quot;: &quot;A String&quot;, # Required. Postal code or ZIP (For example &quot;94043&quot;).
        &quot;regionCode&quot;: &quot;A String&quot;, # Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (For example &quot;US&quot;).
        &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address. For example: `111w 31st Street`.
      },
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="insert">insert(parent, body=None, x__xgafv=None)</code>
  <pre>Replace the shipping setting of a business with the request shipping setting. Executing this method requires admin access.

Args:
  parent: string, Required. The account for which this shipping setting will be inserted. If you are using an advanced account, you must specify the unique identifier of the sub-account for which you want to insert the shipping setting. Format: `accounts/{ACCOUNT_ID}` (required)
  body: object, The request body.
    The object takes the form of:

{ # The Merchant Center account&#x27;s [shipping settings](https://support.google.com/merchants/answer/6069284). The `ShippingSettings` resource lets you retrieve and update the shipping settings of your advanced account and all its associated sub-accounts.
  &quot;etag&quot;: &quot;A String&quot;, # Required. This field helps avoid async issues. It ensures that the shipping setting data doesn&#x27;t change between the `get` call and the `insert` call. The user should follow these steps: 1. Set the etag field as an empty string for the initial shipping setting creation. 2. After the initial creation, call the `get` method to obtain an etag and the current shipping setting data before calling `insert`. 3. Modify the shipping setting information. 4. Call the `insert` method with the shipping setting information and the etag obtained in step 2. 5. If the shipping setting data changes between step 2 and step 4, the insert request will fail because the etag changes every time the shipping setting data changes. In this case, the user should repeat steps 2-4 with the new etag.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the shipping settings. Format: `accounts/{account}/shippingSettings`. For example, `accounts/123456/shippingSettings`.
  &quot;services&quot;: [ # Optional. The target account&#x27;s list of services.
    { # Shipping service.
      &quot;active&quot;: True or False, # Required. A boolean exposing the active status of the shipping service.
      &quot;currencyCode&quot;: &quot;A String&quot;, # Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
      &quot;deliveryCountries&quot;: [ # Required. The CLDR territory code of the countries to which the service applies.
        &quot;A String&quot;,
      ],
      &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. # Required. Time spent in various aspects from order to the delivery of the product.
        &quot;cutoffTime&quot;: { # Business days cutoff time definition. # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
          &quot;hour&quot;: 42, # Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day.
          &quot;minute&quot;: 42, # Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day.
          &quot;timeZone&quot;: &quot;A String&quot;, # Required. [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids) For example &quot;Europe/Zurich&quot;.
        },
        &quot;handlingBusinessDayConfig&quot;: { # Business days of the warehouse. # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
          &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
            &quot;A String&quot;,
          ],
        },
        &quot;maxHandlingDays&quot;: 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `min_handling_days`. &#x27;min_handling_days&#x27; and &#x27;max_handling_days&#x27; should be either set or not set at the same time.
        &quot;maxTransitDays&quot;: 42, # Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to `min_transit_days`.
        &quot;minHandlingDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. &#x27;min_handling_days&#x27; and &#x27;max_handling_days&#x27; should be either set or not set at the same time.
        &quot;minTransitDays&quot;: 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `min_transit_days`, `max_transit_days` or `transit_time_table` must be set, but not both.
        &quot;transitBusinessDayConfig&quot;: { # Business days of the warehouse. # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
          &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
            &quot;A String&quot;,
          ],
        },
        &quot;transitTimeTable&quot;: { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both. # Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both.
          &quot;postalCodeGroupNames&quot;: [ # Required. A list of region names Region.name . The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
            &quot;A String&quot;,
          ],
          &quot;rows&quot;: [ # Required. If there&#x27;s only one dimension set of `postal_code_group_names` or `transit_time_labels`, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a `postal_code_group_names`, and columns (values) to a `transit_time_labels`.
            { # If there&#x27;s only one dimension set of `postal_code_group_names` or `transit_time_labels`, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a `postal_code_group_names`, and columns (values) to a `transit_time_labels`.
              &quot;values&quot;: [ # Required. Transit time range (min-max) in business days.
                { # Transit time range (min-max) in business days.
                  &quot;maxTransitDays&quot;: 42, # Must be greater than or equal to `min_transit_days`.
                  &quot;minTransitDays&quot;: 42, # Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery.
                },
              ],
            },
          ],
          &quot;transitTimeLabels&quot;: [ # Required. A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
            &quot;A String&quot;,
          ],
        },
        &quot;warehouseBasedDeliveryTimes&quot;: [ # Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set.
          { # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in `delivery_time` should be set.
            &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. [supported carriers](https://support.google.com/merchants/answer/7050921#zippy=%2Ccarrier-rates-au-de-uk-and-us-only)
            &quot;carrierService&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The name of the service must be in the eddSupportedServices list.
            &quot;warehouse&quot;: &quot;A String&quot;, # Required. Warehouse name. This should match warehouse.
          },
        ],
      },
      &quot;loyaltyPrograms&quot;: [ # Optional. Loyalty programs that this shipping service is limited to.
        { # [Loyalty program](https://support.google.com/merchants/answer/12922446) provided by a business.
          &quot;loyaltyProgramTiers&quot;: [ # Optional. Loyalty program tier of this shipping service.
            { # Subset of a business&#x27;s loyalty program.
              &quot;tierLabel&quot;: &quot;A String&quot;, # The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.
            },
          ],
          &quot;programLabel&quot;: &quot;A String&quot;, # This is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers.
        },
      ],
      &quot;minimumOrderValue&quot;: { # The price represented as a number and currency. # Optional. Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with `minimum_order_value_table`.
        &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
        &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
      },
      &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. # Optional. Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with `minimum_order_value`.
        &quot;storeCodeSetWithMovs&quot;: [ # Required. A list of store code sets sharing the same minimum order value (MOV). At least two sets are required and the last one must be empty, which signifies &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
          { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
            &quot;storeCodes&quot;: [ # Optional. A list of unique store codes or empty for the catch all.
              &quot;A String&quot;,
            ],
            &quot;value&quot;: { # The price represented as a number and currency. # The minimum order value for the given stores.
              &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
              &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
            },
          },
        ],
      },
      &quot;rateGroups&quot;: [ # Optional. Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means &quot;everything else&quot;. The other `applicable_shipping_labels` must not overlap.
        { # Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means &quot;everything else&quot;. The other `applicable_shipping_labels` must not overlap.
          &quot;applicableShippingLabels&quot;: [ # Required. A list of [shipping labels](https://support.google.com/merchants/answer/6324504) defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.
            &quot;A String&quot;,
          ],
          &quot;carrierRates&quot;: [ # Optional. A list of carrier rates that can be referred to by `main_table` or `single_value`.
            { # A list of carrier rates that can be referred to by `main_table` or `single_value`. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?ref_topic=12570808&amp;sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.
              &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`.
              &quot;carrierService&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`.
              &quot;flatAdjustment&quot;: { # The price represented as a number and currency. # Optional. Additive shipping rate modifier. Can be negative. For example `{ &quot;amount_micros&quot;: 1, &quot;currency_code&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;amount_micros&quot;: -3, &quot;currency_code&quot; : &quot;USD&quot; }` removes $3 from the rate.
                &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
              },
              &quot;name&quot;: &quot;A String&quot;, # Required. Name of the carrier rate. Must be unique per rate group.
              &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin for this carrier rate.
              &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Optional. Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%.
            },
          ],
          &quot;mainTable&quot;: { # A table defining the rate group, when `single_value` is not expressive enough. # A table defining the rate group, when `single_value` is not expressive enough. Can only be set if `single_value` is not set.
            &quot;columnHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Headers of the table&#x27;s columns. Optional: if not set then the table has only one dimension.
              &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                    &quot;A String&quot;,
                  ],
                },
              ],
              &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The price represented as a number and currency.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                },
              ],
              &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The weight represented as the value in string and the unit.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                  &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                },
              ],
            },
            &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
            &quot;rowHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Required. Headers of the table&#x27;s rows.
              &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                    &quot;A String&quot;,
                  ],
                },
              ],
              &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The price represented as a number and currency.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                },
              ],
              &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The weight represented as the value in string and the unit.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                  &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                },
              ],
            },
            &quot;rows&quot;: [ # Required. The list of rows that constitute the table. Must have the same length as `row_headers`.
              { # Include a list of cells.
                &quot;cells&quot;: [ # Required. The list of cells that constitute the row. Must have the same length as `columnHeaders` for two-dimensional tables, a length of 1 for one-dimensional tables.
                  { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set.
                    &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
                    &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
                      &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                      &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                    },
                    &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
                    &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
                    &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
                  },
                ],
              },
            ],
          },
          &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the rate group. If set has to be unique within shipping service.
          &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set. # The value of the rate group (For example flat rate $10). Can only be set if `main_table` and `subtables` are not set.
            &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
            &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
              &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
              &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
            },
            &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
            &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
            &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
          },
          &quot;subtables&quot;: [ # Optional. A list of subtables referred to by `main_table`. Can only be set if `main_table` is set.
            { # A table defining the rate group, when `single_value` is not expressive enough.
              &quot;columnHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Headers of the table&#x27;s columns. Optional: if not set then the table has only one dimension.
                &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                    &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                      &quot;A String&quot;,
                    ],
                  },
                ],
                &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The price represented as a number and currency.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                    &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                  },
                ],
                &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The weight represented as the value in string and the unit.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                    &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                  },
                ],
              },
              &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
              &quot;rowHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Required. Headers of the table&#x27;s rows.
                &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                    &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                      &quot;A String&quot;,
                    ],
                  },
                ],
                &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The price represented as a number and currency.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                    &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                  },
                ],
                &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The weight represented as the value in string and the unit.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                    &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                  },
                ],
              },
              &quot;rows&quot;: [ # Required. The list of rows that constitute the table. Must have the same length as `row_headers`.
                { # Include a list of cells.
                  &quot;cells&quot;: [ # Required. The list of cells that constitute the row. Must have the same length as `columnHeaders` for two-dimensional tables, a length of 1 for one-dimensional tables.
                    { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set.
                      &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
                      &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
                        &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                        &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                      },
                      &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
                      &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
                      &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
                    },
                  ],
                },
              ],
            },
          ],
        },
      ],
      &quot;serviceName&quot;: &quot;A String&quot;, # Required. Free-form name of the service. Must be unique within target account.
      &quot;shipmentType&quot;: &quot;A String&quot;, # Optional. Type of locations this service ships orders to.
      &quot;storeConfig&quot;: { # A list of stores your products are delivered from. This is only valid for the local delivery shipment type. # A list of stores your products are delivered from. This is only valid for the local delivery shipment type.
        &quot;cutoffConfig&quot;: { # Configs related to local delivery ends for the day. # Configs related to local delivery ends for the day.
          &quot;localCutoffTime&quot;: { # Time that local delivery ends for the day. # Time that local delivery ends for the day.
            &quot;hour&quot;: &quot;A String&quot;, # Hour local delivery orders must be placed by to process the same day.
            &quot;minute&quot;: &quot;A String&quot;, # Minute local delivery orders must be placed by to process the same day.
          },
          &quot;noDeliveryPostCutoff&quot;: True or False, # Businesses can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it&#x27;s past the cut-off, setting this field to `true` results in the calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the same example, setting this field to `false` results in the calculated shipping time being one day. This is only for local delivery.
          &quot;storeCloseOffsetHours&quot;: &quot;A String&quot;, # Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with `local_cutoff_time`.
        },
        &quot;serviceRadius&quot;: { # Maximum delivery radius. This is only required for the local delivery shipment type. # Maximum delivery radius. This is only required for the local delivery shipment type.
          &quot;unit&quot;: &quot;A String&quot;, # Unit can differ based on country, it is parameterized to include miles and kilometers.
          &quot;value&quot;: &quot;A String&quot;, # Integer value of distance.
        },
        &quot;storeCodes&quot;: [ # Optional. A list of store codes that provide local delivery. If empty, then `all_stores` must be true.
          &quot;A String&quot;,
        ],
        &quot;storeServiceType&quot;: &quot;A String&quot;, # Indicates whether all stores, or selected stores, listed by this business provide local delivery.
      },
    },
  ],
  &quot;warehouses&quot;: [ # Optional. A list of warehouses which can be referred to in `services`.
    { # A fulfillment warehouse, which stores and handles inventory.
      &quot;businessDayConfig&quot;: { # Business days of the warehouse. # Business days of the warehouse. If not set, will be Monday to Friday by default.
        &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
          &quot;A String&quot;,
        ],
      },
      &quot;cutoffTime&quot;: { # The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code. # Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.
        &quot;hour&quot;: 42, # Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Hour is based on the timezone of warehouse.
        &quot;minute&quot;: 42, # Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Minute is based on the timezone of warehouse.
      },
      &quot;handlingDays&quot;: &quot;A String&quot;, # Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item.
      &quot;name&quot;: &quot;A String&quot;, # Required. The name of the warehouse. Must be unique within account.
      &quot;shippingAddress&quot;: { # Shipping address of the warehouse. # Required. Shipping address of the warehouse.
        &quot;administrativeArea&quot;: &quot;A String&quot;, # Required. Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
        &quot;city&quot;: &quot;A String&quot;, # Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs).
        &quot;postalCode&quot;: &quot;A String&quot;, # Required. Postal code or ZIP (For example &quot;94043&quot;).
        &quot;regionCode&quot;: &quot;A String&quot;, # Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (For example &quot;US&quot;).
        &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address. For example: `111w 31st Street`.
      },
    },
  ],
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The Merchant Center account&#x27;s [shipping settings](https://support.google.com/merchants/answer/6069284). The `ShippingSettings` resource lets you retrieve and update the shipping settings of your advanced account and all its associated sub-accounts.
  &quot;etag&quot;: &quot;A String&quot;, # Required. This field helps avoid async issues. It ensures that the shipping setting data doesn&#x27;t change between the `get` call and the `insert` call. The user should follow these steps: 1. Set the etag field as an empty string for the initial shipping setting creation. 2. After the initial creation, call the `get` method to obtain an etag and the current shipping setting data before calling `insert`. 3. Modify the shipping setting information. 4. Call the `insert` method with the shipping setting information and the etag obtained in step 2. 5. If the shipping setting data changes between step 2 and step 4, the insert request will fail because the etag changes every time the shipping setting data changes. In this case, the user should repeat steps 2-4 with the new etag.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the shipping settings. Format: `accounts/{account}/shippingSettings`. For example, `accounts/123456/shippingSettings`.
  &quot;services&quot;: [ # Optional. The target account&#x27;s list of services.
    { # Shipping service.
      &quot;active&quot;: True or False, # Required. A boolean exposing the active status of the shipping service.
      &quot;currencyCode&quot;: &quot;A String&quot;, # Required. The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
      &quot;deliveryCountries&quot;: [ # Required. The CLDR territory code of the countries to which the service applies.
        &quot;A String&quot;,
      ],
      &quot;deliveryTime&quot;: { # Time spent in various aspects from order to the delivery of the product. # Required. Time spent in various aspects from order to the delivery of the product.
        &quot;cutoffTime&quot;: { # Business days cutoff time definition. # Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
          &quot;hour&quot;: 42, # Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day.
          &quot;minute&quot;: 42, # Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day.
          &quot;timeZone&quot;: &quot;A String&quot;, # Required. [Timezone identifier](https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids) For example &quot;Europe/Zurich&quot;.
        },
        &quot;handlingBusinessDayConfig&quot;: { # Business days of the warehouse. # The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.
          &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
            &quot;A String&quot;,
          ],
        },
        &quot;maxHandlingDays&quot;: 42, # Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `min_handling_days`. &#x27;min_handling_days&#x27; and &#x27;max_handling_days&#x27; should be either set or not set at the same time.
        &quot;maxTransitDays&quot;: 42, # Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to `min_transit_days`.
        &quot;minHandlingDays&quot;: 42, # Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. &#x27;min_handling_days&#x27; and &#x27;max_handling_days&#x27; should be either set or not set at the same time.
        &quot;minTransitDays&quot;: 42, # Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `min_transit_days`, `max_transit_days` or `transit_time_table` must be set, but not both.
        &quot;transitBusinessDayConfig&quot;: { # Business days of the warehouse. # The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.
          &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
            &quot;A String&quot;,
          ],
        },
        &quot;transitTimeTable&quot;: { # Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both. # Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both.
          &quot;postalCodeGroupNames&quot;: [ # Required. A list of region names Region.name . The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service.
            &quot;A String&quot;,
          ],
          &quot;rows&quot;: [ # Required. If there&#x27;s only one dimension set of `postal_code_group_names` or `transit_time_labels`, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a `postal_code_group_names`, and columns (values) to a `transit_time_labels`.
            { # If there&#x27;s only one dimension set of `postal_code_group_names` or `transit_time_labels`, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a `postal_code_group_names`, and columns (values) to a `transit_time_labels`.
              &quot;values&quot;: [ # Required. Transit time range (min-max) in business days.
                { # Transit time range (min-max) in business days.
                  &quot;maxTransitDays&quot;: 42, # Must be greater than or equal to `min_transit_days`.
                  &quot;minTransitDays&quot;: 42, # Minimum transit time range in business days. 0 means same day delivery, 1 means next day delivery.
                },
              ],
            },
          ],
          &quot;transitTimeLabels&quot;: [ # Required. A list of transit time labels. The last value can be `&quot;all other labels&quot;`. Example: `[&quot;food&quot;, &quot;electronics&quot;, &quot;all other labels&quot;]`.
            &quot;A String&quot;,
          ],
        },
        &quot;warehouseBasedDeliveryTimes&quot;: [ # Optional. Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in delivery time should be set.
          { # Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in `delivery_time` should be set.
            &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`. [supported carriers](https://support.google.com/merchants/answer/7050921#zippy=%2Ccarrier-rates-au-de-uk-and-us-only)
            &quot;carrierService&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`. The name of the service must be in the eddSupportedServices list.
            &quot;warehouse&quot;: &quot;A String&quot;, # Required. Warehouse name. This should match warehouse.
          },
        ],
      },
      &quot;loyaltyPrograms&quot;: [ # Optional. Loyalty programs that this shipping service is limited to.
        { # [Loyalty program](https://support.google.com/merchants/answer/12922446) provided by a business.
          &quot;loyaltyProgramTiers&quot;: [ # Optional. Loyalty program tier of this shipping service.
            { # Subset of a business&#x27;s loyalty program.
              &quot;tierLabel&quot;: &quot;A String&quot;, # The tier label [tier_label] sub-attribute differentiates offer level benefits between each tier. This value is also set in your program settings in Merchant Center, and is required for data source changes even if your loyalty program only has 1 tier.
            },
          ],
          &quot;programLabel&quot;: &quot;A String&quot;, # This is the loyalty program label set in your loyalty program settings in Merchant Center. This sub-attribute allows Google to map your loyalty program to eligible offers.
        },
      ],
      &quot;minimumOrderValue&quot;: { # The price represented as a number and currency. # Optional. Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with `minimum_order_value_table`.
        &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
        &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
      },
      &quot;minimumOrderValueTable&quot;: { # Table of per store minimum order values for the pickup fulfillment type. # Optional. Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with `minimum_order_value`.
        &quot;storeCodeSetWithMovs&quot;: [ # Required. A list of store code sets sharing the same minimum order value (MOV). At least two sets are required and the last one must be empty, which signifies &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
          { # A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies &#x27;MOV for all other stores&#x27;. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
            &quot;storeCodes&quot;: [ # Optional. A list of unique store codes or empty for the catch all.
              &quot;A String&quot;,
            ],
            &quot;value&quot;: { # The price represented as a number and currency. # The minimum order value for the given stores.
              &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
              &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
            },
          },
        ],
      },
      &quot;rateGroups&quot;: [ # Optional. Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means &quot;everything else&quot;. The other `applicable_shipping_labels` must not overlap.
        { # Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means &quot;everything else&quot;. The other `applicable_shipping_labels` must not overlap.
          &quot;applicableShippingLabels&quot;: [ # Required. A list of [shipping labels](https://support.google.com/merchants/answer/6324504) defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service.
            &quot;A String&quot;,
          ],
          &quot;carrierRates&quot;: [ # Optional. A list of carrier rates that can be referred to by `main_table` or `single_value`.
            { # A list of carrier rates that can be referred to by `main_table` or `single_value`. Supported carrier services are defined in https://support.google.com/merchants/answer/12577710?ref_topic=12570808&amp;sjid=10662598224319463032-NC#zippy=%2Cdelivery-cost-rate-type%2Ccarrier-rate-au-de-uk-and-us-only.
              &quot;carrier&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;UPS&quot;` or `&quot;Fedex&quot;`.
              &quot;carrierService&quot;: &quot;A String&quot;, # Required. Carrier service, such as `&quot;ground&quot;` or `&quot;2 days&quot;`.
              &quot;flatAdjustment&quot;: { # The price represented as a number and currency. # Optional. Additive shipping rate modifier. Can be negative. For example `{ &quot;amount_micros&quot;: 1, &quot;currency_code&quot; : &quot;USD&quot; }` adds $1 to the rate, `{ &quot;amount_micros&quot;: -3, &quot;currency_code&quot; : &quot;USD&quot; }` removes $3 from the rate.
                &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
              },
              &quot;name&quot;: &quot;A String&quot;, # Required. Name of the carrier rate. Must be unique per rate group.
              &quot;originPostalCode&quot;: &quot;A String&quot;, # Required. Shipping origin for this carrier rate.
              &quot;percentageAdjustment&quot;: &quot;A String&quot;, # Optional. Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example `&quot;5.4&quot;` increases the rate by 5.4%, `&quot;-3&quot;` decreases the rate by 3%.
            },
          ],
          &quot;mainTable&quot;: { # A table defining the rate group, when `single_value` is not expressive enough. # A table defining the rate group, when `single_value` is not expressive enough. Can only be set if `single_value` is not set.
            &quot;columnHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Headers of the table&#x27;s columns. Optional: if not set then the table has only one dimension.
              &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                    &quot;A String&quot;,
                  ],
                },
              ],
              &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The price represented as a number and currency.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                },
              ],
              &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The weight represented as the value in string and the unit.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                  &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                },
              ],
            },
            &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
            &quot;rowHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Required. Headers of the table&#x27;s rows.
              &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                    &quot;A String&quot;,
                  ],
                },
              ],
              &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                &quot;A String&quot;,
              ],
              &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The price represented as a number and currency.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                  &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                },
              ],
              &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                { # The weight represented as the value in string and the unit.
                  &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                  &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                },
              ],
            },
            &quot;rows&quot;: [ # Required. The list of rows that constitute the table. Must have the same length as `row_headers`.
              { # Include a list of cells.
                &quot;cells&quot;: [ # Required. The list of cells that constitute the row. Must have the same length as `columnHeaders` for two-dimensional tables, a length of 1 for one-dimensional tables.
                  { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set.
                    &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
                    &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
                      &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                      &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                    },
                    &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
                    &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
                    &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
                  },
                ],
              },
            ],
          },
          &quot;name&quot;: &quot;A String&quot;, # Optional. Name of the rate group. If set has to be unique within shipping service.
          &quot;singleValue&quot;: { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set. # The value of the rate group (For example flat rate $10). Can only be set if `main_table` and `subtables` are not set.
            &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
            &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
              &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
              &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
            },
            &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
            &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
            &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
          },
          &quot;subtables&quot;: [ # Optional. A list of subtables referred to by `main_table`. Can only be set if `main_table` is set.
            { # A table defining the rate group, when `single_value` is not expressive enough.
              &quot;columnHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Headers of the table&#x27;s columns. Optional: if not set then the table has only one dimension.
                &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                    &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                      &quot;A String&quot;,
                    ],
                  },
                ],
                &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The price represented as a number and currency.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                    &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                  },
                ],
                &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The weight represented as the value in string and the unit.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                    &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                  },
                ],
              },
              &quot;name&quot;: &quot;A String&quot;, # Name of the table. Required for subtables, ignored for the main table.
              &quot;rowHeaders&quot;: { # A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set. # Required. Headers of the table&#x27;s rows.
                &quot;locations&quot;: [ # Required. A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                  { # A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
                    &quot;locationIds&quot;: [ # Required. A non-empty list of [location IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting). They must all be of the same location type (For example, state).
                      &quot;A String&quot;,
                    ],
                  },
                ],
                &quot;numberOfItems&quot;: [ # Required. A list of inclusive number of items upper bounds. The last value can be `&quot;infinity&quot;`. For example `[&quot;10&quot;, &quot;50&quot;, &quot;infinity&quot;]` represents the headers &quot;&lt;= 10 items&quot;, &quot;&lt;= 50 items&quot;, and &quot;&gt; 50 items&quot;. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;postalCodeGroupNames&quot;: [ # Required. A list of postal group names. The last value can be `&quot;all other locations&quot;`. Example: `[&quot;zone 1&quot;, &quot;zone 2&quot;, &quot;all other locations&quot;]`. The referred postal code groups must match the delivery country of the service. Must be non-empty. Can only be set if all other fields are not set.
                  &quot;A String&quot;,
                ],
                &quot;prices&quot;: [ # Required. A list of inclusive order price upper bounds. The last price&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: 500000000, &quot;currency_code&quot;: &quot;USD&quot;}, {&quot;amount_micros&quot;: -1, &quot;currency_code&quot;: &quot;USD&quot;}]` represents the headers &quot;&lt;= $10&quot;, &quot;&lt;= $500&quot;, and &quot;&gt; $500&quot;. All prices within a service must have the same currency. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The price represented as a number and currency.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                    &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                  },
                ],
                &quot;weights&quot;: [ # Required. A list of inclusive order weight upper bounds. The last weight&#x27;s value can be infinity by setting price amount_micros = -1. For example `[{&quot;amount_micros&quot;: 10000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: 50000000, &quot;unit&quot;: &quot;kg&quot;}, {&quot;amount_micros&quot;: -1, &quot;unit&quot;: &quot;kg&quot;}]` represents the headers &quot;&lt;= 10kg&quot;, &quot;&lt;= 50kg&quot;, and &quot;&gt; 50kg&quot;. All weights within a service must have the same unit. Must be non-empty. Must be positive except -1. Can only be set if all other fields are not set.
                  { # The weight represented as the value in string and the unit.
                    &quot;amountMicros&quot;: &quot;A String&quot;, # Required. The weight represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 kg = 1000000 micros). This field can also be set as infinity by setting to -1. This field only support -1 and positive value.
                    &quot;unit&quot;: &quot;A String&quot;, # Required. The weight unit. Acceptable values are: kg and lb
                  },
                ],
              },
              &quot;rows&quot;: [ # Required. The list of rows that constitute the table. Must have the same length as `row_headers`.
                { # Include a list of cells.
                  &quot;cells&quot;: [ # Required. The list of cells that constitute the row. Must have the same length as `columnHeaders` for two-dimensional tables, a length of 1 for one-dimensional tables.
                    { # The single value of a rate group or the value of a rate group table&#x27;s cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set.
                      &quot;carrierRate&quot;: &quot;A String&quot;, # The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set.
                      &quot;flatRate&quot;: { # The price represented as a number and currency. # A flat rate. Can only be set if all other fields are not set.
                        &quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
                        &quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
                      },
                      &quot;noShipping&quot;: True or False, # If true, then the product can&#x27;t be shipped. Must be true when set, can only be set if all other fields are not set.
                      &quot;pricePercentage&quot;: &quot;A String&quot;, # A percentage of the price represented as a number in decimal notation (For example, `&quot;5.4&quot;`). Can only be set if all other fields are not set.
                      &quot;subtable&quot;: &quot;A String&quot;, # The name of a subtable. Can only be set in table cells (For example, not for single values), and only if all other fields are not set.
                    },
                  ],
                },
              ],
            },
          ],
        },
      ],
      &quot;serviceName&quot;: &quot;A String&quot;, # Required. Free-form name of the service. Must be unique within target account.
      &quot;shipmentType&quot;: &quot;A String&quot;, # Optional. Type of locations this service ships orders to.
      &quot;storeConfig&quot;: { # A list of stores your products are delivered from. This is only valid for the local delivery shipment type. # A list of stores your products are delivered from. This is only valid for the local delivery shipment type.
        &quot;cutoffConfig&quot;: { # Configs related to local delivery ends for the day. # Configs related to local delivery ends for the day.
          &quot;localCutoffTime&quot;: { # Time that local delivery ends for the day. # Time that local delivery ends for the day.
            &quot;hour&quot;: &quot;A String&quot;, # Hour local delivery orders must be placed by to process the same day.
            &quot;minute&quot;: &quot;A String&quot;, # Minute local delivery orders must be placed by to process the same day.
          },
          &quot;noDeliveryPostCutoff&quot;: True or False, # Businesses can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it&#x27;s past the cut-off, setting this field to `true` results in the calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the same example, setting this field to `false` results in the calculated shipping time being one day. This is only for local delivery.
          &quot;storeCloseOffsetHours&quot;: &quot;A String&quot;, # Only valid with local delivery fulfillment. Represents cutoff time as the number of hours before store closing. Mutually exclusive with `local_cutoff_time`.
        },
        &quot;serviceRadius&quot;: { # Maximum delivery radius. This is only required for the local delivery shipment type. # Maximum delivery radius. This is only required for the local delivery shipment type.
          &quot;unit&quot;: &quot;A String&quot;, # Unit can differ based on country, it is parameterized to include miles and kilometers.
          &quot;value&quot;: &quot;A String&quot;, # Integer value of distance.
        },
        &quot;storeCodes&quot;: [ # Optional. A list of store codes that provide local delivery. If empty, then `all_stores` must be true.
          &quot;A String&quot;,
        ],
        &quot;storeServiceType&quot;: &quot;A String&quot;, # Indicates whether all stores, or selected stores, listed by this business provide local delivery.
      },
    },
  ],
  &quot;warehouses&quot;: [ # Optional. A list of warehouses which can be referred to in `services`.
    { # A fulfillment warehouse, which stores and handles inventory.
      &quot;businessDayConfig&quot;: { # Business days of the warehouse. # Business days of the warehouse. If not set, will be Monday to Friday by default.
        &quot;businessDays&quot;: [ # Required. Regular business days. May not be empty.
          &quot;A String&quot;,
        ],
      },
      &quot;cutoffTime&quot;: { # The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code. # Required. The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.
        &quot;hour&quot;: 42, # Required. Hour of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Hour is based on the timezone of warehouse.
        &quot;minute&quot;: 42, # Required. Minute of the cutoff time until which an order has to be placed to be processed in the same day by the warehouse. Minute is based on the timezone of warehouse.
      },
      &quot;handlingDays&quot;: &quot;A String&quot;, # Required. The number of days it takes for this warehouse to pack up and ship an item. This is on the warehouse level, but can be overridden on the offer level based on the attributes of an item.
      &quot;name&quot;: &quot;A String&quot;, # Required. The name of the warehouse. Must be unique within account.
      &quot;shippingAddress&quot;: { # Shipping address of the warehouse. # Required. Shipping address of the warehouse.
        &quot;administrativeArea&quot;: &quot;A String&quot;, # Required. Top-level administrative subdivision of the country. For example, a state like California (&quot;CA&quot;) or a province like Quebec (&quot;QC&quot;).
        &quot;city&quot;: &quot;A String&quot;, # Required. City, town or commune. May also include dependent localities or sublocalities (For example neighborhoods or suburbs).
        &quot;postalCode&quot;: &quot;A String&quot;, # Required. Postal code or ZIP (For example &quot;94043&quot;).
        &quot;regionCode&quot;: &quot;A String&quot;, # Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (For example &quot;US&quot;).
        &quot;streetAddress&quot;: &quot;A String&quot;, # Street-level part of the address. For example: `111w 31st Street`.
      },
    },
  ],
}</pre>
</div>

</body></html>