google-apis-content_v2_1 0.32.0 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/content_v2_1/classes.rb +1083 -848
- data/lib/google/apis/content_v2_1/gem_version.rb +3 -3
- data/lib/google/apis/content_v2_1/representations.rb +341 -280
- data/lib/google/apis/content_v2_1/service.rb +51 -308
- metadata +7 -7
@@ -32,6 +32,8 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://developers.google.com/shopping-content/v2/
|
34
34
|
class ShoppingContentService < Google::Apis::Core::BaseService
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://shoppingcontent.$UNIVERSE_DOMAIN$/"
|
36
|
+
|
35
37
|
# @return [String]
|
36
38
|
# API key. Your API key identifies your project and provides you with API access,
|
37
39
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -43,7 +45,7 @@ module Google
|
|
43
45
|
attr_accessor :quota_user
|
44
46
|
|
45
47
|
def initialize
|
46
|
-
super(
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, 'content/v2.1/',
|
47
49
|
client_name: 'google-apis-content_v2_1',
|
48
50
|
client_version: Google::Apis::ContentV2_1::GEM_VERSION)
|
49
51
|
@batch_path = 'batch'
|
@@ -2896,7 +2898,7 @@ module Google
|
|
2896
2898
|
# @param [String] language_code
|
2897
2899
|
# Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language code
|
2898
2900
|
# used to localize support content. If not set, the result will be in default
|
2899
|
-
# language
|
2901
|
+
# language `en-US`.
|
2900
2902
|
# @param [String] time_zone
|
2901
2903
|
# Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
|
2902
2904
|
# localize times in support content. For example 'America/Los_Angeles'. If not
|
@@ -2945,7 +2947,7 @@ module Google
|
|
2945
2947
|
# @param [String] language_code
|
2946
2948
|
# Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language code
|
2947
2949
|
# used to localize support content. If not set, the result will be in default
|
2948
|
-
# language
|
2950
|
+
# language `en-US`.
|
2949
2951
|
# @param [String] time_zone
|
2950
2952
|
# Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
|
2951
2953
|
# localize times in support content. For example 'America/Los_Angeles'. If not
|
@@ -2982,6 +2984,51 @@ module Google
|
|
2982
2984
|
execute_or_queue_command(command, &block)
|
2983
2985
|
end
|
2984
2986
|
|
2987
|
+
# Start an action. The action can be requested by merchants in third-party
|
2988
|
+
# application. Before merchants can request the action, the third-party
|
2989
|
+
# application needs to show them action specific content and display a user
|
2990
|
+
# input form. The action can be successfully started only once all `required`
|
2991
|
+
# inputs are provided. If any `required` input is missing, or invalid value was
|
2992
|
+
# provided, the service will return 400 error. Validation errors will contain
|
2993
|
+
# Ids for all problematic field together with translated, human readable error
|
2994
|
+
# messages that can be shown to the user.
|
2995
|
+
# @param [Fixnum] merchant_id
|
2996
|
+
# Required. The ID of the merchant's account.
|
2997
|
+
# @param [Google::Apis::ContentV2_1::TriggerActionPayload] trigger_action_payload_object
|
2998
|
+
# @param [String] language_code
|
2999
|
+
# Optional. Language code [IETF BCP 47 syntax](https://tools.ietf.org/html/bcp47)
|
3000
|
+
# used to localize the response. If not set, the result will be in default
|
3001
|
+
# language `en-US`.
|
3002
|
+
# @param [String] fields
|
3003
|
+
# Selector specifying which fields to include in a partial response.
|
3004
|
+
# @param [String] quota_user
|
3005
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3006
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3007
|
+
# @param [Google::Apis::RequestOptions] options
|
3008
|
+
# Request-specific options
|
3009
|
+
#
|
3010
|
+
# @yield [result, err] Result & error if block supplied
|
3011
|
+
# @yieldparam result [Google::Apis::ContentV2_1::TriggerActionResponse] parsed result object
|
3012
|
+
# @yieldparam err [StandardError] error object if request failed
|
3013
|
+
#
|
3014
|
+
# @return [Google::Apis::ContentV2_1::TriggerActionResponse]
|
3015
|
+
#
|
3016
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3017
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3018
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3019
|
+
def triggeraction_merchantsupport(merchant_id, trigger_action_payload_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3020
|
+
command = make_simple_command(:post, '{merchantId}/merchantsupport/triggeraction', options)
|
3021
|
+
command.request_representation = Google::Apis::ContentV2_1::TriggerActionPayload::Representation
|
3022
|
+
command.request_object = trigger_action_payload_object
|
3023
|
+
command.response_representation = Google::Apis::ContentV2_1::TriggerActionResponse::Representation
|
3024
|
+
command.response_class = Google::Apis::ContentV2_1::TriggerActionResponse
|
3025
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
3026
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
3027
|
+
command.query['fields'] = fields unless fields.nil?
|
3028
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3029
|
+
execute_or_queue_command(command, &block)
|
3030
|
+
end
|
3031
|
+
|
2985
3032
|
# Creates a charge invoice for a shipment group, and triggers a charge capture
|
2986
3033
|
# for orderinvoice enabled orders.
|
2987
3034
|
# @param [Fixnum] merchant_id
|
@@ -4991,67 +5038,6 @@ module Google
|
|
4991
5038
|
execute_or_queue_command(command, &block)
|
4992
5039
|
end
|
4993
5040
|
|
4994
|
-
# Lists the metrics report for a given Repricing product.
|
4995
|
-
# @param [Fixnum] merchant_id
|
4996
|
-
# Required. Id of the merchant who owns the Repricing rule.
|
4997
|
-
# @param [String] product_id
|
4998
|
-
# Required. Id of the Repricing product. Also known as the [REST_ID](https://
|
4999
|
-
# developers.google.com/shopping-content/reference/rest/v2.1/products#Product.
|
5000
|
-
# FIELDS.id)
|
5001
|
-
# @param [String] end_date
|
5002
|
-
# Gets Repricing reports on and before this date in the merchant's timezone. You
|
5003
|
-
# can only retrieve data up to 7 days ago (default) or earlier. Format is YYYY-
|
5004
|
-
# MM-DD.
|
5005
|
-
# @param [Fixnum] page_size
|
5006
|
-
# Maximum number of days of reports to return. There can be more than one rule
|
5007
|
-
# report returned per day. For example, if 3 rule types got applied to the same
|
5008
|
-
# product within a 24-hour period, then a page_size of 1 will return 3 rule
|
5009
|
-
# reports. The page size defaults to 50 and values above 1000 are coerced to
|
5010
|
-
# 1000. This service may return fewer days of reports than this value, for
|
5011
|
-
# example, if the time between your start and end date is less than the page
|
5012
|
-
# size.
|
5013
|
-
# @param [String] page_token
|
5014
|
-
# Token (if provided) to retrieve the subsequent page. All other parameters must
|
5015
|
-
# match the original call that provided the page token.
|
5016
|
-
# @param [String] rule_id
|
5017
|
-
# Id of the Repricing rule. If specified, only gets this rule's reports.
|
5018
|
-
# @param [String] start_date
|
5019
|
-
# Gets Repricing reports on and after this date in the merchant's timezone, up
|
5020
|
-
# to one year ago. Do not use a start date later than 7 days ago (default).
|
5021
|
-
# Format is YYYY-MM-DD.
|
5022
|
-
# @param [String] fields
|
5023
|
-
# Selector specifying which fields to include in a partial response.
|
5024
|
-
# @param [String] quota_user
|
5025
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5026
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5027
|
-
# @param [Google::Apis::RequestOptions] options
|
5028
|
-
# Request-specific options
|
5029
|
-
#
|
5030
|
-
# @yield [result, err] Result & error if block supplied
|
5031
|
-
# @yieldparam result [Google::Apis::ContentV2_1::ListRepricingProductReportsResponse] parsed result object
|
5032
|
-
# @yieldparam err [StandardError] error object if request failed
|
5033
|
-
#
|
5034
|
-
# @return [Google::Apis::ContentV2_1::ListRepricingProductReportsResponse]
|
5035
|
-
#
|
5036
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5037
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5038
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5039
|
-
def list_productstatus_repricingreports(merchant_id, product_id, end_date: nil, page_size: nil, page_token: nil, rule_id: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5040
|
-
command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}/repricingreports', options)
|
5041
|
-
command.response_representation = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse::Representation
|
5042
|
-
command.response_class = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse
|
5043
|
-
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5044
|
-
command.params['productId'] = product_id unless product_id.nil?
|
5045
|
-
command.query['endDate'] = end_date unless end_date.nil?
|
5046
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
5047
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
5048
|
-
command.query['ruleId'] = rule_id unless rule_id.nil?
|
5049
|
-
command.query['startDate'] = start_date unless start_date.nil?
|
5050
|
-
command.query['fields'] = fields unless fields.nil?
|
5051
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5052
|
-
execute_or_queue_command(command, &block)
|
5053
|
-
end
|
5054
|
-
|
5055
5041
|
# Inserts a promotion for your Merchant Center account. If the promotion already
|
5056
5042
|
# exists, then it updates the promotion instead. To [end or delete] (https://
|
5057
5043
|
# developers.google.com/shopping-content/guides/promotions#end_a_promotion) a
|
@@ -5597,7 +5583,7 @@ module Google
|
|
5597
5583
|
execute_or_queue_command(command, &block)
|
5598
5584
|
end
|
5599
5585
|
|
5600
|
-
# Retrieves merchant performance
|
5586
|
+
# Retrieves merchant performance metrics matching the search query and
|
5601
5587
|
# optionally segmented by selected dimensions.
|
5602
5588
|
# @param [Fixnum] merchant_id
|
5603
5589
|
# Required. Id of the merchant making the call. Must be a standalone account or
|
@@ -5632,249 +5618,6 @@ module Google
|
|
5632
5618
|
execute_or_queue_command(command, &block)
|
5633
5619
|
end
|
5634
5620
|
|
5635
|
-
# Creates a repricing rule for your Merchant Center account.
|
5636
|
-
# @param [Fixnum] merchant_id
|
5637
|
-
# Required. The id of the merchant who owns the repricing rule.
|
5638
|
-
# @param [Google::Apis::ContentV2_1::RepricingRule] repricing_rule_object
|
5639
|
-
# @param [String] rule_id
|
5640
|
-
# Required. The id of the rule to create.
|
5641
|
-
# @param [String] fields
|
5642
|
-
# Selector specifying which fields to include in a partial response.
|
5643
|
-
# @param [String] quota_user
|
5644
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5645
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5646
|
-
# @param [Google::Apis::RequestOptions] options
|
5647
|
-
# Request-specific options
|
5648
|
-
#
|
5649
|
-
# @yield [result, err] Result & error if block supplied
|
5650
|
-
# @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object
|
5651
|
-
# @yieldparam err [StandardError] error object if request failed
|
5652
|
-
#
|
5653
|
-
# @return [Google::Apis::ContentV2_1::RepricingRule]
|
5654
|
-
#
|
5655
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5656
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5657
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5658
|
-
def create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5659
|
-
command = make_simple_command(:post, '{merchantId}/repricingrules', options)
|
5660
|
-
command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
5661
|
-
command.request_object = repricing_rule_object
|
5662
|
-
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
5663
|
-
command.response_class = Google::Apis::ContentV2_1::RepricingRule
|
5664
|
-
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5665
|
-
command.query['ruleId'] = rule_id unless rule_id.nil?
|
5666
|
-
command.query['fields'] = fields unless fields.nil?
|
5667
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5668
|
-
execute_or_queue_command(command, &block)
|
5669
|
-
end
|
5670
|
-
|
5671
|
-
# Deletes a repricing rule in your Merchant Center account.
|
5672
|
-
# @param [Fixnum] merchant_id
|
5673
|
-
# Required. The id of the merchant who owns the repricing rule.
|
5674
|
-
# @param [String] rule_id
|
5675
|
-
# Required. The id of the rule to Delete.
|
5676
|
-
# @param [String] fields
|
5677
|
-
# Selector specifying which fields to include in a partial response.
|
5678
|
-
# @param [String] quota_user
|
5679
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5680
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5681
|
-
# @param [Google::Apis::RequestOptions] options
|
5682
|
-
# Request-specific options
|
5683
|
-
#
|
5684
|
-
# @yield [result, err] Result & error if block supplied
|
5685
|
-
# @yieldparam result [NilClass] No result returned for this method
|
5686
|
-
# @yieldparam err [StandardError] error object if request failed
|
5687
|
-
#
|
5688
|
-
# @return [void]
|
5689
|
-
#
|
5690
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5691
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5692
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5693
|
-
def delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
|
5694
|
-
command = make_simple_command(:delete, '{merchantId}/repricingrules/{ruleId}', options)
|
5695
|
-
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5696
|
-
command.params['ruleId'] = rule_id unless rule_id.nil?
|
5697
|
-
command.query['fields'] = fields unless fields.nil?
|
5698
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5699
|
-
execute_or_queue_command(command, &block)
|
5700
|
-
end
|
5701
|
-
|
5702
|
-
# Retrieves a repricing rule from your Merchant Center account.
|
5703
|
-
# @param [Fixnum] merchant_id
|
5704
|
-
# Required. The id of the merchant who owns the repricing rule.
|
5705
|
-
# @param [String] rule_id
|
5706
|
-
# Required. The id of the rule to retrieve.
|
5707
|
-
# @param [String] fields
|
5708
|
-
# Selector specifying which fields to include in a partial response.
|
5709
|
-
# @param [String] quota_user
|
5710
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5711
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5712
|
-
# @param [Google::Apis::RequestOptions] options
|
5713
|
-
# Request-specific options
|
5714
|
-
#
|
5715
|
-
# @yield [result, err] Result & error if block supplied
|
5716
|
-
# @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object
|
5717
|
-
# @yieldparam err [StandardError] error object if request failed
|
5718
|
-
#
|
5719
|
-
# @return [Google::Apis::ContentV2_1::RepricingRule]
|
5720
|
-
#
|
5721
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5722
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5723
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5724
|
-
def get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
|
5725
|
-
command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}', options)
|
5726
|
-
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
5727
|
-
command.response_class = Google::Apis::ContentV2_1::RepricingRule
|
5728
|
-
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5729
|
-
command.params['ruleId'] = rule_id unless rule_id.nil?
|
5730
|
-
command.query['fields'] = fields unless fields.nil?
|
5731
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5732
|
-
execute_or_queue_command(command, &block)
|
5733
|
-
end
|
5734
|
-
|
5735
|
-
# Lists the repricing rules in your Merchant Center account.
|
5736
|
-
# @param [Fixnum] merchant_id
|
5737
|
-
# Required. The id of the merchant who owns the repricing rule.
|
5738
|
-
# @param [String] country_code
|
5739
|
-
# [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/
|
5740
|
-
# en.xml) (for example, "US"), used as a filter on repricing rules.
|
5741
|
-
# @param [String] language_code
|
5742
|
-
# The two-letter ISO 639-1 language code associated with the repricing rule,
|
5743
|
-
# used as a filter.
|
5744
|
-
# @param [Fixnum] page_size
|
5745
|
-
# The maximum number of repricing rules to return. The service may return fewer
|
5746
|
-
# than this value. If unspecified, at most 50 rules will be returned. The
|
5747
|
-
# maximum value is 1000; values above 1000 will be coerced to 1000.
|
5748
|
-
# @param [String] page_token
|
5749
|
-
# A page token, received from a previous `ListRepricingRules` call. Provide this
|
5750
|
-
# to retrieve the subsequent page. When paginating, all other parameters
|
5751
|
-
# provided to `ListRepricingRules` must match the call that provided the page
|
5752
|
-
# token.
|
5753
|
-
# @param [String] fields
|
5754
|
-
# Selector specifying which fields to include in a partial response.
|
5755
|
-
# @param [String] quota_user
|
5756
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5757
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5758
|
-
# @param [Google::Apis::RequestOptions] options
|
5759
|
-
# Request-specific options
|
5760
|
-
#
|
5761
|
-
# @yield [result, err] Result & error if block supplied
|
5762
|
-
# @yieldparam result [Google::Apis::ContentV2_1::ListRepricingRulesResponse] parsed result object
|
5763
|
-
# @yieldparam err [StandardError] error object if request failed
|
5764
|
-
#
|
5765
|
-
# @return [Google::Apis::ContentV2_1::ListRepricingRulesResponse]
|
5766
|
-
#
|
5767
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5768
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5769
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5770
|
-
def list_repricingrules(merchant_id, country_code: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5771
|
-
command = make_simple_command(:get, '{merchantId}/repricingrules', options)
|
5772
|
-
command.response_representation = Google::Apis::ContentV2_1::ListRepricingRulesResponse::Representation
|
5773
|
-
command.response_class = Google::Apis::ContentV2_1::ListRepricingRulesResponse
|
5774
|
-
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5775
|
-
command.query['countryCode'] = country_code unless country_code.nil?
|
5776
|
-
command.query['languageCode'] = language_code unless language_code.nil?
|
5777
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
5778
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
5779
|
-
command.query['fields'] = fields unless fields.nil?
|
5780
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5781
|
-
execute_or_queue_command(command, &block)
|
5782
|
-
end
|
5783
|
-
|
5784
|
-
# Updates a repricing rule in your Merchant Center account. All mutable fields
|
5785
|
-
# will be overwritten in each update request. In each update, you must provide
|
5786
|
-
# all required mutable fields, or an error will be thrown. If you do not provide
|
5787
|
-
# an optional field in the update request, if that field currently exists, it
|
5788
|
-
# will be deleted from the rule.
|
5789
|
-
# @param [Fixnum] merchant_id
|
5790
|
-
# Required. The id of the merchant who owns the repricing rule.
|
5791
|
-
# @param [String] rule_id
|
5792
|
-
# Required. The id of the rule to update.
|
5793
|
-
# @param [Google::Apis::ContentV2_1::RepricingRule] repricing_rule_object
|
5794
|
-
# @param [String] fields
|
5795
|
-
# Selector specifying which fields to include in a partial response.
|
5796
|
-
# @param [String] quota_user
|
5797
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5798
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5799
|
-
# @param [Google::Apis::RequestOptions] options
|
5800
|
-
# Request-specific options
|
5801
|
-
#
|
5802
|
-
# @yield [result, err] Result & error if block supplied
|
5803
|
-
# @yieldparam result [Google::Apis::ContentV2_1::RepricingRule] parsed result object
|
5804
|
-
# @yieldparam err [StandardError] error object if request failed
|
5805
|
-
#
|
5806
|
-
# @return [Google::Apis::ContentV2_1::RepricingRule]
|
5807
|
-
#
|
5808
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5809
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5810
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5811
|
-
def patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5812
|
-
command = make_simple_command(:patch, '{merchantId}/repricingrules/{ruleId}', options)
|
5813
|
-
command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
5814
|
-
command.request_object = repricing_rule_object
|
5815
|
-
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
5816
|
-
command.response_class = Google::Apis::ContentV2_1::RepricingRule
|
5817
|
-
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5818
|
-
command.params['ruleId'] = rule_id unless rule_id.nil?
|
5819
|
-
command.query['fields'] = fields unless fields.nil?
|
5820
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5821
|
-
execute_or_queue_command(command, &block)
|
5822
|
-
end
|
5823
|
-
|
5824
|
-
# *Deprecated*: New merchants can't start using this service. Lists the metrics
|
5825
|
-
# report for a given Repricing rule.
|
5826
|
-
# @param [Fixnum] merchant_id
|
5827
|
-
# Required. Id of the merchant who owns the Repricing rule.
|
5828
|
-
# @param [String] rule_id
|
5829
|
-
# Required. Id of the Repricing rule.
|
5830
|
-
# @param [String] end_date
|
5831
|
-
# Gets Repricing reports on and before this date in the merchant's timezone. You
|
5832
|
-
# can only retrieve data up to 7 days ago (default) or earlier. Format: YYYY-MM-
|
5833
|
-
# DD.
|
5834
|
-
# @param [Fixnum] page_size
|
5835
|
-
# Maximum number of daily reports to return. Each report includes data from a
|
5836
|
-
# single 24-hour period. The page size defaults to 50 and values above 1000 are
|
5837
|
-
# coerced to 1000. This service may return fewer days than this value, for
|
5838
|
-
# example, if the time between your start and end date is less than page size.
|
5839
|
-
# @param [String] page_token
|
5840
|
-
# Token (if provided) to retrieve the subsequent page. All other parameters must
|
5841
|
-
# match the original call that provided the page token.
|
5842
|
-
# @param [String] start_date
|
5843
|
-
# Gets Repricing reports on and after this date in the merchant's timezone, up
|
5844
|
-
# to one year ago. Do not use a start date later than 7 days ago (default).
|
5845
|
-
# Format: YYYY-MM-DD.
|
5846
|
-
# @param [String] fields
|
5847
|
-
# Selector specifying which fields to include in a partial response.
|
5848
|
-
# @param [String] quota_user
|
5849
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5850
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5851
|
-
# @param [Google::Apis::RequestOptions] options
|
5852
|
-
# Request-specific options
|
5853
|
-
#
|
5854
|
-
# @yield [result, err] Result & error if block supplied
|
5855
|
-
# @yieldparam result [Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse] parsed result object
|
5856
|
-
# @yieldparam err [StandardError] error object if request failed
|
5857
|
-
#
|
5858
|
-
# @return [Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse]
|
5859
|
-
#
|
5860
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5861
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5862
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5863
|
-
def list_repricingrule_repricingreports(merchant_id, rule_id, end_date: nil, page_size: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5864
|
-
command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}/repricingreports', options)
|
5865
|
-
command.response_representation = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse::Representation
|
5866
|
-
command.response_class = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse
|
5867
|
-
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5868
|
-
command.params['ruleId'] = rule_id unless rule_id.nil?
|
5869
|
-
command.query['endDate'] = end_date unless end_date.nil?
|
5870
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
5871
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
5872
|
-
command.query['startDate'] = start_date unless start_date.nil?
|
5873
|
-
command.query['fields'] = fields unless fields.nil?
|
5874
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5875
|
-
execute_or_queue_command(command, &block)
|
5876
|
-
end
|
5877
|
-
|
5878
5621
|
# Batches multiple return address related calls in a single request.
|
5879
5622
|
# @param [Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest] returnaddress_custom_batch_request_object
|
5880
5623
|
# @param [String] fields
|
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.
|
4
|
+
version: 0.33.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:
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.33.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -68,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2.
|
71
|
+
version: '2.7'
|
72
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.5.6
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Content API for Shopping V2_1
|