google-apis-content_v2_1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c62d26f592ca73bbd6c32fc69045f0691f8cbe392009743a30da98c00595a24
4
- data.tar.gz: 0b6fb3178135b91f35ba37183bb549ddef56967270809750260fe8613547a790
3
+ metadata.gz: 11f986c0d015e327716d77f1c4963ff4c83d57291f06863367a46851b4df2e3d
4
+ data.tar.gz: c46760bcfa4fed18464bcc1b5d1d1b9d19052852275c890344e1b417846f3542
5
5
  SHA512:
6
- metadata.gz: 143ea83e3946c65f2a846c0739504aef5b5b44c76b8c8edc9f9042ca59f2c429165869c351aa59753c08ba1a244c58aa91cd3cc194425452dca1393da1ffd6ef
7
- data.tar.gz: 4fb81154092e6e709340060e076b0b493704924ab2978f637e1bd1f6aa696d3ffdb92792239b99de0e44c6849e2cf8670628867f341686a9c4aae4e08ea61634
6
+ metadata.gz: 99ae80861438b0f3500eca8d809afdbd9cffca1d9f9e325d6d733be1c1ae04e4af5950ed2cf3846ab6b1672df7123a0cf8e03eb7f289446bd045fd3b00864dff
7
+ data.tar.gz: 1edbdc8b3373314e5e15fb3323ac40c4e66f24980f22dbd815824fefd659f56e70ca55189f9c1ba34ec59833ec272df9adffedbf6485cb7dee161928d7682b02
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.2.0 (2021-01-26)
4
+
5
+ * Regenerated from discovery document revision 20210120
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -28,11 +28,11 @@ module Google
28
28
  class Account
29
29
  include Google::Apis::Core::Hashable
30
30
 
31
- # List of linked Ads accounts that are active or pending approval. To create a
32
- # new link request, add a new link with status `active` to the list. It will
33
- # remain in a `pending` state until approved or rejected either in the Ads
34
- # interface or through the AdWords API. To delete an active link, or to cancel a
35
- # link request, remove it from the list.
31
+ # Linked Ads accounts that are active or pending approval. To create a new link
32
+ # request, add a new link with status `active` to the list. It will remain in a `
33
+ # pending` state until approved or rejected either in the Ads interface or
34
+ # through the AdWords API. To delete an active link, or to cancel a link request,
35
+ # remove it from the list.
36
36
  # Corresponds to the JSON property `adsLinks`
37
37
  # @return [Array<Google::Apis::ContentV2_1::AccountAdsLink>]
38
38
  attr_accessor :ads_links
@@ -43,6 +43,11 @@ module Google
43
43
  attr_accessor :adult_content
44
44
  alias_method :adult_content?, :adult_content
45
45
 
46
+ # Automatically created label IDs that are assigned to the account by CSS Center.
47
+ # Corresponds to the JSON property `automaticLabelIds`
48
+ # @return [Array<Fixnum>]
49
+ attr_accessor :automatic_label_ids
50
+
46
51
  # The business information of the account.
47
52
  # Corresponds to the JSON property `businessInformation`
48
53
  # @return [Google::Apis::ContentV2_1::AccountBusinessInformation]
@@ -70,7 +75,7 @@ module Google
70
75
  # @return [String]
71
76
  attr_accessor :kind
72
77
 
73
- # List of label IDs that are assigned to the account by CSS.
78
+ # Manually created label IDs that are assigned to the account by CSS.
74
79
  # Corresponds to the JSON property `labelIds`
75
80
  # @return [Array<Fixnum>]
76
81
  attr_accessor :label_ids
@@ -96,11 +101,11 @@ module Google
96
101
  # @return [String]
97
102
  attr_accessor :website_url
98
103
 
99
- # List of linked YouTube channels that are active or pending approval. To create
100
- # a new link request, add a new link with status `active` to the list. It will
101
- # remain in a `pending` state until approved or rejected in the YT Creator
102
- # Studio interface. To delete an active link, or to cancel a link request,
103
- # remove it from the list.
104
+ # Linked YouTube channels that are active or pending approval. To create a new
105
+ # link request, add a new link with status `active` to the list. It will remain
106
+ # in a `pending` state until approved or rejected in the YT Creator Studio
107
+ # interface. To delete an active link, or to cancel a link request, remove it
108
+ # from the list.
104
109
  # Corresponds to the JSON property `youtubeChannelLinks`
105
110
  # @return [Array<Google::Apis::ContentV2_1::AccountYouTubeChannelLink>]
106
111
  attr_accessor :youtube_channel_links
@@ -113,6 +118,7 @@ module Google
113
118
  def update!(**args)
114
119
  @ads_links = args[:ads_links] if args.key?(:ads_links)
115
120
  @adult_content = args[:adult_content] if args.key?(:adult_content)
121
+ @automatic_label_ids = args[:automatic_label_ids] if args.key?(:automatic_label_ids)
116
122
  @business_information = args[:business_information] if args.key?(:business_information)
117
123
  @css_id = args[:css_id] if args.key?(:css_id)
118
124
  @google_my_business_link = args[:google_my_business_link] if args.key?(:google_my_business_link)
@@ -349,6 +355,11 @@ module Google
349
355
  # @return [Fixnum]
350
356
  attr_accessor :label_id
351
357
 
358
+ # Output only. The type of this label.
359
+ # Corresponds to the JSON property `labelType`
360
+ # @return [String]
361
+ attr_accessor :label_type
362
+
352
363
  # The display name of this label.
353
364
  # Corresponds to the JSON property `name`
354
365
  # @return [String]
@@ -363,10 +374,50 @@ module Google
363
374
  @account_id = args[:account_id] if args.key?(:account_id)
364
375
  @description = args[:description] if args.key?(:description)
365
376
  @label_id = args[:label_id] if args.key?(:label_id)
377
+ @label_type = args[:label_type] if args.key?(:label_type)
366
378
  @name = args[:name] if args.key?(:name)
367
379
  end
368
380
  end
369
381
 
382
+ # The return carrier information. This service is designed for merchants
383
+ # enrolled in the Buy on Google program.
384
+ class AccountReturnCarrier
385
+ include Google::Apis::Core::Hashable
386
+
387
+ # Output only. Immutable. The Google-provided unique carrier ID, used to update
388
+ # the resource.
389
+ # Corresponds to the JSON property `carrierAccountId`
390
+ # @return [Fixnum]
391
+ attr_accessor :carrier_account_id
392
+
393
+ # Name of the carrier account.
394
+ # Corresponds to the JSON property `carrierAccountName`
395
+ # @return [String]
396
+ attr_accessor :carrier_account_name
397
+
398
+ # Number of the carrier account.
399
+ # Corresponds to the JSON property `carrierAccountNumber`
400
+ # @return [String]
401
+ attr_accessor :carrier_account_number
402
+
403
+ # The carrier code enum. Accepts the values FEDEX or UPS.
404
+ # Corresponds to the JSON property `carrierCode`
405
+ # @return [String]
406
+ attr_accessor :carrier_code
407
+
408
+ def initialize(**args)
409
+ update!(**args)
410
+ end
411
+
412
+ # Update properties of this object
413
+ def update!(**args)
414
+ @carrier_account_id = args[:carrier_account_id] if args.key?(:carrier_account_id)
415
+ @carrier_account_name = args[:carrier_account_name] if args.key?(:carrier_account_name)
416
+ @carrier_account_number = args[:carrier_account_number] if args.key?(:carrier_account_number)
417
+ @carrier_code = args[:carrier_code] if args.key?(:carrier_code)
418
+ end
419
+ end
420
+
370
421
  # The status of an account, i.e., information about its products, which is
371
422
  # computed offline and not returned immediately at insertion time.
372
423
  class AccountStatus
@@ -1051,7 +1102,9 @@ module Google
1051
1102
  # @return [String]
1052
1103
  attr_accessor :linked_account_id
1053
1104
 
1054
- # List of provided services.
1105
+ # Acceptable values are: - "`shoppingAdsProductManagement`" - "`
1106
+ # shoppingAdsOther`" - "`shoppingActionsProductManagement`" - "`
1107
+ # shoppingActionsOrderManagement`" - "`shoppingActionsOther`"
1055
1108
  # Corresponds to the JSON property `services`
1056
1109
  # @return [Array<String>]
1057
1110
  attr_accessor :services
@@ -1636,6 +1689,275 @@ module Google
1636
1689
  end
1637
1690
  end
1638
1691
 
1692
+ # The collection message.
1693
+ class Collection
1694
+ include Google::Apis::Core::Hashable
1695
+
1696
+ # Label that you assign to a collection to help organize bidding and reporting
1697
+ # in Shopping campaigns. Custom label
1698
+ # Corresponds to the JSON property `customLabel0`
1699
+ # @return [String]
1700
+ attr_accessor :custom_label0
1701
+
1702
+ # Label that you assign to a collection to help organize bidding and reporting
1703
+ # in Shopping campaigns.
1704
+ # Corresponds to the JSON property `customLabel1`
1705
+ # @return [String]
1706
+ attr_accessor :custom_label1
1707
+
1708
+ # Label that you assign to a collection to help organize bidding and reporting
1709
+ # in Shopping campaigns.
1710
+ # Corresponds to the JSON property `customLabel2`
1711
+ # @return [String]
1712
+ attr_accessor :custom_label2
1713
+
1714
+ # Label that you assign to a collection to help organize bidding and reporting
1715
+ # in Shopping campaigns.
1716
+ # Corresponds to the JSON property `customLabel3`
1717
+ # @return [String]
1718
+ attr_accessor :custom_label3
1719
+
1720
+ # Label that you assign to a collection to help organize bidding and reporting
1721
+ # in Shopping campaigns.
1722
+ # Corresponds to the JSON property `customLabel4`
1723
+ # @return [String]
1724
+ attr_accessor :custom_label4
1725
+
1726
+ # This identifies one or more products associated with the collection. Used as a
1727
+ # lookup to the corresponding product ID in your product feeds. Provide a
1728
+ # maximum of 100 featuredProduct (for collections). Provide up to 10
1729
+ # featuredProduct (for Shoppable Images only) with ID and X and Y coordinates.
1730
+ # featured_product attribute
1731
+ # Corresponds to the JSON property `featuredProduct`
1732
+ # @return [Array<Google::Apis::ContentV2_1::CollectionFeaturedProduct>]
1733
+ attr_accessor :featured_product
1734
+
1735
+ # Your collection's name. headline attribute
1736
+ # Corresponds to the JSON property `headline`
1737
+ # @return [Array<String>]
1738
+ attr_accessor :headline
1739
+
1740
+ # Required. The REST ID of the collection. Content API methods that operate on
1741
+ # collections take this as their collectionId parameter. The REST ID for a
1742
+ # collection is of the form collectionId. id attribute
1743
+ # Corresponds to the JSON property `id`
1744
+ # @return [String]
1745
+ attr_accessor :id
1746
+
1747
+ # The URL of a collection’s image. image_link attribute
1748
+ # Corresponds to the JSON property `imageLink`
1749
+ # @return [Array<String>]
1750
+ attr_accessor :image_link
1751
+
1752
+ # The language of a collection and the language of any featured products linked
1753
+ # to the collection. language attribute
1754
+ # Corresponds to the JSON property `language`
1755
+ # @return [String]
1756
+ attr_accessor :language
1757
+
1758
+ # A collection’s landing page. URL directly linking to your collection's page on
1759
+ # your website. link attribute
1760
+ # Corresponds to the JSON property `link`
1761
+ # @return [String]
1762
+ attr_accessor :link
1763
+
1764
+ # A collection’s mobile-optimized landing page when you have a different URL for
1765
+ # mobile and desktop traffic. mobile_link attribute
1766
+ # Corresponds to the JSON property `mobileLink`
1767
+ # @return [String]
1768
+ attr_accessor :mobile_link
1769
+
1770
+ # product_country attribute
1771
+ # Corresponds to the JSON property `productCountry`
1772
+ # @return [String]
1773
+ attr_accessor :product_country
1774
+
1775
+ def initialize(**args)
1776
+ update!(**args)
1777
+ end
1778
+
1779
+ # Update properties of this object
1780
+ def update!(**args)
1781
+ @custom_label0 = args[:custom_label0] if args.key?(:custom_label0)
1782
+ @custom_label1 = args[:custom_label1] if args.key?(:custom_label1)
1783
+ @custom_label2 = args[:custom_label2] if args.key?(:custom_label2)
1784
+ @custom_label3 = args[:custom_label3] if args.key?(:custom_label3)
1785
+ @custom_label4 = args[:custom_label4] if args.key?(:custom_label4)
1786
+ @featured_product = args[:featured_product] if args.key?(:featured_product)
1787
+ @headline = args[:headline] if args.key?(:headline)
1788
+ @id = args[:id] if args.key?(:id)
1789
+ @image_link = args[:image_link] if args.key?(:image_link)
1790
+ @language = args[:language] if args.key?(:language)
1791
+ @link = args[:link] if args.key?(:link)
1792
+ @mobile_link = args[:mobile_link] if args.key?(:mobile_link)
1793
+ @product_country = args[:product_country] if args.key?(:product_country)
1794
+ end
1795
+ end
1796
+
1797
+ # The message for FeaturedProduct. FeaturedProduct
1798
+ class CollectionFeaturedProduct
1799
+ include Google::Apis::Core::Hashable
1800
+
1801
+ # The unique identifier for the product item.
1802
+ # Corresponds to the JSON property `offerId`
1803
+ # @return [String]
1804
+ attr_accessor :offer_id
1805
+
1806
+ # Required. X-coordinate of the product callout on the Shoppable Image.
1807
+ # Corresponds to the JSON property `x`
1808
+ # @return [Float]
1809
+ attr_accessor :x
1810
+
1811
+ # Required. Y-coordinate of the product callout on the Shoppable Image.
1812
+ # Corresponds to the JSON property `y`
1813
+ # @return [Float]
1814
+ attr_accessor :y
1815
+
1816
+ def initialize(**args)
1817
+ update!(**args)
1818
+ end
1819
+
1820
+ # Update properties of this object
1821
+ def update!(**args)
1822
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
1823
+ @x = args[:x] if args.key?(:x)
1824
+ @y = args[:y] if args.key?(:y)
1825
+ end
1826
+ end
1827
+
1828
+ # The collectionstatus message.
1829
+ class CollectionStatus
1830
+ include Google::Apis::Core::Hashable
1831
+
1832
+ # A list of all issues associated with the collection.
1833
+ # Corresponds to the JSON property `collectionLevelIssuses`
1834
+ # @return [Array<Google::Apis::ContentV2_1::CollectionStatusItemLevelIssue>]
1835
+ attr_accessor :collection_level_issuses
1836
+
1837
+ # Date on which the collection has been created in [ISO 8601](http://en.
1838
+ # wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, e.g. "2020-01-
1839
+ # 02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
1840
+ # Corresponds to the JSON property `creationDate`
1841
+ # @return [String]
1842
+ attr_accessor :creation_date
1843
+
1844
+ # The intended destinations for the collection.
1845
+ # Corresponds to the JSON property `destinationStatuses`
1846
+ # @return [Array<Google::Apis::ContentV2_1::CollectionStatusDestinationStatus>]
1847
+ attr_accessor :destination_statuses
1848
+
1849
+ # Required. The ID of the collection for which status is reported.
1850
+ # Corresponds to the JSON property `id`
1851
+ # @return [String]
1852
+ attr_accessor :id
1853
+
1854
+ # Date on which the collection has been last updated in [ISO 8601](http://en.
1855
+ # wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, e.g. "2020-01-
1856
+ # 02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
1857
+ # Corresponds to the JSON property `lastUpdateDate`
1858
+ # @return [String]
1859
+ attr_accessor :last_update_date
1860
+
1861
+ def initialize(**args)
1862
+ update!(**args)
1863
+ end
1864
+
1865
+ # Update properties of this object
1866
+ def update!(**args)
1867
+ @collection_level_issuses = args[:collection_level_issuses] if args.key?(:collection_level_issuses)
1868
+ @creation_date = args[:creation_date] if args.key?(:creation_date)
1869
+ @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses)
1870
+ @id = args[:id] if args.key?(:id)
1871
+ @last_update_date = args[:last_update_date] if args.key?(:last_update_date)
1872
+ end
1873
+ end
1874
+
1875
+ # Destination status message.
1876
+ class CollectionStatusDestinationStatus
1877
+ include Google::Apis::Core::Hashable
1878
+
1879
+ # The name of the destination
1880
+ # Corresponds to the JSON property `destination`
1881
+ # @return [String]
1882
+ attr_accessor :destination
1883
+
1884
+ # The status for the specified destination.
1885
+ # Corresponds to the JSON property `status`
1886
+ # @return [String]
1887
+ attr_accessor :status
1888
+
1889
+ def initialize(**args)
1890
+ update!(**args)
1891
+ end
1892
+
1893
+ # Update properties of this object
1894
+ def update!(**args)
1895
+ @destination = args[:destination] if args.key?(:destination)
1896
+ @status = args[:status] if args.key?(:status)
1897
+ end
1898
+ end
1899
+
1900
+ # Issue associated with the collection.
1901
+ class CollectionStatusItemLevelIssue
1902
+ include Google::Apis::Core::Hashable
1903
+
1904
+ # The attribute's name, if the issue is caused by a single attribute.
1905
+ # Corresponds to the JSON property `attributeName`
1906
+ # @return [String]
1907
+ attr_accessor :attribute_name
1908
+
1909
+ # The error code of the issue.
1910
+ # Corresponds to the JSON property `code`
1911
+ # @return [String]
1912
+ attr_accessor :code
1913
+
1914
+ # A short issue description in English.
1915
+ # Corresponds to the JSON property `description`
1916
+ # @return [String]
1917
+ attr_accessor :description
1918
+
1919
+ # The destination the issue applies to.
1920
+ # Corresponds to the JSON property `destination`
1921
+ # @return [String]
1922
+ attr_accessor :destination
1923
+
1924
+ # A detailed issue description in English.
1925
+ # Corresponds to the JSON property `detail`
1926
+ # @return [String]
1927
+ attr_accessor :detail
1928
+
1929
+ # The URL of a web page to help with resolving this issue.
1930
+ # Corresponds to the JSON property `documentation`
1931
+ # @return [String]
1932
+ attr_accessor :documentation
1933
+
1934
+ # Whether the issue can be resolved by the merchant.
1935
+ # Corresponds to the JSON property `resolution`
1936
+ # @return [String]
1937
+ attr_accessor :resolution
1938
+
1939
+ # How this issue affects the serving of the collection.
1940
+ # Corresponds to the JSON property `servability`
1941
+ # @return [String]
1942
+ attr_accessor :servability
1943
+
1944
+ def initialize(**args)
1945
+ update!(**args)
1946
+ end
1947
+
1948
+ # Update properties of this object
1949
+ def update!(**args)
1950
+ @attribute_name = args[:attribute_name] if args.key?(:attribute_name)
1951
+ @code = args[:code] if args.key?(:code)
1952
+ @description = args[:description] if args.key?(:description)
1953
+ @destination = args[:destination] if args.key?(:destination)
1954
+ @detail = args[:detail] if args.key?(:detail)
1955
+ @documentation = args[:documentation] if args.key?(:documentation)
1956
+ @resolution = args[:resolution] if args.key?(:resolution)
1957
+ @servability = args[:servability] if args.key?(:servability)
1958
+ end
1959
+ end
1960
+
1639
1961
  # Information about CSS domain.
1640
1962
  class Css
1641
1963
  include Google::Apis::Core::Hashable
@@ -3751,6 +4073,77 @@ module Google
3751
4073
  end
3752
4074
  end
3753
4075
 
4076
+ # Response for listing account return carriers.
4077
+ class ListAccountReturnCarrierResponse
4078
+ include Google::Apis::Core::Hashable
4079
+
4080
+ # List of all available account return carriers for the merchant.
4081
+ # Corresponds to the JSON property `accountReturnCarriers`
4082
+ # @return [Array<Google::Apis::ContentV2_1::AccountReturnCarrier>]
4083
+ attr_accessor :account_return_carriers
4084
+
4085
+ def initialize(**args)
4086
+ update!(**args)
4087
+ end
4088
+
4089
+ # Update properties of this object
4090
+ def update!(**args)
4091
+ @account_return_carriers = args[:account_return_carriers] if args.key?(:account_return_carriers)
4092
+ end
4093
+ end
4094
+
4095
+ # Response message for the ListCollectionStatuses method.
4096
+ class ListCollectionStatusesResponse
4097
+ include Google::Apis::Core::Hashable
4098
+
4099
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
4100
+ # field is omitted, there are no subsequent pages.
4101
+ # Corresponds to the JSON property `nextPageToken`
4102
+ # @return [String]
4103
+ attr_accessor :next_page_token
4104
+
4105
+ # The collectionstatuses listed.
4106
+ # Corresponds to the JSON property `resources`
4107
+ # @return [Array<Google::Apis::ContentV2_1::CollectionStatus>]
4108
+ attr_accessor :resources
4109
+
4110
+ def initialize(**args)
4111
+ update!(**args)
4112
+ end
4113
+
4114
+ # Update properties of this object
4115
+ def update!(**args)
4116
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4117
+ @resources = args[:resources] if args.key?(:resources)
4118
+ end
4119
+ end
4120
+
4121
+ # Response message for the ListCollections method.
4122
+ class ListCollectionsResponse
4123
+ include Google::Apis::Core::Hashable
4124
+
4125
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
4126
+ # field is omitted, there are no subsequent pages.
4127
+ # Corresponds to the JSON property `nextPageToken`
4128
+ # @return [String]
4129
+ attr_accessor :next_page_token
4130
+
4131
+ # The collections listed.
4132
+ # Corresponds to the JSON property `resources`
4133
+ # @return [Array<Google::Apis::ContentV2_1::Collection>]
4134
+ attr_accessor :resources
4135
+
4136
+ def initialize(**args)
4137
+ update!(**args)
4138
+ end
4139
+
4140
+ # Update properties of this object
4141
+ def update!(**args)
4142
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4143
+ @resources = args[:resources] if args.key?(:resources)
4144
+ end
4145
+ end
4146
+
3754
4147
  # The response message for the `ListCsses` method
3755
4148
  class ListCssesResponse
3756
4149
  include Google::Apis::Core::Hashable
@@ -9258,7 +9651,10 @@ module Google
9258
9651
  # @return [String]
9259
9652
  attr_accessor :gender
9260
9653
 
9261
- # Google's category of the item (see Google product taxonomy).
9654
+ # Google's category of the item (see [Google product taxonomy](https://support.
9655
+ # google.com/merchants/answer/1705911)). When querying products, this field will
9656
+ # contain the user provided value. There is currently no way to get back the
9657
+ # auto assigned google product categories through the API.
9262
9658
  # Corresponds to the JSON property `googleProductCategory`
9263
9659
  # @return [String]
9264
9660
  attr_accessor :google_product_category
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2_1
18
18
  # Version of the google-apis-content_v2_1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201211"
25
+ REVISION = "20210120"
26
26
  end
27
27
  end
28
28
  end
@@ -70,6 +70,12 @@ module Google
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
+ class AccountReturnCarrier
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
73
79
  class AccountStatus
74
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
81
 
@@ -286,6 +292,36 @@ module Google
286
292
  include Google::Apis::Core::JsonObjectSupport
287
293
  end
288
294
 
295
+ class Collection
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class CollectionFeaturedProduct
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class CollectionStatus
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class CollectionStatusDestinationStatus
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class CollectionStatusItemLevelIssue
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
289
325
  class Css
290
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
327
 
@@ -628,6 +664,24 @@ module Google
628
664
  include Google::Apis::Core::JsonObjectSupport
629
665
  end
630
666
 
667
+ class ListAccountReturnCarrierResponse
668
+ class Representation < Google::Apis::Core::JsonRepresentation; end
669
+
670
+ include Google::Apis::Core::JsonObjectSupport
671
+ end
672
+
673
+ class ListCollectionStatusesResponse
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
679
+ class ListCollectionsResponse
680
+ class Representation < Google::Apis::Core::JsonRepresentation; end
681
+
682
+ include Google::Apis::Core::JsonObjectSupport
683
+ end
684
+
631
685
  class ListCssesResponse
632
686
  class Representation < Google::Apis::Core::JsonRepresentation; end
633
687
 
@@ -2044,6 +2098,7 @@ module Google
2044
2098
  collection :ads_links, as: 'adsLinks', class: Google::Apis::ContentV2_1::AccountAdsLink, decorator: Google::Apis::ContentV2_1::AccountAdsLink::Representation
2045
2099
 
2046
2100
  property :adult_content, as: 'adultContent'
2101
+ collection :automatic_label_ids, as: 'automaticLabelIds'
2047
2102
  property :business_information, as: 'businessInformation', class: Google::Apis::ContentV2_1::AccountBusinessInformation, decorator: Google::Apis::ContentV2_1::AccountBusinessInformation::Representation
2048
2103
 
2049
2104
  property :css_id, :numeric_string => true, as: 'cssId'
@@ -2124,10 +2179,21 @@ module Google
2124
2179
  property :account_id, :numeric_string => true, as: 'accountId'
2125
2180
  property :description, as: 'description'
2126
2181
  property :label_id, :numeric_string => true, as: 'labelId'
2182
+ property :label_type, as: 'labelType'
2127
2183
  property :name, as: 'name'
2128
2184
  end
2129
2185
  end
2130
2186
 
2187
+ class AccountReturnCarrier
2188
+ # @private
2189
+ class Representation < Google::Apis::Core::JsonRepresentation
2190
+ property :carrier_account_id, :numeric_string => true, as: 'carrierAccountId'
2191
+ property :carrier_account_name, as: 'carrierAccountName'
2192
+ property :carrier_account_number, as: 'carrierAccountNumber'
2193
+ property :carrier_code, as: 'carrierCode'
2194
+ end
2195
+ end
2196
+
2131
2197
  class AccountStatus
2132
2198
  # @private
2133
2199
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2494,6 +2560,70 @@ module Google
2494
2560
  end
2495
2561
  end
2496
2562
 
2563
+ class Collection
2564
+ # @private
2565
+ class Representation < Google::Apis::Core::JsonRepresentation
2566
+ property :custom_label0, as: 'customLabel0'
2567
+ property :custom_label1, as: 'customLabel1'
2568
+ property :custom_label2, as: 'customLabel2'
2569
+ property :custom_label3, as: 'customLabel3'
2570
+ property :custom_label4, as: 'customLabel4'
2571
+ collection :featured_product, as: 'featuredProduct', class: Google::Apis::ContentV2_1::CollectionFeaturedProduct, decorator: Google::Apis::ContentV2_1::CollectionFeaturedProduct::Representation
2572
+
2573
+ collection :headline, as: 'headline'
2574
+ property :id, as: 'id'
2575
+ collection :image_link, as: 'imageLink'
2576
+ property :language, as: 'language'
2577
+ property :link, as: 'link'
2578
+ property :mobile_link, as: 'mobileLink'
2579
+ property :product_country, as: 'productCountry'
2580
+ end
2581
+ end
2582
+
2583
+ class CollectionFeaturedProduct
2584
+ # @private
2585
+ class Representation < Google::Apis::Core::JsonRepresentation
2586
+ property :offer_id, as: 'offerId'
2587
+ property :x, as: 'x'
2588
+ property :y, as: 'y'
2589
+ end
2590
+ end
2591
+
2592
+ class CollectionStatus
2593
+ # @private
2594
+ class Representation < Google::Apis::Core::JsonRepresentation
2595
+ collection :collection_level_issuses, as: 'collectionLevelIssuses', class: Google::Apis::ContentV2_1::CollectionStatusItemLevelIssue, decorator: Google::Apis::ContentV2_1::CollectionStatusItemLevelIssue::Representation
2596
+
2597
+ property :creation_date, as: 'creationDate'
2598
+ collection :destination_statuses, as: 'destinationStatuses', class: Google::Apis::ContentV2_1::CollectionStatusDestinationStatus, decorator: Google::Apis::ContentV2_1::CollectionStatusDestinationStatus::Representation
2599
+
2600
+ property :id, as: 'id'
2601
+ property :last_update_date, as: 'lastUpdateDate'
2602
+ end
2603
+ end
2604
+
2605
+ class CollectionStatusDestinationStatus
2606
+ # @private
2607
+ class Representation < Google::Apis::Core::JsonRepresentation
2608
+ property :destination, as: 'destination'
2609
+ property :status, as: 'status'
2610
+ end
2611
+ end
2612
+
2613
+ class CollectionStatusItemLevelIssue
2614
+ # @private
2615
+ class Representation < Google::Apis::Core::JsonRepresentation
2616
+ property :attribute_name, as: 'attributeName'
2617
+ property :code, as: 'code'
2618
+ property :description, as: 'description'
2619
+ property :destination, as: 'destination'
2620
+ property :detail, as: 'detail'
2621
+ property :documentation, as: 'documentation'
2622
+ property :resolution, as: 'resolution'
2623
+ property :servability, as: 'servability'
2624
+ end
2625
+ end
2626
+
2497
2627
  class Css
2498
2628
  # @private
2499
2629
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3088,6 +3218,32 @@ module Google
3088
3218
  end
3089
3219
  end
3090
3220
 
3221
+ class ListAccountReturnCarrierResponse
3222
+ # @private
3223
+ class Representation < Google::Apis::Core::JsonRepresentation
3224
+ collection :account_return_carriers, as: 'accountReturnCarriers', class: Google::Apis::ContentV2_1::AccountReturnCarrier, decorator: Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
3225
+
3226
+ end
3227
+ end
3228
+
3229
+ class ListCollectionStatusesResponse
3230
+ # @private
3231
+ class Representation < Google::Apis::Core::JsonRepresentation
3232
+ property :next_page_token, as: 'nextPageToken'
3233
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::CollectionStatus, decorator: Google::Apis::ContentV2_1::CollectionStatus::Representation
3234
+
3235
+ end
3236
+ end
3237
+
3238
+ class ListCollectionsResponse
3239
+ # @private
3240
+ class Representation < Google::Apis::Core::JsonRepresentation
3241
+ property :next_page_token, as: 'nextPageToken'
3242
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2_1::Collection, decorator: Google::Apis::ContentV2_1::Collection::Representation
3243
+
3244
+ end
3245
+ end
3246
+
3091
3247
  class ListCssesResponse
3092
3248
  # @private
3093
3249
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -594,6 +594,140 @@ module Google
594
594
  execute_or_queue_command(command, &block)
595
595
  end
596
596
 
597
+ # Links return carrier to a merchant account.
598
+ # @param [Fixnum] account_id
599
+ # Required. The Merchant Center Account Id under which the Return Carrier is to
600
+ # be linked.
601
+ # @param [Google::Apis::ContentV2_1::AccountReturnCarrier] account_return_carrier_object
602
+ # @param [String] fields
603
+ # Selector specifying which fields to include in a partial response.
604
+ # @param [String] quota_user
605
+ # Available to use for quota purposes for server-side applications. Can be any
606
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
607
+ # @param [Google::Apis::RequestOptions] options
608
+ # Request-specific options
609
+ #
610
+ # @yield [result, err] Result & error if block supplied
611
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountReturnCarrier] parsed result object
612
+ # @yieldparam err [StandardError] error object if request failed
613
+ #
614
+ # @return [Google::Apis::ContentV2_1::AccountReturnCarrier]
615
+ #
616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
619
+ def create_account_returncarrier(account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block)
620
+ command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/returncarrier', options)
621
+ command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
622
+ command.request_object = account_return_carrier_object
623
+ command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
624
+ command.response_class = Google::Apis::ContentV2_1::AccountReturnCarrier
625
+ command.params['accountId'] = account_id unless account_id.nil?
626
+ command.query['fields'] = fields unless fields.nil?
627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
628
+ execute_or_queue_command(command, &block)
629
+ end
630
+
631
+ # Delete a return carrier in the merchant account.
632
+ # @param [Fixnum] account_id
633
+ # Required. The Merchant Center Account Id under which the Return Carrier is to
634
+ # be linked.
635
+ # @param [Fixnum] carrier_account_id
636
+ # Required. The Google-provided unique carrier ID, used to update the resource.
637
+ # @param [String] fields
638
+ # Selector specifying which fields to include in a partial response.
639
+ # @param [String] quota_user
640
+ # Available to use for quota purposes for server-side applications. Can be any
641
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
642
+ # @param [Google::Apis::RequestOptions] options
643
+ # Request-specific options
644
+ #
645
+ # @yield [result, err] Result & error if block supplied
646
+ # @yieldparam result [NilClass] No result returned for this method
647
+ # @yieldparam err [StandardError] error object if request failed
648
+ #
649
+ # @return [void]
650
+ #
651
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
652
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
653
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
654
+ def delete_account_returncarrier(account_id, carrier_account_id, fields: nil, quota_user: nil, options: nil, &block)
655
+ command = make_simple_command(:delete, 'content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}', options)
656
+ command.params['accountId'] = account_id unless account_id.nil?
657
+ command.params['carrierAccountId'] = carrier_account_id unless carrier_account_id.nil?
658
+ command.query['fields'] = fields unless fields.nil?
659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
660
+ execute_or_queue_command(command, &block)
661
+ end
662
+
663
+ # Lists available return carriers in the merchant account.
664
+ # @param [Fixnum] account_id
665
+ # Required. The Merchant Center Account Id under which the Return Carrier is to
666
+ # be linked.
667
+ # @param [String] fields
668
+ # Selector specifying which fields to include in a partial response.
669
+ # @param [String] quota_user
670
+ # Available to use for quota purposes for server-side applications. Can be any
671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
672
+ # @param [Google::Apis::RequestOptions] options
673
+ # Request-specific options
674
+ #
675
+ # @yield [result, err] Result & error if block supplied
676
+ # @yieldparam result [Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse] parsed result object
677
+ # @yieldparam err [StandardError] error object if request failed
678
+ #
679
+ # @return [Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse]
680
+ #
681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
684
+ def list_account_returncarriers(account_id, fields: nil, quota_user: nil, options: nil, &block)
685
+ command = make_simple_command(:get, 'content/v2.1/accounts/{accountId}/returncarrier', options)
686
+ command.response_representation = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse::Representation
687
+ command.response_class = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse
688
+ command.params['accountId'] = account_id unless account_id.nil?
689
+ command.query['fields'] = fields unless fields.nil?
690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
691
+ execute_or_queue_command(command, &block)
692
+ end
693
+
694
+ # Updates a return carrier in the merchant account.
695
+ # @param [Fixnum] account_id
696
+ # Required. The Merchant Center Account Id under which the Return Carrier is to
697
+ # be linked.
698
+ # @param [Fixnum] carrier_account_id
699
+ # Required. The Google-provided unique carrier ID, used to update the resource.
700
+ # @param [Google::Apis::ContentV2_1::AccountReturnCarrier] account_return_carrier_object
701
+ # @param [String] fields
702
+ # Selector specifying which fields to include in a partial response.
703
+ # @param [String] quota_user
704
+ # Available to use for quota purposes for server-side applications. Can be any
705
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
706
+ # @param [Google::Apis::RequestOptions] options
707
+ # Request-specific options
708
+ #
709
+ # @yield [result, err] Result & error if block supplied
710
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountReturnCarrier] parsed result object
711
+ # @yieldparam err [StandardError] error object if request failed
712
+ #
713
+ # @return [Google::Apis::ContentV2_1::AccountReturnCarrier]
714
+ #
715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
718
+ def patch_account_returncarrier(account_id, carrier_account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block)
719
+ command = make_simple_command(:patch, 'content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}', options)
720
+ command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
721
+ command.request_object = account_return_carrier_object
722
+ command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
723
+ command.response_class = Google::Apis::ContentV2_1::AccountReturnCarrier
724
+ command.params['accountId'] = account_id unless account_id.nil?
725
+ command.params['carrierAccountId'] = carrier_account_id unless carrier_account_id.nil?
726
+ command.query['fields'] = fields unless fields.nil?
727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
728
+ execute_or_queue_command(command, &block)
729
+ end
730
+
597
731
  # Retrieves multiple Merchant Center account statuses in a single request.
598
732
  # @param [Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest] accountstatuses_custom_batch_request_object
599
733
  # @param [String] fields
@@ -845,6 +979,225 @@ module Google
845
979
  execute_or_queue_command(command, &block)
846
980
  end
847
981
 
982
+ # Uploads a collection to your Merchant Center account. If a collection with the
983
+ # same collectionId already exists, this method updates that entry. In each
984
+ # update, the collection is completely replaced by the fields in the body of the
985
+ # update request.
986
+ # @param [Fixnum] merchant_id
987
+ # Required. The ID of the account that contains the collection. This account
988
+ # cannot be a multi-client account.
989
+ # @param [Google::Apis::ContentV2_1::Collection] collection_object
990
+ # @param [String] fields
991
+ # Selector specifying which fields to include in a partial response.
992
+ # @param [String] quota_user
993
+ # Available to use for quota purposes for server-side applications. Can be any
994
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
995
+ # @param [Google::Apis::RequestOptions] options
996
+ # Request-specific options
997
+ #
998
+ # @yield [result, err] Result & error if block supplied
999
+ # @yieldparam result [Google::Apis::ContentV2_1::Collection] parsed result object
1000
+ # @yieldparam err [StandardError] error object if request failed
1001
+ #
1002
+ # @return [Google::Apis::ContentV2_1::Collection]
1003
+ #
1004
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1005
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1006
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1007
+ def create_collection(merchant_id, collection_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1008
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/collections', options)
1009
+ command.request_representation = Google::Apis::ContentV2_1::Collection::Representation
1010
+ command.request_object = collection_object
1011
+ command.response_representation = Google::Apis::ContentV2_1::Collection::Representation
1012
+ command.response_class = Google::Apis::ContentV2_1::Collection
1013
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1014
+ command.query['fields'] = fields unless fields.nil?
1015
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1016
+ execute_or_queue_command(command, &block)
1017
+ end
1018
+
1019
+ # Deletes a collection from your Merchant Center account.
1020
+ # @param [Fixnum] merchant_id
1021
+ # Required. The ID of the account that contains the collection. This account
1022
+ # cannot be a multi-client account.
1023
+ # @param [String] collection_id
1024
+ # Required. The collectionId of the collection. CollectionId is the same as the
1025
+ # REST ID of the collection.
1026
+ # @param [String] fields
1027
+ # Selector specifying which fields to include in a partial response.
1028
+ # @param [String] quota_user
1029
+ # Available to use for quota purposes for server-side applications. Can be any
1030
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1031
+ # @param [Google::Apis::RequestOptions] options
1032
+ # Request-specific options
1033
+ #
1034
+ # @yield [result, err] Result & error if block supplied
1035
+ # @yieldparam result [NilClass] No result returned for this method
1036
+ # @yieldparam err [StandardError] error object if request failed
1037
+ #
1038
+ # @return [void]
1039
+ #
1040
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1041
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1042
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1043
+ def delete_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
1044
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/collections/{collectionId}', options)
1045
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1046
+ command.params['collectionId'] = collection_id unless collection_id.nil?
1047
+ command.query['fields'] = fields unless fields.nil?
1048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1049
+ execute_or_queue_command(command, &block)
1050
+ end
1051
+
1052
+ # Retrieves a collection from your Merchant Center account.
1053
+ # @param [Fixnum] merchant_id
1054
+ # Required. The ID of the account that contains the collection. This account
1055
+ # cannot be a multi-client account.
1056
+ # @param [String] collection_id
1057
+ # Required. The REST ID of the collection.
1058
+ # @param [String] fields
1059
+ # Selector specifying which fields to include in a partial response.
1060
+ # @param [String] quota_user
1061
+ # Available to use for quota purposes for server-side applications. Can be any
1062
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1063
+ # @param [Google::Apis::RequestOptions] options
1064
+ # Request-specific options
1065
+ #
1066
+ # @yield [result, err] Result & error if block supplied
1067
+ # @yieldparam result [Google::Apis::ContentV2_1::Collection] parsed result object
1068
+ # @yieldparam err [StandardError] error object if request failed
1069
+ #
1070
+ # @return [Google::Apis::ContentV2_1::Collection]
1071
+ #
1072
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1073
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1074
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1075
+ def get_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
1076
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/collections/{collectionId}', options)
1077
+ command.response_representation = Google::Apis::ContentV2_1::Collection::Representation
1078
+ command.response_class = Google::Apis::ContentV2_1::Collection
1079
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1080
+ command.params['collectionId'] = collection_id unless collection_id.nil?
1081
+ command.query['fields'] = fields unless fields.nil?
1082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1083
+ execute_or_queue_command(command, &block)
1084
+ end
1085
+
1086
+ # Lists the collections in your Merchant Center account. The response might
1087
+ # contain fewer items than specified by page_size. Rely on next_page_token to
1088
+ # determine if there are more items to be requested.
1089
+ # @param [Fixnum] merchant_id
1090
+ # Required. The ID of the account that contains the collection. This account
1091
+ # cannot be a multi-client account.
1092
+ # @param [Fixnum] page_size
1093
+ # The maximum number of collections to return in the response, used for paging.
1094
+ # Defaults to 50; values above 1000 will be coerced to 1000.
1095
+ # @param [String] page_token
1096
+ # Token (if provided) to retrieve the subsequent page. All other parameters must
1097
+ # match the original call that provided the page token.
1098
+ # @param [String] fields
1099
+ # Selector specifying which fields to include in a partial response.
1100
+ # @param [String] quota_user
1101
+ # Available to use for quota purposes for server-side applications. Can be any
1102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1103
+ # @param [Google::Apis::RequestOptions] options
1104
+ # Request-specific options
1105
+ #
1106
+ # @yield [result, err] Result & error if block supplied
1107
+ # @yieldparam result [Google::Apis::ContentV2_1::ListCollectionsResponse] parsed result object
1108
+ # @yieldparam err [StandardError] error object if request failed
1109
+ #
1110
+ # @return [Google::Apis::ContentV2_1::ListCollectionsResponse]
1111
+ #
1112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1115
+ def list_collections(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1116
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/collections', options)
1117
+ command.response_representation = Google::Apis::ContentV2_1::ListCollectionsResponse::Representation
1118
+ command.response_class = Google::Apis::ContentV2_1::ListCollectionsResponse
1119
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1120
+ command.query['pageSize'] = page_size unless page_size.nil?
1121
+ command.query['pageToken'] = page_token unless page_token.nil?
1122
+ command.query['fields'] = fields unless fields.nil?
1123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1124
+ execute_or_queue_command(command, &block)
1125
+ end
1126
+
1127
+ # Gets the status of a collection from your Merchant Center account.
1128
+ # @param [Fixnum] merchant_id
1129
+ # Required. The ID of the account that contains the collection. This account
1130
+ # cannot be a multi-client account.
1131
+ # @param [String] collection_id
1132
+ # Required. The collectionId of the collection. CollectionId is the same as the
1133
+ # REST ID of the collection.
1134
+ # @param [String] fields
1135
+ # Selector specifying which fields to include in a partial response.
1136
+ # @param [String] quota_user
1137
+ # Available to use for quota purposes for server-side applications. Can be any
1138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1139
+ # @param [Google::Apis::RequestOptions] options
1140
+ # Request-specific options
1141
+ #
1142
+ # @yield [result, err] Result & error if block supplied
1143
+ # @yieldparam result [Google::Apis::ContentV2_1::CollectionStatus] parsed result object
1144
+ # @yieldparam err [StandardError] error object if request failed
1145
+ #
1146
+ # @return [Google::Apis::ContentV2_1::CollectionStatus]
1147
+ #
1148
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1149
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1150
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1151
+ def get_collectionstatus(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
1152
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/collectionstatuses/{collectionId}', options)
1153
+ command.response_representation = Google::Apis::ContentV2_1::CollectionStatus::Representation
1154
+ command.response_class = Google::Apis::ContentV2_1::CollectionStatus
1155
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1156
+ command.params['collectionId'] = collection_id unless collection_id.nil?
1157
+ command.query['fields'] = fields unless fields.nil?
1158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1159
+ execute_or_queue_command(command, &block)
1160
+ end
1161
+
1162
+ # Lists the statuses of the collections in your Merchant Center account.
1163
+ # @param [Fixnum] merchant_id
1164
+ # Required. The ID of the account that contains the collection. This account
1165
+ # cannot be a multi-client account.
1166
+ # @param [Fixnum] page_size
1167
+ # The maximum number of collection statuses to return in the response, used for
1168
+ # paging. Defaults to 50; values above 1000 will be coerced to 1000.
1169
+ # @param [String] page_token
1170
+ # Token (if provided) to retrieve the subsequent page. All other parameters must
1171
+ # match the original call that provided the page token.
1172
+ # @param [String] fields
1173
+ # Selector specifying which fields to include in a partial response.
1174
+ # @param [String] quota_user
1175
+ # Available to use for quota purposes for server-side applications. Can be any
1176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1177
+ # @param [Google::Apis::RequestOptions] options
1178
+ # Request-specific options
1179
+ #
1180
+ # @yield [result, err] Result & error if block supplied
1181
+ # @yieldparam result [Google::Apis::ContentV2_1::ListCollectionStatusesResponse] parsed result object
1182
+ # @yieldparam err [StandardError] error object if request failed
1183
+ #
1184
+ # @return [Google::Apis::ContentV2_1::ListCollectionStatusesResponse]
1185
+ #
1186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1189
+ def list_collectionstatuses(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1190
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/collectionstatuses', options)
1191
+ command.response_representation = Google::Apis::ContentV2_1::ListCollectionStatusesResponse::Representation
1192
+ command.response_class = Google::Apis::ContentV2_1::ListCollectionStatusesResponse
1193
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1194
+ command.query['pageSize'] = page_size unless page_size.nil?
1195
+ command.query['pageToken'] = page_token unless page_token.nil?
1196
+ command.query['fields'] = fields unless fields.nil?
1197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1198
+ execute_or_queue_command(command, &block)
1199
+ end
1200
+
848
1201
  # Retrieves a single CSS domain by ID.
849
1202
  # @param [Fixnum] css_group_id
850
1203
  # Required. The ID of the managing account. If this parameter is not the same as
@@ -3523,8 +3876,7 @@ module Google
3523
3876
  execute_or_queue_command(command, &block)
3524
3877
  end
3525
3878
 
3526
- # Lists the metrics report for a given Repricing product. Reports of the last 3
3527
- # days may not be complete.
3879
+ # Lists the metrics report for a given Repricing product.
3528
3880
  # @param [Fixnum] merchant_id
3529
3881
  # Required. Id of the merchant who owns the Repricing rule.
3530
3882
  # @param [String] product_id
@@ -3533,7 +3885,7 @@ module Google
3533
3885
  # FIELDS.id)
3534
3886
  # @param [String] end_date
3535
3887
  # Gets Repricing reports on and before this date in the merchant's timezone. You
3536
- # can only retrieve data up to 3 days ago (default) or earlier. Format is YYYY-
3888
+ # can only retrieve data up to 7 days ago (default) or earlier. Format is YYYY-
3537
3889
  # MM-DD.
3538
3890
  # @param [Fixnum] page_size
3539
3891
  # Maximum number of days of reports to return. There can be more than one rule
@@ -3550,7 +3902,7 @@ module Google
3550
3902
  # Id of the Repricing rule. If specified, only gets this rule's reports.
3551
3903
  # @param [String] start_date
3552
3904
  # Gets Repricing reports on and after this date in the merchant's timezone, up
3553
- # to one year ago. Do not use a start date later than 3 days ago (default).
3905
+ # to one year ago. Do not use a start date later than 7 days ago (default).
3554
3906
  # Format is YYYY-MM-DD.
3555
3907
  # @param [String] fields
3556
3908
  # Selector specifying which fields to include in a partial response.
@@ -4086,15 +4438,14 @@ module Google
4086
4438
  execute_or_queue_command(command, &block)
4087
4439
  end
4088
4440
 
4089
- # Lists the metrics report for a given Repricing rule. Reports of the last 3
4090
- # days may not be complete.
4441
+ # Lists the metrics report for a given Repricing rule.
4091
4442
  # @param [Fixnum] merchant_id
4092
4443
  # Required. Id of the merchant who owns the Repricing rule.
4093
4444
  # @param [String] rule_id
4094
4445
  # Required. Id of the Repricing rule.
4095
4446
  # @param [String] end_date
4096
4447
  # Gets Repricing reports on and before this date in the merchant's timezone. You
4097
- # can only retrieve data up to 3 days ago (default) or earlier. Format: YYYY-MM-
4448
+ # can only retrieve data up to 7 days ago (default) or earlier. Format: YYYY-MM-
4098
4449
  # DD.
4099
4450
  # @param [Fixnum] page_size
4100
4451
  # Maximum number of daily reports to return. Each report includes data from a
@@ -4106,7 +4457,7 @@ module Google
4106
4457
  # match the original call that provided the page token.
4107
4458
  # @param [String] start_date
4108
4459
  # Gets Repricing reports on and after this date in the merchant's timezone, up
4109
- # to one year ago. Do not use a start date later than 3 days ago (default).
4460
+ # to one year ago. Do not use a start date later than 7 days ago (default).
4110
4461
  # Format: YYYY-MM-DD.
4111
4462
  # @param [String] fields
4112
4463
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Content API for Shopping V2_1