• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="content_v2.html">Content API for Shopping</a> . <a href="content_v2.products.html">products</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#custombatch">custombatch(body, dryRun=None)</a></code></p>
79<p class="firstline">Retrieves, inserts, and deletes multiple products in a single request. This method can only be called for non-multi-client accounts.</p>
80<p class="toc_element">
81  <code><a href="#delete">delete(merchantId, productId, dryRun=None)</a></code></p>
82<p class="firstline">Deletes a product from your Merchant Center account. This method can only be called for non-multi-client accounts.</p>
83<p class="toc_element">
84  <code><a href="#get">get(merchantId, productId)</a></code></p>
85<p class="firstline">Retrieves a product from your Merchant Center account. This method can only be called for non-multi-client accounts.</p>
86<p class="toc_element">
87  <code><a href="#insert">insert(merchantId, body, dryRun=None)</a></code></p>
88<p class="firstline">Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry. This method can only be called for non-multi-client accounts.</p>
89<p class="toc_element">
90  <code><a href="#list">list(merchantId, includeInvalidInsertedItems=None, pageToken=None, maxResults=None)</a></code></p>
91<p class="firstline">Lists the products in your Merchant Center account. This method can only be called for non-multi-client accounts.</p>
92<p class="toc_element">
93  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
97    <code class="details" id="custombatch">custombatch(body, dryRun=None)</code>
98  <pre>Retrieves, inserts, and deletes multiple products in a single request. This method can only be called for non-multi-client accounts.
99
100Args:
101  body: object, The request body. (required)
102    The object takes the form of:
103
104{
105    "entries": [ # The request entries to be processed in the batch.
106      { # A batch entry encoding a single non-batch products request.
107        "batchId": 42, # An entry ID, unique within the batch request.
108        "product": { # Product data. # The product to insert. Only required if the method is insert.
109            "displayAdsTitle": "A String", # Title of an item for dynamic remarketing campaigns.
110            "color": "A String", # Color of the item.
111            "availability": "A String", # Availability status of the item.
112            "additionalImageLinks": [ # Additional URLs of images of the item.
113              "A String",
114            ],
115            "adwordsLabels": [ # Similar to adwords_grouping, but only works on CPC.
116              "A String",
117            ],
118            "itemGroupId": "A String", # Shared identifier for all variants of the same product.
119            "promotionIds": [ # The unique ID of a promotion.
120              "A String",
121            ],
122            "gtin": "A String", # Global Trade Item Number (GTIN) of the item.
123            "expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.
124            "googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
125            "id": "A String", # The REST id of the product.
126            "multipack": "A String", # The number of identical products in a merchant-defined multipack.
127            "displayAdsId": "A String", # An identifier for an item for dynamic remarketing campaigns.
128            "displayAdsValue": 3.14, # Offer margin for dynamic remarketing campaigns.
129            "availabilityDate": "A String", # The day a pre-ordered product becomes available for delivery, in ISO 8601 format.
130            "adwordsGrouping": "A String", # Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
131            "destinations": [ # Specifies the intended destinations for the product.
132              {
133                "intention": "A String", # Whether the destination is required, excluded or should be validated.
134                "destinationName": "A String", # The name of the destination.
135              },
136            ],
137            "targetCountry": "A String", # The CLDR territory code for the item.
138            "sizeType": "A String", # The cut of the item. Recommended for apparel items.
139            "offerId": "A String", # An identifier of the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details.
140            "shippingWidth": { # Width of the item for shipping.
141              "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
142              "unit": "A String", # The unit of value.
143                  #
144                  # Acceptable values are:
145                  # - "cm"
146                  # - "in"
147            },
148            "additionalProductTypes": [ # Additional categories of the item (formatted as in products feed specification).
149              "A String",
150            ],
151            "unitPricingMeasure": { # The measure and dimension of an item.
152              "value": 3.14, # The measure of an item.
153              "unit": "A String", # The unit of the measure.
154            },
155            "imageLink": "A String", # URL of an image of the item.
156            "validatedDestinations": [ # The read-only list of intended destinations which passed validation.
157              "A String",
158            ],
159            "customLabel2": "A String", # Custom label 2 for custom grouping of items in a Shopping campaign.
160            "customLabel1": "A String", # Custom label 1 for custom grouping of items in a Shopping campaign.
161            "isBundle": True or False, # Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.
162            "mobileLink": "A String", # Link to a mobile-optimized version of the landing page.
163            "price": { # Price of the item.
164              "currency": "A String", # The currency of the price.
165              "value": "A String", # The price represented as a number.
166            },
167            "channel": "A String", # The item's channel (online or local).
168            "onlineOnly": True or False, # Whether an item is available for purchase only online.
169            "loyaltyPoints": { # Loyalty points that users receive after purchasing the item. Japan only.
170              "ratio": 3.14, # The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
171              "name": "A String", # Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
172              "pointsValue": "A String", # The retailer's loyalty points in absolute value.
173            },
174            "aspects": [ # Specifies the intended aspects for the product.
175              {
176                "intention": "A String", # Whether the aspect is required, excluded or should be validated.
177                "aspectName": "A String", # The name of the aspect.
178                "destinationName": "A String", # The name of the destination. Leave out to apply to all destinations.
179              },
180            ],
181            "description": "A String", # Description of the item.
182            "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item.
183            "warnings": [ # Read-only warnings.
184              { # An error returned by the API.
185                "reason": "A String", # The error code.
186                "domain": "A String", # The domain of the error.
187                "message": "A String", # A description of the error.
188              },
189            ],
190            "mpn": "A String", # Manufacturer Part Number (MPN) of the item.
191            "salePriceEffectiveDate": "A String", # Date range during which the item is on sale (see products feed specification).
192            "brand": "A String", # Brand of the item.
193            "material": "A String", # The material of which the item is made.
194            "shippingLength": { # Length of the item for shipping.
195              "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
196              "unit": "A String", # The unit of value.
197                  #
198                  # Acceptable values are:
199                  # - "cm"
200                  # - "in"
201            },
202            "taxes": [ # Tax information.
203              {
204                "country": "A String", # The country within which the item is taxed, specified as a CLDR territory code.
205                "region": "A String", # The geographic region to which the tax rate applies.
206                "rate": 3.14, # The percentage of tax rate that applies to the item price.
207                "locationId": "A String", # The numeric id of a location that the tax rate applies to as defined in the AdWords API.
208                "postalCode": "A String", # The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.
209                "taxShip": True or False, # Set to true if tax is charged on shipping.
210              },
211            ],
212            "shippingHeight": { # Height of the item for shipping.
213              "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
214              "unit": "A String", # The unit of value.
215                  #
216                  # Acceptable values are:
217                  # - "cm"
218                  # - "in"
219            },
220            "sellOnGoogleQuantity": "A String", # The quantity of the product that is reserved for sell-on-google ads.
221            "link": "A String", # URL directly linking to your item's page on your website.
222            "adwordsRedirect": "A String", # Allows advertisers to override the item URL when the product is shown within the context of Product Ads.
223            "displayAdsLink": "A String", # URL directly to your item's landing page for dynamic remarketing campaigns.
224            "energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU.
225            "sizeSystem": "A String", # System in which the size is specified. Recommended for apparel items.
226            "customLabel4": "A String", # Custom label 4 for custom grouping of items in a Shopping campaign.
227            "customLabel3": "A String", # Custom label 3 for custom grouping of items in a Shopping campaign.
228            "customGroups": [ # A list of custom (merchant-provided) custom attribute groups.
229              {
230                "attributes": [ # The sub-attributes.
231                  {
232                    "value": "A String", # The value of the attribute.
233                    "type": "A String", # The type of the attribute.
234                    "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
235                    "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
236                  },
237                ],
238                "name": "A String", # The name of the group. Underscores will be replaced by spaces upon insertion.
239              },
240            ],
241            "condition": "A String", # Condition or state of the item.
242            "customLabel0": "A String", # Custom label 0 for custom grouping of items in a Shopping campaign.
243            "shippingLabel": "A String", # The shipping label of the product, used to group product in account-level shipping rules.
244            "kind": "content#product", # Identifies what kind of resource this is. Value: the fixed string "content#product".
245            "unitPricingBaseMeasure": { # The preference of the denominator of the unit price.
246              "value": "A String", # The denominator of the unit price.
247              "unit": "A String", # The unit of the denominator.
248            },
249            "installment": { # Number and amount of installments to pay for an item. Brazil only.
250              "amount": { # The amount the buyer has to pay per month.
251                "currency": "A String", # The currency of the price.
252                "value": "A String", # The price represented as a number.
253              },
254              "months": "A String", # The number of installments the buyer has to pay.
255            },
256            "sizes": [ # Size of the item.
257              "A String",
258            ],
259            "gender": "A String", # Target gender of the item.
260            "title": "A String", # Title of the item.
261            "shipping": [ # Shipping rules.
262              {
263                "service": "A String", # A free-form description of the service class or delivery speed.
264                "country": "A String", # The CLDR territory code of the country to which an item will ship.
265                "price": { # Fixed shipping price, represented as a number.
266                  "currency": "A String", # The currency of the price.
267                  "value": "A String", # The price represented as a number.
268                },
269                "locationId": "A String", # The numeric id of a location that the shipping rate applies to as defined in the AdWords API.
270                "postalCode": "A String", # The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length.
271                "region": "A String", # The geographic region to which a shipping rate applies (e.g. zip code).
272                "locationGroupName": "A String", # The location where the shipping is applicable, represented by a location group name.
273              },
274            ],
275            "shippingWeight": { # Weight of the item for shipping.
276              "value": 3.14, # The weight of the product used to calculate the shipping cost of the item.
277              "unit": "A String", # The unit of value.
278            },
279            "identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
280            "customAttributes": [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., { "name": "size type", "type": "text", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API.
281              {
282                "value": "A String", # The value of the attribute.
283                "type": "A String", # The type of the attribute.
284                "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
285                "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
286              },
287            ],
288            "salePrice": { # Advertised sale price of the item.
289              "currency": "A String", # The currency of the price.
290              "value": "A String", # The price represented as a number.
291            },
292            "productType": "A String", # Your category of the item (formatted as in products feed specification).
293            "pattern": "A String", # The item's pattern (e.g. polka dots).
294            "displayAdsSimilarIds": [ # Advertiser-specified recommendations.
295              "A String",
296            ],
297            "ageGroup": "A String", # Target age group of the item.
298            "adult": True or False, # Set to true if the item is targeted towards adults.
299          },
300        "productId": "A String", # The ID of the product to get or delete. Only defined if the method is get or delete.
301        "merchantId": "A String", # The ID of the managing account.
302        "method": "A String",
303      },
304    ],
305  }
306
307  dryRun: boolean, Flag to run the request in dry-run mode.
308
309Returns:
310  An object of the form:
311
312    {
313    "kind": "content#productsCustomBatchResponse", # Identifies what kind of resource this is. Value: the fixed string "content#productsCustomBatchResponse".
314    "entries": [ # The result of the execution of the batch requests.
315      { # A batch entry encoding a single non-batch products response.
316        "batchId": 42, # The ID of the request entry this entry responds to.
317        "kind": "content#productsCustomBatchResponseEntry", # Identifies what kind of resource this is. Value: the fixed string "content#productsCustomBatchResponseEntry".
318        "errors": { # A list of errors returned by a failed batch entry. # A list of errors defined if and only if the request failed.
319          "message": "A String", # The message of the first error in errors.
320          "code": 42, # The HTTP status of the first error in errors.
321          "errors": [ # A list of errors.
322            { # An error returned by the API.
323              "reason": "A String", # The error code.
324              "domain": "A String", # The domain of the error.
325              "message": "A String", # A description of the error.
326            },
327          ],
328        },
329        "product": { # Product data. # The inserted product. Only defined if the method is insert and if the request was successful.
330            "displayAdsTitle": "A String", # Title of an item for dynamic remarketing campaigns.
331            "color": "A String", # Color of the item.
332            "availability": "A String", # Availability status of the item.
333            "additionalImageLinks": [ # Additional URLs of images of the item.
334              "A String",
335            ],
336            "adwordsLabels": [ # Similar to adwords_grouping, but only works on CPC.
337              "A String",
338            ],
339            "itemGroupId": "A String", # Shared identifier for all variants of the same product.
340            "promotionIds": [ # The unique ID of a promotion.
341              "A String",
342            ],
343            "gtin": "A String", # Global Trade Item Number (GTIN) of the item.
344            "expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.
345            "googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
346            "id": "A String", # The REST id of the product.
347            "multipack": "A String", # The number of identical products in a merchant-defined multipack.
348            "displayAdsId": "A String", # An identifier for an item for dynamic remarketing campaigns.
349            "displayAdsValue": 3.14, # Offer margin for dynamic remarketing campaigns.
350            "availabilityDate": "A String", # The day a pre-ordered product becomes available for delivery, in ISO 8601 format.
351            "adwordsGrouping": "A String", # Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
352            "destinations": [ # Specifies the intended destinations for the product.
353              {
354                "intention": "A String", # Whether the destination is required, excluded or should be validated.
355                "destinationName": "A String", # The name of the destination.
356              },
357            ],
358            "targetCountry": "A String", # The CLDR territory code for the item.
359            "sizeType": "A String", # The cut of the item. Recommended for apparel items.
360            "offerId": "A String", # An identifier of the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details.
361            "shippingWidth": { # Width of the item for shipping.
362              "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
363              "unit": "A String", # The unit of value.
364                  #
365                  # Acceptable values are:
366                  # - "cm"
367                  # - "in"
368            },
369            "additionalProductTypes": [ # Additional categories of the item (formatted as in products feed specification).
370              "A String",
371            ],
372            "unitPricingMeasure": { # The measure and dimension of an item.
373              "value": 3.14, # The measure of an item.
374              "unit": "A String", # The unit of the measure.
375            },
376            "imageLink": "A String", # URL of an image of the item.
377            "validatedDestinations": [ # The read-only list of intended destinations which passed validation.
378              "A String",
379            ],
380            "customLabel2": "A String", # Custom label 2 for custom grouping of items in a Shopping campaign.
381            "customLabel1": "A String", # Custom label 1 for custom grouping of items in a Shopping campaign.
382            "isBundle": True or False, # Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.
383            "mobileLink": "A String", # Link to a mobile-optimized version of the landing page.
384            "price": { # Price of the item.
385              "currency": "A String", # The currency of the price.
386              "value": "A String", # The price represented as a number.
387            },
388            "channel": "A String", # The item's channel (online or local).
389            "onlineOnly": True or False, # Whether an item is available for purchase only online.
390            "loyaltyPoints": { # Loyalty points that users receive after purchasing the item. Japan only.
391              "ratio": 3.14, # The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
392              "name": "A String", # Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
393              "pointsValue": "A String", # The retailer's loyalty points in absolute value.
394            },
395            "aspects": [ # Specifies the intended aspects for the product.
396              {
397                "intention": "A String", # Whether the aspect is required, excluded or should be validated.
398                "aspectName": "A String", # The name of the aspect.
399                "destinationName": "A String", # The name of the destination. Leave out to apply to all destinations.
400              },
401            ],
402            "description": "A String", # Description of the item.
403            "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item.
404            "warnings": [ # Read-only warnings.
405              { # An error returned by the API.
406                "reason": "A String", # The error code.
407                "domain": "A String", # The domain of the error.
408                "message": "A String", # A description of the error.
409              },
410            ],
411            "mpn": "A String", # Manufacturer Part Number (MPN) of the item.
412            "salePriceEffectiveDate": "A String", # Date range during which the item is on sale (see products feed specification).
413            "brand": "A String", # Brand of the item.
414            "material": "A String", # The material of which the item is made.
415            "shippingLength": { # Length of the item for shipping.
416              "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
417              "unit": "A String", # The unit of value.
418                  #
419                  # Acceptable values are:
420                  # - "cm"
421                  # - "in"
422            },
423            "taxes": [ # Tax information.
424              {
425                "country": "A String", # The country within which the item is taxed, specified as a CLDR territory code.
426                "region": "A String", # The geographic region to which the tax rate applies.
427                "rate": 3.14, # The percentage of tax rate that applies to the item price.
428                "locationId": "A String", # The numeric id of a location that the tax rate applies to as defined in the AdWords API.
429                "postalCode": "A String", # The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.
430                "taxShip": True or False, # Set to true if tax is charged on shipping.
431              },
432            ],
433            "shippingHeight": { # Height of the item for shipping.
434              "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
435              "unit": "A String", # The unit of value.
436                  #
437                  # Acceptable values are:
438                  # - "cm"
439                  # - "in"
440            },
441            "sellOnGoogleQuantity": "A String", # The quantity of the product that is reserved for sell-on-google ads.
442            "link": "A String", # URL directly linking to your item's page on your website.
443            "adwordsRedirect": "A String", # Allows advertisers to override the item URL when the product is shown within the context of Product Ads.
444            "displayAdsLink": "A String", # URL directly to your item's landing page for dynamic remarketing campaigns.
445            "energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU.
446            "sizeSystem": "A String", # System in which the size is specified. Recommended for apparel items.
447            "customLabel4": "A String", # Custom label 4 for custom grouping of items in a Shopping campaign.
448            "customLabel3": "A String", # Custom label 3 for custom grouping of items in a Shopping campaign.
449            "customGroups": [ # A list of custom (merchant-provided) custom attribute groups.
450              {
451                "attributes": [ # The sub-attributes.
452                  {
453                    "value": "A String", # The value of the attribute.
454                    "type": "A String", # The type of the attribute.
455                    "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
456                    "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
457                  },
458                ],
459                "name": "A String", # The name of the group. Underscores will be replaced by spaces upon insertion.
460              },
461            ],
462            "condition": "A String", # Condition or state of the item.
463            "customLabel0": "A String", # Custom label 0 for custom grouping of items in a Shopping campaign.
464            "shippingLabel": "A String", # The shipping label of the product, used to group product in account-level shipping rules.
465            "kind": "content#product", # Identifies what kind of resource this is. Value: the fixed string "content#product".
466            "unitPricingBaseMeasure": { # The preference of the denominator of the unit price.
467              "value": "A String", # The denominator of the unit price.
468              "unit": "A String", # The unit of the denominator.
469            },
470            "installment": { # Number and amount of installments to pay for an item. Brazil only.
471              "amount": { # The amount the buyer has to pay per month.
472                "currency": "A String", # The currency of the price.
473                "value": "A String", # The price represented as a number.
474              },
475              "months": "A String", # The number of installments the buyer has to pay.
476            },
477            "sizes": [ # Size of the item.
478              "A String",
479            ],
480            "gender": "A String", # Target gender of the item.
481            "title": "A String", # Title of the item.
482            "shipping": [ # Shipping rules.
483              {
484                "service": "A String", # A free-form description of the service class or delivery speed.
485                "country": "A String", # The CLDR territory code of the country to which an item will ship.
486                "price": { # Fixed shipping price, represented as a number.
487                  "currency": "A String", # The currency of the price.
488                  "value": "A String", # The price represented as a number.
489                },
490                "locationId": "A String", # The numeric id of a location that the shipping rate applies to as defined in the AdWords API.
491                "postalCode": "A String", # The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length.
492                "region": "A String", # The geographic region to which a shipping rate applies (e.g. zip code).
493                "locationGroupName": "A String", # The location where the shipping is applicable, represented by a location group name.
494              },
495            ],
496            "shippingWeight": { # Weight of the item for shipping.
497              "value": 3.14, # The weight of the product used to calculate the shipping cost of the item.
498              "unit": "A String", # The unit of value.
499            },
500            "identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
501            "customAttributes": [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., { "name": "size type", "type": "text", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API.
502              {
503                "value": "A String", # The value of the attribute.
504                "type": "A String", # The type of the attribute.
505                "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
506                "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
507              },
508            ],
509            "salePrice": { # Advertised sale price of the item.
510              "currency": "A String", # The currency of the price.
511              "value": "A String", # The price represented as a number.
512            },
513            "productType": "A String", # Your category of the item (formatted as in products feed specification).
514            "pattern": "A String", # The item's pattern (e.g. polka dots).
515            "displayAdsSimilarIds": [ # Advertiser-specified recommendations.
516              "A String",
517            ],
518            "ageGroup": "A String", # Target age group of the item.
519            "adult": True or False, # Set to true if the item is targeted towards adults.
520          },
521      },
522    ],
523  }</pre>
524</div>
525
526<div class="method">
527    <code class="details" id="delete">delete(merchantId, productId, dryRun=None)</code>
528  <pre>Deletes a product from your Merchant Center account. This method can only be called for non-multi-client accounts.
529
530Args:
531  merchantId: string, The ID of the managing account. (required)
532  productId: string, The ID of the product. (required)
533  dryRun: boolean, Flag to run the request in dry-run mode.
534</pre>
535</div>
536
537<div class="method">
538    <code class="details" id="get">get(merchantId, productId)</code>
539  <pre>Retrieves a product from your Merchant Center account. This method can only be called for non-multi-client accounts.
540
541Args:
542  merchantId: string, The ID of the managing account. (required)
543  productId: string, The ID of the product. (required)
544
545Returns:
546  An object of the form:
547
548    { # Product data.
549      "displayAdsTitle": "A String", # Title of an item for dynamic remarketing campaigns.
550      "color": "A String", # Color of the item.
551      "availability": "A String", # Availability status of the item.
552      "additionalImageLinks": [ # Additional URLs of images of the item.
553        "A String",
554      ],
555      "adwordsLabels": [ # Similar to adwords_grouping, but only works on CPC.
556        "A String",
557      ],
558      "itemGroupId": "A String", # Shared identifier for all variants of the same product.
559      "promotionIds": [ # The unique ID of a promotion.
560        "A String",
561      ],
562      "gtin": "A String", # Global Trade Item Number (GTIN) of the item.
563      "expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.
564      "googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
565      "id": "A String", # The REST id of the product.
566      "multipack": "A String", # The number of identical products in a merchant-defined multipack.
567      "displayAdsId": "A String", # An identifier for an item for dynamic remarketing campaigns.
568      "displayAdsValue": 3.14, # Offer margin for dynamic remarketing campaigns.
569      "availabilityDate": "A String", # The day a pre-ordered product becomes available for delivery, in ISO 8601 format.
570      "adwordsGrouping": "A String", # Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
571      "destinations": [ # Specifies the intended destinations for the product.
572        {
573          "intention": "A String", # Whether the destination is required, excluded or should be validated.
574          "destinationName": "A String", # The name of the destination.
575        },
576      ],
577      "targetCountry": "A String", # The CLDR territory code for the item.
578      "sizeType": "A String", # The cut of the item. Recommended for apparel items.
579      "offerId": "A String", # An identifier of the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details.
580      "shippingWidth": { # Width of the item for shipping.
581        "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
582        "unit": "A String", # The unit of value.
583            #
584            # Acceptable values are:
585            # - "cm"
586            # - "in"
587      },
588      "additionalProductTypes": [ # Additional categories of the item (formatted as in products feed specification).
589        "A String",
590      ],
591      "unitPricingMeasure": { # The measure and dimension of an item.
592        "value": 3.14, # The measure of an item.
593        "unit": "A String", # The unit of the measure.
594      },
595      "imageLink": "A String", # URL of an image of the item.
596      "validatedDestinations": [ # The read-only list of intended destinations which passed validation.
597        "A String",
598      ],
599      "customLabel2": "A String", # Custom label 2 for custom grouping of items in a Shopping campaign.
600      "customLabel1": "A String", # Custom label 1 for custom grouping of items in a Shopping campaign.
601      "isBundle": True or False, # Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.
602      "mobileLink": "A String", # Link to a mobile-optimized version of the landing page.
603      "price": { # Price of the item.
604        "currency": "A String", # The currency of the price.
605        "value": "A String", # The price represented as a number.
606      },
607      "channel": "A String", # The item's channel (online or local).
608      "onlineOnly": True or False, # Whether an item is available for purchase only online.
609      "loyaltyPoints": { # Loyalty points that users receive after purchasing the item. Japan only.
610        "ratio": 3.14, # The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
611        "name": "A String", # Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
612        "pointsValue": "A String", # The retailer's loyalty points in absolute value.
613      },
614      "aspects": [ # Specifies the intended aspects for the product.
615        {
616          "intention": "A String", # Whether the aspect is required, excluded or should be validated.
617          "aspectName": "A String", # The name of the aspect.
618          "destinationName": "A String", # The name of the destination. Leave out to apply to all destinations.
619        },
620      ],
621      "description": "A String", # Description of the item.
622      "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item.
623      "warnings": [ # Read-only warnings.
624        { # An error returned by the API.
625          "reason": "A String", # The error code.
626          "domain": "A String", # The domain of the error.
627          "message": "A String", # A description of the error.
628        },
629      ],
630      "mpn": "A String", # Manufacturer Part Number (MPN) of the item.
631      "salePriceEffectiveDate": "A String", # Date range during which the item is on sale (see products feed specification).
632      "brand": "A String", # Brand of the item.
633      "material": "A String", # The material of which the item is made.
634      "shippingLength": { # Length of the item for shipping.
635        "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
636        "unit": "A String", # The unit of value.
637            #
638            # Acceptable values are:
639            # - "cm"
640            # - "in"
641      },
642      "taxes": [ # Tax information.
643        {
644          "country": "A String", # The country within which the item is taxed, specified as a CLDR territory code.
645          "region": "A String", # The geographic region to which the tax rate applies.
646          "rate": 3.14, # The percentage of tax rate that applies to the item price.
647          "locationId": "A String", # The numeric id of a location that the tax rate applies to as defined in the AdWords API.
648          "postalCode": "A String", # The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.
649          "taxShip": True or False, # Set to true if tax is charged on shipping.
650        },
651      ],
652      "shippingHeight": { # Height of the item for shipping.
653        "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
654        "unit": "A String", # The unit of value.
655            #
656            # Acceptable values are:
657            # - "cm"
658            # - "in"
659      },
660      "sellOnGoogleQuantity": "A String", # The quantity of the product that is reserved for sell-on-google ads.
661      "link": "A String", # URL directly linking to your item's page on your website.
662      "adwordsRedirect": "A String", # Allows advertisers to override the item URL when the product is shown within the context of Product Ads.
663      "displayAdsLink": "A String", # URL directly to your item's landing page for dynamic remarketing campaigns.
664      "energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU.
665      "sizeSystem": "A String", # System in which the size is specified. Recommended for apparel items.
666      "customLabel4": "A String", # Custom label 4 for custom grouping of items in a Shopping campaign.
667      "customLabel3": "A String", # Custom label 3 for custom grouping of items in a Shopping campaign.
668      "customGroups": [ # A list of custom (merchant-provided) custom attribute groups.
669        {
670          "attributes": [ # The sub-attributes.
671            {
672              "value": "A String", # The value of the attribute.
673              "type": "A String", # The type of the attribute.
674              "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
675              "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
676            },
677          ],
678          "name": "A String", # The name of the group. Underscores will be replaced by spaces upon insertion.
679        },
680      ],
681      "condition": "A String", # Condition or state of the item.
682      "customLabel0": "A String", # Custom label 0 for custom grouping of items in a Shopping campaign.
683      "shippingLabel": "A String", # The shipping label of the product, used to group product in account-level shipping rules.
684      "kind": "content#product", # Identifies what kind of resource this is. Value: the fixed string "content#product".
685      "unitPricingBaseMeasure": { # The preference of the denominator of the unit price.
686        "value": "A String", # The denominator of the unit price.
687        "unit": "A String", # The unit of the denominator.
688      },
689      "installment": { # Number and amount of installments to pay for an item. Brazil only.
690        "amount": { # The amount the buyer has to pay per month.
691          "currency": "A String", # The currency of the price.
692          "value": "A String", # The price represented as a number.
693        },
694        "months": "A String", # The number of installments the buyer has to pay.
695      },
696      "sizes": [ # Size of the item.
697        "A String",
698      ],
699      "gender": "A String", # Target gender of the item.
700      "title": "A String", # Title of the item.
701      "shipping": [ # Shipping rules.
702        {
703          "service": "A String", # A free-form description of the service class or delivery speed.
704          "country": "A String", # The CLDR territory code of the country to which an item will ship.
705          "price": { # Fixed shipping price, represented as a number.
706            "currency": "A String", # The currency of the price.
707            "value": "A String", # The price represented as a number.
708          },
709          "locationId": "A String", # The numeric id of a location that the shipping rate applies to as defined in the AdWords API.
710          "postalCode": "A String", # The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length.
711          "region": "A String", # The geographic region to which a shipping rate applies (e.g. zip code).
712          "locationGroupName": "A String", # The location where the shipping is applicable, represented by a location group name.
713        },
714      ],
715      "shippingWeight": { # Weight of the item for shipping.
716        "value": 3.14, # The weight of the product used to calculate the shipping cost of the item.
717        "unit": "A String", # The unit of value.
718      },
719      "identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
720      "customAttributes": [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., { "name": "size type", "type": "text", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API.
721        {
722          "value": "A String", # The value of the attribute.
723          "type": "A String", # The type of the attribute.
724          "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
725          "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
726        },
727      ],
728      "salePrice": { # Advertised sale price of the item.
729        "currency": "A String", # The currency of the price.
730        "value": "A String", # The price represented as a number.
731      },
732      "productType": "A String", # Your category of the item (formatted as in products feed specification).
733      "pattern": "A String", # The item's pattern (e.g. polka dots).
734      "displayAdsSimilarIds": [ # Advertiser-specified recommendations.
735        "A String",
736      ],
737      "ageGroup": "A String", # Target age group of the item.
738      "adult": True or False, # Set to true if the item is targeted towards adults.
739    }</pre>
740</div>
741
742<div class="method">
743    <code class="details" id="insert">insert(merchantId, body, dryRun=None)</code>
744  <pre>Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry. This method can only be called for non-multi-client accounts.
745
746Args:
747  merchantId: string, The ID of the managing account. (required)
748  body: object, The request body. (required)
749    The object takes the form of:
750
751{ # Product data.
752    "displayAdsTitle": "A String", # Title of an item for dynamic remarketing campaigns.
753    "color": "A String", # Color of the item.
754    "availability": "A String", # Availability status of the item.
755    "additionalImageLinks": [ # Additional URLs of images of the item.
756      "A String",
757    ],
758    "adwordsLabels": [ # Similar to adwords_grouping, but only works on CPC.
759      "A String",
760    ],
761    "itemGroupId": "A String", # Shared identifier for all variants of the same product.
762    "promotionIds": [ # The unique ID of a promotion.
763      "A String",
764    ],
765    "gtin": "A String", # Global Trade Item Number (GTIN) of the item.
766    "expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.
767    "googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
768    "id": "A String", # The REST id of the product.
769    "multipack": "A String", # The number of identical products in a merchant-defined multipack.
770    "displayAdsId": "A String", # An identifier for an item for dynamic remarketing campaigns.
771    "displayAdsValue": 3.14, # Offer margin for dynamic remarketing campaigns.
772    "availabilityDate": "A String", # The day a pre-ordered product becomes available for delivery, in ISO 8601 format.
773    "adwordsGrouping": "A String", # Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
774    "destinations": [ # Specifies the intended destinations for the product.
775      {
776        "intention": "A String", # Whether the destination is required, excluded or should be validated.
777        "destinationName": "A String", # The name of the destination.
778      },
779    ],
780    "targetCountry": "A String", # The CLDR territory code for the item.
781    "sizeType": "A String", # The cut of the item. Recommended for apparel items.
782    "offerId": "A String", # An identifier of the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details.
783    "shippingWidth": { # Width of the item for shipping.
784      "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
785      "unit": "A String", # The unit of value.
786          #
787          # Acceptable values are:
788          # - "cm"
789          # - "in"
790    },
791    "additionalProductTypes": [ # Additional categories of the item (formatted as in products feed specification).
792      "A String",
793    ],
794    "unitPricingMeasure": { # The measure and dimension of an item.
795      "value": 3.14, # The measure of an item.
796      "unit": "A String", # The unit of the measure.
797    },
798    "imageLink": "A String", # URL of an image of the item.
799    "validatedDestinations": [ # The read-only list of intended destinations which passed validation.
800      "A String",
801    ],
802    "customLabel2": "A String", # Custom label 2 for custom grouping of items in a Shopping campaign.
803    "customLabel1": "A String", # Custom label 1 for custom grouping of items in a Shopping campaign.
804    "isBundle": True or False, # Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.
805    "mobileLink": "A String", # Link to a mobile-optimized version of the landing page.
806    "price": { # Price of the item.
807      "currency": "A String", # The currency of the price.
808      "value": "A String", # The price represented as a number.
809    },
810    "channel": "A String", # The item's channel (online or local).
811    "onlineOnly": True or False, # Whether an item is available for purchase only online.
812    "loyaltyPoints": { # Loyalty points that users receive after purchasing the item. Japan only.
813      "ratio": 3.14, # The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
814      "name": "A String", # Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
815      "pointsValue": "A String", # The retailer's loyalty points in absolute value.
816    },
817    "aspects": [ # Specifies the intended aspects for the product.
818      {
819        "intention": "A String", # Whether the aspect is required, excluded or should be validated.
820        "aspectName": "A String", # The name of the aspect.
821        "destinationName": "A String", # The name of the destination. Leave out to apply to all destinations.
822      },
823    ],
824    "description": "A String", # Description of the item.
825    "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item.
826    "warnings": [ # Read-only warnings.
827      { # An error returned by the API.
828        "reason": "A String", # The error code.
829        "domain": "A String", # The domain of the error.
830        "message": "A String", # A description of the error.
831      },
832    ],
833    "mpn": "A String", # Manufacturer Part Number (MPN) of the item.
834    "salePriceEffectiveDate": "A String", # Date range during which the item is on sale (see products feed specification).
835    "brand": "A String", # Brand of the item.
836    "material": "A String", # The material of which the item is made.
837    "shippingLength": { # Length of the item for shipping.
838      "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
839      "unit": "A String", # The unit of value.
840          #
841          # Acceptable values are:
842          # - "cm"
843          # - "in"
844    },
845    "taxes": [ # Tax information.
846      {
847        "country": "A String", # The country within which the item is taxed, specified as a CLDR territory code.
848        "region": "A String", # The geographic region to which the tax rate applies.
849        "rate": 3.14, # The percentage of tax rate that applies to the item price.
850        "locationId": "A String", # The numeric id of a location that the tax rate applies to as defined in the AdWords API.
851        "postalCode": "A String", # The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.
852        "taxShip": True or False, # Set to true if tax is charged on shipping.
853      },
854    ],
855    "shippingHeight": { # Height of the item for shipping.
856      "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
857      "unit": "A String", # The unit of value.
858          #
859          # Acceptable values are:
860          # - "cm"
861          # - "in"
862    },
863    "sellOnGoogleQuantity": "A String", # The quantity of the product that is reserved for sell-on-google ads.
864    "link": "A String", # URL directly linking to your item's page on your website.
865    "adwordsRedirect": "A String", # Allows advertisers to override the item URL when the product is shown within the context of Product Ads.
866    "displayAdsLink": "A String", # URL directly to your item's landing page for dynamic remarketing campaigns.
867    "energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU.
868    "sizeSystem": "A String", # System in which the size is specified. Recommended for apparel items.
869    "customLabel4": "A String", # Custom label 4 for custom grouping of items in a Shopping campaign.
870    "customLabel3": "A String", # Custom label 3 for custom grouping of items in a Shopping campaign.
871    "customGroups": [ # A list of custom (merchant-provided) custom attribute groups.
872      {
873        "attributes": [ # The sub-attributes.
874          {
875            "value": "A String", # The value of the attribute.
876            "type": "A String", # The type of the attribute.
877            "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
878            "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
879          },
880        ],
881        "name": "A String", # The name of the group. Underscores will be replaced by spaces upon insertion.
882      },
883    ],
884    "condition": "A String", # Condition or state of the item.
885    "customLabel0": "A String", # Custom label 0 for custom grouping of items in a Shopping campaign.
886    "shippingLabel": "A String", # The shipping label of the product, used to group product in account-level shipping rules.
887    "kind": "content#product", # Identifies what kind of resource this is. Value: the fixed string "content#product".
888    "unitPricingBaseMeasure": { # The preference of the denominator of the unit price.
889      "value": "A String", # The denominator of the unit price.
890      "unit": "A String", # The unit of the denominator.
891    },
892    "installment": { # Number and amount of installments to pay for an item. Brazil only.
893      "amount": { # The amount the buyer has to pay per month.
894        "currency": "A String", # The currency of the price.
895        "value": "A String", # The price represented as a number.
896      },
897      "months": "A String", # The number of installments the buyer has to pay.
898    },
899    "sizes": [ # Size of the item.
900      "A String",
901    ],
902    "gender": "A String", # Target gender of the item.
903    "title": "A String", # Title of the item.
904    "shipping": [ # Shipping rules.
905      {
906        "service": "A String", # A free-form description of the service class or delivery speed.
907        "country": "A String", # The CLDR territory code of the country to which an item will ship.
908        "price": { # Fixed shipping price, represented as a number.
909          "currency": "A String", # The currency of the price.
910          "value": "A String", # The price represented as a number.
911        },
912        "locationId": "A String", # The numeric id of a location that the shipping rate applies to as defined in the AdWords API.
913        "postalCode": "A String", # The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length.
914        "region": "A String", # The geographic region to which a shipping rate applies (e.g. zip code).
915        "locationGroupName": "A String", # The location where the shipping is applicable, represented by a location group name.
916      },
917    ],
918    "shippingWeight": { # Weight of the item for shipping.
919      "value": 3.14, # The weight of the product used to calculate the shipping cost of the item.
920      "unit": "A String", # The unit of value.
921    },
922    "identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
923    "customAttributes": [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., { "name": "size type", "type": "text", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API.
924      {
925        "value": "A String", # The value of the attribute.
926        "type": "A String", # The type of the attribute.
927        "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
928        "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
929      },
930    ],
931    "salePrice": { # Advertised sale price of the item.
932      "currency": "A String", # The currency of the price.
933      "value": "A String", # The price represented as a number.
934    },
935    "productType": "A String", # Your category of the item (formatted as in products feed specification).
936    "pattern": "A String", # The item's pattern (e.g. polka dots).
937    "displayAdsSimilarIds": [ # Advertiser-specified recommendations.
938      "A String",
939    ],
940    "ageGroup": "A String", # Target age group of the item.
941    "adult": True or False, # Set to true if the item is targeted towards adults.
942  }
943
944  dryRun: boolean, Flag to run the request in dry-run mode.
945
946Returns:
947  An object of the form:
948
949    { # Product data.
950      "displayAdsTitle": "A String", # Title of an item for dynamic remarketing campaigns.
951      "color": "A String", # Color of the item.
952      "availability": "A String", # Availability status of the item.
953      "additionalImageLinks": [ # Additional URLs of images of the item.
954        "A String",
955      ],
956      "adwordsLabels": [ # Similar to adwords_grouping, but only works on CPC.
957        "A String",
958      ],
959      "itemGroupId": "A String", # Shared identifier for all variants of the same product.
960      "promotionIds": [ # The unique ID of a promotion.
961        "A String",
962      ],
963      "gtin": "A String", # Global Trade Item Number (GTIN) of the item.
964      "expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.
965      "googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
966      "id": "A String", # The REST id of the product.
967      "multipack": "A String", # The number of identical products in a merchant-defined multipack.
968      "displayAdsId": "A String", # An identifier for an item for dynamic remarketing campaigns.
969      "displayAdsValue": 3.14, # Offer margin for dynamic remarketing campaigns.
970      "availabilityDate": "A String", # The day a pre-ordered product becomes available for delivery, in ISO 8601 format.
971      "adwordsGrouping": "A String", # Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
972      "destinations": [ # Specifies the intended destinations for the product.
973        {
974          "intention": "A String", # Whether the destination is required, excluded or should be validated.
975          "destinationName": "A String", # The name of the destination.
976        },
977      ],
978      "targetCountry": "A String", # The CLDR territory code for the item.
979      "sizeType": "A String", # The cut of the item. Recommended for apparel items.
980      "offerId": "A String", # An identifier of the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details.
981      "shippingWidth": { # Width of the item for shipping.
982        "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
983        "unit": "A String", # The unit of value.
984            #
985            # Acceptable values are:
986            # - "cm"
987            # - "in"
988      },
989      "additionalProductTypes": [ # Additional categories of the item (formatted as in products feed specification).
990        "A String",
991      ],
992      "unitPricingMeasure": { # The measure and dimension of an item.
993        "value": 3.14, # The measure of an item.
994        "unit": "A String", # The unit of the measure.
995      },
996      "imageLink": "A String", # URL of an image of the item.
997      "validatedDestinations": [ # The read-only list of intended destinations which passed validation.
998        "A String",
999      ],
1000      "customLabel2": "A String", # Custom label 2 for custom grouping of items in a Shopping campaign.
1001      "customLabel1": "A String", # Custom label 1 for custom grouping of items in a Shopping campaign.
1002      "isBundle": True or False, # Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.
1003      "mobileLink": "A String", # Link to a mobile-optimized version of the landing page.
1004      "price": { # Price of the item.
1005        "currency": "A String", # The currency of the price.
1006        "value": "A String", # The price represented as a number.
1007      },
1008      "channel": "A String", # The item's channel (online or local).
1009      "onlineOnly": True or False, # Whether an item is available for purchase only online.
1010      "loyaltyPoints": { # Loyalty points that users receive after purchasing the item. Japan only.
1011        "ratio": 3.14, # The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
1012        "name": "A String", # Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
1013        "pointsValue": "A String", # The retailer's loyalty points in absolute value.
1014      },
1015      "aspects": [ # Specifies the intended aspects for the product.
1016        {
1017          "intention": "A String", # Whether the aspect is required, excluded or should be validated.
1018          "aspectName": "A String", # The name of the aspect.
1019          "destinationName": "A String", # The name of the destination. Leave out to apply to all destinations.
1020        },
1021      ],
1022      "description": "A String", # Description of the item.
1023      "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item.
1024      "warnings": [ # Read-only warnings.
1025        { # An error returned by the API.
1026          "reason": "A String", # The error code.
1027          "domain": "A String", # The domain of the error.
1028          "message": "A String", # A description of the error.
1029        },
1030      ],
1031      "mpn": "A String", # Manufacturer Part Number (MPN) of the item.
1032      "salePriceEffectiveDate": "A String", # Date range during which the item is on sale (see products feed specification).
1033      "brand": "A String", # Brand of the item.
1034      "material": "A String", # The material of which the item is made.
1035      "shippingLength": { # Length of the item for shipping.
1036        "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
1037        "unit": "A String", # The unit of value.
1038            #
1039            # Acceptable values are:
1040            # - "cm"
1041            # - "in"
1042      },
1043      "taxes": [ # Tax information.
1044        {
1045          "country": "A String", # The country within which the item is taxed, specified as a CLDR territory code.
1046          "region": "A String", # The geographic region to which the tax rate applies.
1047          "rate": 3.14, # The percentage of tax rate that applies to the item price.
1048          "locationId": "A String", # The numeric id of a location that the tax rate applies to as defined in the AdWords API.
1049          "postalCode": "A String", # The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.
1050          "taxShip": True or False, # Set to true if tax is charged on shipping.
1051        },
1052      ],
1053      "shippingHeight": { # Height of the item for shipping.
1054        "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
1055        "unit": "A String", # The unit of value.
1056            #
1057            # Acceptable values are:
1058            # - "cm"
1059            # - "in"
1060      },
1061      "sellOnGoogleQuantity": "A String", # The quantity of the product that is reserved for sell-on-google ads.
1062      "link": "A String", # URL directly linking to your item's page on your website.
1063      "adwordsRedirect": "A String", # Allows advertisers to override the item URL when the product is shown within the context of Product Ads.
1064      "displayAdsLink": "A String", # URL directly to your item's landing page for dynamic remarketing campaigns.
1065      "energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU.
1066      "sizeSystem": "A String", # System in which the size is specified. Recommended for apparel items.
1067      "customLabel4": "A String", # Custom label 4 for custom grouping of items in a Shopping campaign.
1068      "customLabel3": "A String", # Custom label 3 for custom grouping of items in a Shopping campaign.
1069      "customGroups": [ # A list of custom (merchant-provided) custom attribute groups.
1070        {
1071          "attributes": [ # The sub-attributes.
1072            {
1073              "value": "A String", # The value of the attribute.
1074              "type": "A String", # The type of the attribute.
1075              "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
1076              "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
1077            },
1078          ],
1079          "name": "A String", # The name of the group. Underscores will be replaced by spaces upon insertion.
1080        },
1081      ],
1082      "condition": "A String", # Condition or state of the item.
1083      "customLabel0": "A String", # Custom label 0 for custom grouping of items in a Shopping campaign.
1084      "shippingLabel": "A String", # The shipping label of the product, used to group product in account-level shipping rules.
1085      "kind": "content#product", # Identifies what kind of resource this is. Value: the fixed string "content#product".
1086      "unitPricingBaseMeasure": { # The preference of the denominator of the unit price.
1087        "value": "A String", # The denominator of the unit price.
1088        "unit": "A String", # The unit of the denominator.
1089      },
1090      "installment": { # Number and amount of installments to pay for an item. Brazil only.
1091        "amount": { # The amount the buyer has to pay per month.
1092          "currency": "A String", # The currency of the price.
1093          "value": "A String", # The price represented as a number.
1094        },
1095        "months": "A String", # The number of installments the buyer has to pay.
1096      },
1097      "sizes": [ # Size of the item.
1098        "A String",
1099      ],
1100      "gender": "A String", # Target gender of the item.
1101      "title": "A String", # Title of the item.
1102      "shipping": [ # Shipping rules.
1103        {
1104          "service": "A String", # A free-form description of the service class or delivery speed.
1105          "country": "A String", # The CLDR territory code of the country to which an item will ship.
1106          "price": { # Fixed shipping price, represented as a number.
1107            "currency": "A String", # The currency of the price.
1108            "value": "A String", # The price represented as a number.
1109          },
1110          "locationId": "A String", # The numeric id of a location that the shipping rate applies to as defined in the AdWords API.
1111          "postalCode": "A String", # The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length.
1112          "region": "A String", # The geographic region to which a shipping rate applies (e.g. zip code).
1113          "locationGroupName": "A String", # The location where the shipping is applicable, represented by a location group name.
1114        },
1115      ],
1116      "shippingWeight": { # Weight of the item for shipping.
1117        "value": 3.14, # The weight of the product used to calculate the shipping cost of the item.
1118        "unit": "A String", # The unit of value.
1119      },
1120      "identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
1121      "customAttributes": [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., { "name": "size type", "type": "text", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API.
1122        {
1123          "value": "A String", # The value of the attribute.
1124          "type": "A String", # The type of the attribute.
1125          "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
1126          "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
1127        },
1128      ],
1129      "salePrice": { # Advertised sale price of the item.
1130        "currency": "A String", # The currency of the price.
1131        "value": "A String", # The price represented as a number.
1132      },
1133      "productType": "A String", # Your category of the item (formatted as in products feed specification).
1134      "pattern": "A String", # The item's pattern (e.g. polka dots).
1135      "displayAdsSimilarIds": [ # Advertiser-specified recommendations.
1136        "A String",
1137      ],
1138      "ageGroup": "A String", # Target age group of the item.
1139      "adult": True or False, # Set to true if the item is targeted towards adults.
1140    }</pre>
1141</div>
1142
1143<div class="method">
1144    <code class="details" id="list">list(merchantId, includeInvalidInsertedItems=None, pageToken=None, maxResults=None)</code>
1145  <pre>Lists the products in your Merchant Center account. This method can only be called for non-multi-client accounts.
1146
1147Args:
1148  merchantId: string, The ID of the managing account. (required)
1149  includeInvalidInsertedItems: boolean, Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).
1150  pageToken: string, The token returned by the previous request.
1151  maxResults: integer, The maximum number of products to return in the response, used for paging.
1152
1153Returns:
1154  An object of the form:
1155
1156    {
1157    "nextPageToken": "A String", # The token for the retrieval of the next page of products.
1158    "kind": "content#productsListResponse", # Identifies what kind of resource this is. Value: the fixed string "content#productsListResponse".
1159    "resources": [
1160      { # Product data.
1161          "displayAdsTitle": "A String", # Title of an item for dynamic remarketing campaigns.
1162          "color": "A String", # Color of the item.
1163          "availability": "A String", # Availability status of the item.
1164          "additionalImageLinks": [ # Additional URLs of images of the item.
1165            "A String",
1166          ],
1167          "adwordsLabels": [ # Similar to adwords_grouping, but only works on CPC.
1168            "A String",
1169          ],
1170          "itemGroupId": "A String", # Shared identifier for all variants of the same product.
1171          "promotionIds": [ # The unique ID of a promotion.
1172            "A String",
1173          ],
1174          "gtin": "A String", # Global Trade Item Number (GTIN) of the item.
1175          "expirationDate": "A String", # Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in productstatuses as googleExpirationDate and might be earlier if expirationDate is too far in the future.
1176          "googleProductCategory": "A String", # Google's category of the item (see Google product taxonomy).
1177          "id": "A String", # The REST id of the product.
1178          "multipack": "A String", # The number of identical products in a merchant-defined multipack.
1179          "displayAdsId": "A String", # An identifier for an item for dynamic remarketing campaigns.
1180          "displayAdsValue": 3.14, # Offer margin for dynamic remarketing campaigns.
1181          "availabilityDate": "A String", # The day a pre-ordered product becomes available for delivery, in ISO 8601 format.
1182          "adwordsGrouping": "A String", # Used to group items in an arbitrary way. Only for CPA%, discouraged otherwise.
1183          "destinations": [ # Specifies the intended destinations for the product.
1184            {
1185              "intention": "A String", # Whether the destination is required, excluded or should be validated.
1186              "destinationName": "A String", # The name of the destination.
1187            },
1188          ],
1189          "targetCountry": "A String", # The CLDR territory code for the item.
1190          "sizeType": "A String", # The cut of the item. Recommended for apparel items.
1191          "offerId": "A String", # An identifier of the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details.
1192          "shippingWidth": { # Width of the item for shipping.
1193            "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
1194            "unit": "A String", # The unit of value.
1195                #
1196                # Acceptable values are:
1197                # - "cm"
1198                # - "in"
1199          },
1200          "additionalProductTypes": [ # Additional categories of the item (formatted as in products feed specification).
1201            "A String",
1202          ],
1203          "unitPricingMeasure": { # The measure and dimension of an item.
1204            "value": 3.14, # The measure of an item.
1205            "unit": "A String", # The unit of the measure.
1206          },
1207          "imageLink": "A String", # URL of an image of the item.
1208          "validatedDestinations": [ # The read-only list of intended destinations which passed validation.
1209            "A String",
1210          ],
1211          "customLabel2": "A String", # Custom label 2 for custom grouping of items in a Shopping campaign.
1212          "customLabel1": "A String", # Custom label 1 for custom grouping of items in a Shopping campaign.
1213          "isBundle": True or False, # Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price.
1214          "mobileLink": "A String", # Link to a mobile-optimized version of the landing page.
1215          "price": { # Price of the item.
1216            "currency": "A String", # The currency of the price.
1217            "value": "A String", # The price represented as a number.
1218          },
1219          "channel": "A String", # The item's channel (online or local).
1220          "onlineOnly": True or False, # Whether an item is available for purchase only online.
1221          "loyaltyPoints": { # Loyalty points that users receive after purchasing the item. Japan only.
1222            "ratio": 3.14, # The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.
1223            "name": "A String", # Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.
1224            "pointsValue": "A String", # The retailer's loyalty points in absolute value.
1225          },
1226          "aspects": [ # Specifies the intended aspects for the product.
1227            {
1228              "intention": "A String", # Whether the aspect is required, excluded or should be validated.
1229              "aspectName": "A String", # The name of the aspect.
1230              "destinationName": "A String", # The name of the destination. Leave out to apply to all destinations.
1231            },
1232          ],
1233          "description": "A String", # Description of the item.
1234          "contentLanguage": "A String", # The two-letter ISO 639-1 language code for the item.
1235          "warnings": [ # Read-only warnings.
1236            { # An error returned by the API.
1237              "reason": "A String", # The error code.
1238              "domain": "A String", # The domain of the error.
1239              "message": "A String", # A description of the error.
1240            },
1241          ],
1242          "mpn": "A String", # Manufacturer Part Number (MPN) of the item.
1243          "salePriceEffectiveDate": "A String", # Date range during which the item is on sale (see products feed specification).
1244          "brand": "A String", # Brand of the item.
1245          "material": "A String", # The material of which the item is made.
1246          "shippingLength": { # Length of the item for shipping.
1247            "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
1248            "unit": "A String", # The unit of value.
1249                #
1250                # Acceptable values are:
1251                # - "cm"
1252                # - "in"
1253          },
1254          "taxes": [ # Tax information.
1255            {
1256              "country": "A String", # The country within which the item is taxed, specified as a CLDR territory code.
1257              "region": "A String", # The geographic region to which the tax rate applies.
1258              "rate": 3.14, # The percentage of tax rate that applies to the item price.
1259              "locationId": "A String", # The numeric id of a location that the tax rate applies to as defined in the AdWords API.
1260              "postalCode": "A String", # The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.
1261              "taxShip": True or False, # Set to true if tax is charged on shipping.
1262            },
1263          ],
1264          "shippingHeight": { # Height of the item for shipping.
1265            "value": 3.14, # The dimension of the product used to calculate the shipping cost of the item.
1266            "unit": "A String", # The unit of value.
1267                #
1268                # Acceptable values are:
1269                # - "cm"
1270                # - "in"
1271          },
1272          "sellOnGoogleQuantity": "A String", # The quantity of the product that is reserved for sell-on-google ads.
1273          "link": "A String", # URL directly linking to your item's page on your website.
1274          "adwordsRedirect": "A String", # Allows advertisers to override the item URL when the product is shown within the context of Product Ads.
1275          "displayAdsLink": "A String", # URL directly to your item's landing page for dynamic remarketing campaigns.
1276          "energyEfficiencyClass": "A String", # The energy efficiency class as defined in EU directive 2010/30/EU.
1277          "sizeSystem": "A String", # System in which the size is specified. Recommended for apparel items.
1278          "customLabel4": "A String", # Custom label 4 for custom grouping of items in a Shopping campaign.
1279          "customLabel3": "A String", # Custom label 3 for custom grouping of items in a Shopping campaign.
1280          "customGroups": [ # A list of custom (merchant-provided) custom attribute groups.
1281            {
1282              "attributes": [ # The sub-attributes.
1283                {
1284                  "value": "A String", # The value of the attribute.
1285                  "type": "A String", # The type of the attribute.
1286                  "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
1287                  "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
1288                },
1289              ],
1290              "name": "A String", # The name of the group. Underscores will be replaced by spaces upon insertion.
1291            },
1292          ],
1293          "condition": "A String", # Condition or state of the item.
1294          "customLabel0": "A String", # Custom label 0 for custom grouping of items in a Shopping campaign.
1295          "shippingLabel": "A String", # The shipping label of the product, used to group product in account-level shipping rules.
1296          "kind": "content#product", # Identifies what kind of resource this is. Value: the fixed string "content#product".
1297          "unitPricingBaseMeasure": { # The preference of the denominator of the unit price.
1298            "value": "A String", # The denominator of the unit price.
1299            "unit": "A String", # The unit of the denominator.
1300          },
1301          "installment": { # Number and amount of installments to pay for an item. Brazil only.
1302            "amount": { # The amount the buyer has to pay per month.
1303              "currency": "A String", # The currency of the price.
1304              "value": "A String", # The price represented as a number.
1305            },
1306            "months": "A String", # The number of installments the buyer has to pay.
1307          },
1308          "sizes": [ # Size of the item.
1309            "A String",
1310          ],
1311          "gender": "A String", # Target gender of the item.
1312          "title": "A String", # Title of the item.
1313          "shipping": [ # Shipping rules.
1314            {
1315              "service": "A String", # A free-form description of the service class or delivery speed.
1316              "country": "A String", # The CLDR territory code of the country to which an item will ship.
1317              "price": { # Fixed shipping price, represented as a number.
1318                "currency": "A String", # The currency of the price.
1319                "value": "A String", # The price represented as a number.
1320              },
1321              "locationId": "A String", # The numeric id of a location that the shipping rate applies to as defined in the AdWords API.
1322              "postalCode": "A String", # The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length.
1323              "region": "A String", # The geographic region to which a shipping rate applies (e.g. zip code).
1324              "locationGroupName": "A String", # The location where the shipping is applicable, represented by a location group name.
1325            },
1326          ],
1327          "shippingWeight": { # Weight of the item for shipping.
1328            "value": 3.14, # The weight of the product used to calculate the shipping cost of the item.
1329            "unit": "A String", # The unit of value.
1330          },
1331          "identifierExists": True or False, # False when the item does not have unique product identifiers appropriate to its category, such as GTIN, MPN, and brand. Required according to the Unique Product Identifier Rules for all target countries except for Canada.
1332          "customAttributes": [ # A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form (e.g., { "name": "size type", "type": "text", "value": "regular" }). This is useful for submitting attributes not explicitly exposed by the API.
1333            {
1334              "value": "A String", # The value of the attribute.
1335              "type": "A String", # The type of the attribute.
1336              "name": "A String", # The name of the attribute. Underscores will be replaced by spaces upon insertion.
1337              "unit": "A String", # Free-form unit of the attribute. Unit can only be used for values of type INT or FLOAT.
1338            },
1339          ],
1340          "salePrice": { # Advertised sale price of the item.
1341            "currency": "A String", # The currency of the price.
1342            "value": "A String", # The price represented as a number.
1343          },
1344          "productType": "A String", # Your category of the item (formatted as in products feed specification).
1345          "pattern": "A String", # The item's pattern (e.g. polka dots).
1346          "displayAdsSimilarIds": [ # Advertiser-specified recommendations.
1347            "A String",
1348          ],
1349          "ageGroup": "A String", # Target age group of the item.
1350          "adult": True or False, # Set to true if the item is targeted towards adults.
1351        },
1352    ],
1353  }</pre>
1354</div>
1355
1356<div class="method">
1357    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1358  <pre>Retrieves the next page of results.
1359
1360Args:
1361  previous_request: The request for the previous page. (required)
1362  previous_response: The response from the request for the previous page. (required)
1363
1364Returns:
1365  A request object that you can call 'execute()' on to request the next
1366  page. Returns None if there are no more items in the collection.
1367    </pre>
1368</div>
1369
1370</body></html>