google-apis-content_v2_1 0.18.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -384,6 +384,44 @@ module Google
384
384
  execute_or_queue_command(command, &block)
385
385
  end
386
386
 
387
+ # Request verification code to start phone verification.
388
+ # @param [Fixnum] merchant_id
389
+ # Required. The ID of the managing account. If this parameter is not the same as
390
+ # accountId, then this account must be a multi-client account and accountId must
391
+ # be the ID of a sub-account of this account.
392
+ # @param [Fixnum] account_id
393
+ # Required. The ID of the account.
394
+ # @param [Google::Apis::ContentV2_1::RequestPhoneVerificationRequest] request_phone_verification_request_object
395
+ # @param [String] fields
396
+ # Selector specifying which fields to include in a partial response.
397
+ # @param [String] quota_user
398
+ # Available to use for quota purposes for server-side applications. Can be any
399
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
400
+ # @param [Google::Apis::RequestOptions] options
401
+ # Request-specific options
402
+ #
403
+ # @yield [result, err] Result & error if block supplied
404
+ # @yieldparam result [Google::Apis::ContentV2_1::RequestPhoneVerificationResponse] parsed result object
405
+ # @yieldparam err [StandardError] error object if request failed
406
+ #
407
+ # @return [Google::Apis::ContentV2_1::RequestPhoneVerificationResponse]
408
+ #
409
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
410
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
411
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
412
+ def requestphoneverification_account(merchant_id, account_id, request_phone_verification_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
413
+ command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/requestphoneverification', options)
414
+ command.request_representation = Google::Apis::ContentV2_1::RequestPhoneVerificationRequest::Representation
415
+ command.request_object = request_phone_verification_request_object
416
+ command.response_representation = Google::Apis::ContentV2_1::RequestPhoneVerificationResponse::Representation
417
+ command.response_class = Google::Apis::ContentV2_1::RequestPhoneVerificationResponse
418
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
419
+ command.params['accountId'] = account_id unless account_id.nil?
420
+ command.query['fields'] = fields unless fields.nil?
421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
422
+ execute_or_queue_command(command, &block)
423
+ end
424
+
387
425
  # Updates a Merchant Center account. Any fields that are not provided are
388
426
  # deleted from the resource.
389
427
  # @param [Fixnum] merchant_id
@@ -459,6 +497,47 @@ module Google
459
497
  execute_or_queue_command(command, &block)
460
498
  end
461
499
 
500
+ # Validates verification code to verify phone number for the account. If
501
+ # successful this will overwrite the value of `accounts.businessinformation.
502
+ # phoneNumber`. Only verified phone number will replace an existing verified
503
+ # phone number.
504
+ # @param [Fixnum] merchant_id
505
+ # Required. The ID of the managing account. If this parameter is not the same as
506
+ # accountId, then this account must be a multi-client account and accountId must
507
+ # be the ID of a sub-account of this account.
508
+ # @param [Fixnum] account_id
509
+ # Required. The ID of the account.
510
+ # @param [Google::Apis::ContentV2_1::VerifyPhoneNumberRequest] verify_phone_number_request_object
511
+ # @param [String] fields
512
+ # Selector specifying which fields to include in a partial response.
513
+ # @param [String] quota_user
514
+ # Available to use for quota purposes for server-side applications. Can be any
515
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
516
+ # @param [Google::Apis::RequestOptions] options
517
+ # Request-specific options
518
+ #
519
+ # @yield [result, err] Result & error if block supplied
520
+ # @yieldparam result [Google::Apis::ContentV2_1::VerifyPhoneNumberResponse] parsed result object
521
+ # @yieldparam err [StandardError] error object if request failed
522
+ #
523
+ # @return [Google::Apis::ContentV2_1::VerifyPhoneNumberResponse]
524
+ #
525
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
526
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
527
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
528
+ def verifyphonenumber_account(merchant_id, account_id, verify_phone_number_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
529
+ command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/verifyphonenumber', options)
530
+ command.request_representation = Google::Apis::ContentV2_1::VerifyPhoneNumberRequest::Representation
531
+ command.request_object = verify_phone_number_request_object
532
+ command.response_representation = Google::Apis::ContentV2_1::VerifyPhoneNumberResponse::Representation
533
+ command.response_class = Google::Apis::ContentV2_1::VerifyPhoneNumberResponse
534
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
535
+ command.params['accountId'] = account_id unless account_id.nil?
536
+ command.query['fields'] = fields unless fields.nil?
537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
538
+ execute_or_queue_command(command, &block)
539
+ end
540
+
462
541
  # Uploads credentials for the Merchant Center account. If credentials already
463
542
  # exist for this Merchant Center account and purpose, this method updates them.
464
543
  # @param [Fixnum] account_id
@@ -1029,8 +1108,8 @@ module Google
1029
1108
  # @param [Fixnum] merchant_id
1030
1109
  # Required. The ID of the account.
1031
1110
  # @param [String] region_code
1032
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1033
- # ISO_3166-1_alpha-2). Currently only US is available.
1111
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1112
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1034
1113
  # @param [Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest] activate_buy_on_google_program_request_object
1035
1114
  # @param [String] fields
1036
1115
  # Selector specifying which fields to include in a partial response.
@@ -1064,8 +1143,8 @@ module Google
1064
1143
  # @param [Fixnum] merchant_id
1065
1144
  # Required. The ID of the account.
1066
1145
  # @param [String] region_code
1067
- # The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1068
- # ISO_3166-1_alpha-2). Currently only US is available.
1146
+ # Required. The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1147
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1069
1148
  # @param [String] fields
1070
1149
  # Selector specifying which fields to include in a partial response.
1071
1150
  # @param [String] quota_user
@@ -1103,8 +1182,8 @@ module Google
1103
1182
  # @param [Fixnum] merchant_id
1104
1183
  # Required. The ID of the account.
1105
1184
  # @param [String] region_code
1106
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1107
- # ISO_3166-1_alpha-2). Currently only US is available.
1185
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1186
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1108
1187
  # @param [Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest] onboard_buy_on_google_program_request_object
1109
1188
  # @param [String] fields
1110
1189
  # Selector specifying which fields to include in a partial response.
@@ -1134,13 +1213,55 @@ module Google
1134
1213
  execute_or_queue_command(command, &block)
1135
1214
  end
1136
1215
 
1216
+ # Updates the status of the BoG program for your Merchant Center account.
1217
+ # @param [Fixnum] merchant_id
1218
+ # Required. The ID of the account.
1219
+ # @param [String] region_code
1220
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1221
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1222
+ # @param [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] buy_on_google_program_status_object
1223
+ # @param [String] update_mask
1224
+ # The list of fields to update. If the update mask is not provided, then all the
1225
+ # fields set in buyOnGoogleProgramStatus will be updated. Clearing fields is
1226
+ # only possible if update mask is provided.
1227
+ # @param [String] fields
1228
+ # Selector specifying which fields to include in a partial response.
1229
+ # @param [String] quota_user
1230
+ # Available to use for quota purposes for server-side applications. Can be any
1231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1232
+ # @param [Google::Apis::RequestOptions] options
1233
+ # Request-specific options
1234
+ #
1235
+ # @yield [result, err] Result & error if block supplied
1236
+ # @yieldparam result [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] parsed result object
1237
+ # @yieldparam err [StandardError] error object if request failed
1238
+ #
1239
+ # @return [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus]
1240
+ #
1241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1244
+ def patch_buyongoogleprogram(merchant_id, region_code, buy_on_google_program_status_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1245
+ command = make_simple_command(:patch, '{merchantId}/buyongoogleprograms/{regionCode}', options)
1246
+ command.request_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1247
+ command.request_object = buy_on_google_program_status_object
1248
+ command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1249
+ command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
1250
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1251
+ command.params['regionCode'] = region_code unless region_code.nil?
1252
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1253
+ command.query['fields'] = fields unless fields.nil?
1254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1255
+ execute_or_queue_command(command, &block)
1256
+ end
1257
+
1137
1258
  # Pauses the BoG program in your Merchant Center account. Important: This method
1138
1259
  # is only whitelisted for selected merchants.
1139
1260
  # @param [Fixnum] merchant_id
1140
1261
  # Required. The ID of the account.
1141
1262
  # @param [String] region_code
1142
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1143
- # ISO_3166-1_alpha-2). Currently only US is available.
1263
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1264
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1144
1265
  # @param [Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest] pause_buy_on_google_program_request_object
1145
1266
  # @param [String] fields
1146
1267
  # Selector specifying which fields to include in a partial response.
@@ -1176,8 +1297,8 @@ module Google
1176
1297
  # @param [Fixnum] merchant_id
1177
1298
  # Required. The ID of the account.
1178
1299
  # @param [String] region_code
1179
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1180
- # ISO_3166-1_alpha-2). Currently only US is available.
1300
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1301
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1181
1302
  # @param [Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest] request_review_buy_on_google_program_request_object
1182
1303
  # @param [String] fields
1183
1304
  # Selector specifying which fields to include in a partial response.
@@ -1892,6 +2013,68 @@ module Google
1892
2013
  execute_or_queue_command(command, &block)
1893
2014
  end
1894
2015
 
2016
+ # Retrieves the status and review eligibility for the free listing program.
2017
+ # @param [Fixnum] merchant_id
2018
+ # Required. The ID of the account.
2019
+ # @param [String] fields
2020
+ # Selector specifying which fields to include in a partial response.
2021
+ # @param [String] quota_user
2022
+ # Available to use for quota purposes for server-side applications. Can be any
2023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2024
+ # @param [Google::Apis::RequestOptions] options
2025
+ # Request-specific options
2026
+ #
2027
+ # @yield [result, err] Result & error if block supplied
2028
+ # @yieldparam result [Google::Apis::ContentV2_1::FreeListingsProgramStatus] parsed result object
2029
+ # @yieldparam err [StandardError] error object if request failed
2030
+ #
2031
+ # @return [Google::Apis::ContentV2_1::FreeListingsProgramStatus]
2032
+ #
2033
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2034
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2035
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2036
+ def get_freelistingsprogram(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
2037
+ command = make_simple_command(:get, '{merchantId}/freelistingsprogram', options)
2038
+ command.response_representation = Google::Apis::ContentV2_1::FreeListingsProgramStatus::Representation
2039
+ command.response_class = Google::Apis::ContentV2_1::FreeListingsProgramStatus
2040
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2041
+ command.query['fields'] = fields unless fields.nil?
2042
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2043
+ execute_or_queue_command(command, &block)
2044
+ end
2045
+
2046
+ # Requests a review for Free Listings program in the provided region. Important:
2047
+ # This method is only whitelisted for selected merchants.
2048
+ # @param [Fixnum] merchant_id
2049
+ # Required. The ID of the account.
2050
+ # @param [Google::Apis::ContentV2_1::RequestReviewFreeListingsRequest] request_review_free_listings_request_object
2051
+ # @param [String] fields
2052
+ # Selector specifying which fields to include in a partial response.
2053
+ # @param [String] quota_user
2054
+ # Available to use for quota purposes for server-side applications. Can be any
2055
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2056
+ # @param [Google::Apis::RequestOptions] options
2057
+ # Request-specific options
2058
+ #
2059
+ # @yield [result, err] Result & error if block supplied
2060
+ # @yieldparam result [NilClass] No result returned for this method
2061
+ # @yieldparam err [StandardError] error object if request failed
2062
+ #
2063
+ # @return [void]
2064
+ #
2065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2068
+ def requestreview_freelistingsprogram(merchant_id, request_review_free_listings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2069
+ command = make_simple_command(:post, '{merchantId}/freelistingsprogram/requestreview', options)
2070
+ command.request_representation = Google::Apis::ContentV2_1::RequestReviewFreeListingsRequest::Representation
2071
+ command.request_object = request_review_free_listings_request_object
2072
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2073
+ command.query['fields'] = fields unless fields.nil?
2074
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2075
+ execute_or_queue_command(command, &block)
2076
+ end
2077
+
1895
2078
  # Retrieves and/or updates the LIA settings of multiple accounts in a single
1896
2079
  # request.
1897
2080
  # @param [Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object
@@ -2958,6 +3141,54 @@ module Google
2958
3141
  execute_or_queue_command(command, &block)
2959
3142
  end
2960
3143
 
3144
+ # Capture funds from the customer for the current order total. This method
3145
+ # should be called after the merchant verifies that they are able and ready to
3146
+ # start shipping the order. This method blocks until a response is received from
3147
+ # the payment processsor. If this method succeeds, the merchant is guaranteed to
3148
+ # receive funds for the order after shipment. If the request fails, it can be
3149
+ # retried or the order may be cancelled. This method cannot be called after the
3150
+ # entire order is already shipped. A rejected error code is returned when the
3151
+ # payment service provider has declined the charge. This indicates a problem
3152
+ # between the PSP and either the merchant's or customer's account. Sometimes
3153
+ # this error will be resolved by the customer. We recommend retrying these
3154
+ # errors once per day or cancelling the order with reason `failedToCaptureFunds`
3155
+ # if the items cannot be held.
3156
+ # @param [Fixnum] merchant_id
3157
+ # Required. The ID of the account that manages the order. This cannot be a multi-
3158
+ # client account.
3159
+ # @param [String] order_id
3160
+ # Required. The ID of the Order.
3161
+ # @param [Google::Apis::ContentV2_1::CaptureOrderRequest] capture_order_request_object
3162
+ # @param [String] fields
3163
+ # Selector specifying which fields to include in a partial response.
3164
+ # @param [String] quota_user
3165
+ # Available to use for quota purposes for server-side applications. Can be any
3166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3167
+ # @param [Google::Apis::RequestOptions] options
3168
+ # Request-specific options
3169
+ #
3170
+ # @yield [result, err] Result & error if block supplied
3171
+ # @yieldparam result [Google::Apis::ContentV2_1::CaptureOrderResponse] parsed result object
3172
+ # @yieldparam err [StandardError] error object if request failed
3173
+ #
3174
+ # @return [Google::Apis::ContentV2_1::CaptureOrderResponse]
3175
+ #
3176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3179
+ def capture_order(merchant_id, order_id, capture_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3180
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/captureOrder', options)
3181
+ command.request_representation = Google::Apis::ContentV2_1::CaptureOrderRequest::Representation
3182
+ command.request_object = capture_order_request_object
3183
+ command.response_representation = Google::Apis::ContentV2_1::CaptureOrderResponse::Representation
3184
+ command.response_class = Google::Apis::ContentV2_1::CaptureOrderResponse
3185
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3186
+ command.params['orderId'] = order_id unless order_id.nil?
3187
+ command.query['fields'] = fields unless fields.nil?
3188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3189
+ execute_or_queue_command(command, &block)
3190
+ end
3191
+
2961
3192
  # Sandbox only. Creates a test order.
2962
3193
  # @param [Fixnum] merchant_id
2963
3194
  # The ID of the account that should manage the order. This cannot be a multi-
@@ -4252,6 +4483,40 @@ module Google
4252
4483
  execute_or_queue_command(command, &block)
4253
4484
  end
4254
4485
 
4486
+ # Inserts a promotion for your Merchant Center account. If the promotion already
4487
+ # exists, then it will update the promotion instead.
4488
+ # @param [Fixnum] merchant_id
4489
+ # Required. The ID of the account that contains the collection.
4490
+ # @param [Google::Apis::ContentV2_1::Promotion] promotion_object
4491
+ # @param [String] fields
4492
+ # Selector specifying which fields to include in a partial response.
4493
+ # @param [String] quota_user
4494
+ # Available to use for quota purposes for server-side applications. Can be any
4495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4496
+ # @param [Google::Apis::RequestOptions] options
4497
+ # Request-specific options
4498
+ #
4499
+ # @yield [result, err] Result & error if block supplied
4500
+ # @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
4501
+ # @yieldparam err [StandardError] error object if request failed
4502
+ #
4503
+ # @return [Google::Apis::ContentV2_1::Promotion]
4504
+ #
4505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4508
+ def create_promotion(merchant_id, promotion_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4509
+ command = make_simple_command(:post, '{merchantId}/promotions', options)
4510
+ command.request_representation = Google::Apis::ContentV2_1::Promotion::Representation
4511
+ command.request_object = promotion_object
4512
+ command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
4513
+ command.response_class = Google::Apis::ContentV2_1::Promotion
4514
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4515
+ command.query['fields'] = fields unless fields.nil?
4516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4517
+ execute_or_queue_command(command, &block)
4518
+ end
4519
+
4255
4520
  # Retrieves a Merchant Center account's pubsub notification settings.
4256
4521
  # @param [Fixnum] merchant_id
4257
4522
  # The ID of the account for which to get pubsub notification settings.
@@ -5691,6 +5956,67 @@ module Google
5691
5956
  command.query['quotaUser'] = quota_user unless quota_user.nil?
5692
5957
  execute_or_queue_command(command, &block)
5693
5958
  end
5959
+
5960
+ # Retrieves the status and review eligibility for the Shopping Ads program.
5961
+ # @param [Fixnum] merchant_id
5962
+ # Required. The ID of the account.
5963
+ # @param [String] fields
5964
+ # Selector specifying which fields to include in a partial response.
5965
+ # @param [String] quota_user
5966
+ # Available to use for quota purposes for server-side applications. Can be any
5967
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5968
+ # @param [Google::Apis::RequestOptions] options
5969
+ # Request-specific options
5970
+ #
5971
+ # @yield [result, err] Result & error if block supplied
5972
+ # @yieldparam result [Google::Apis::ContentV2_1::ShoppingAdsProgramStatus] parsed result object
5973
+ # @yieldparam err [StandardError] error object if request failed
5974
+ #
5975
+ # @return [Google::Apis::ContentV2_1::ShoppingAdsProgramStatus]
5976
+ #
5977
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5978
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5979
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5980
+ def get_shoppingadsprogram(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
5981
+ command = make_simple_command(:get, '{merchantId}/shoppingadsprogram', options)
5982
+ command.response_representation = Google::Apis::ContentV2_1::ShoppingAdsProgramStatus::Representation
5983
+ command.response_class = Google::Apis::ContentV2_1::ShoppingAdsProgramStatus
5984
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
5985
+ command.query['fields'] = fields unless fields.nil?
5986
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5987
+ execute_or_queue_command(command, &block)
5988
+ end
5989
+
5990
+ # Requests a review for Shopping Ads program in the provided country.
5991
+ # @param [Fixnum] merchant_id
5992
+ # Required. The ID of the account.
5993
+ # @param [Google::Apis::ContentV2_1::RequestReviewShoppingAdsRequest] request_review_shopping_ads_request_object
5994
+ # @param [String] fields
5995
+ # Selector specifying which fields to include in a partial response.
5996
+ # @param [String] quota_user
5997
+ # Available to use for quota purposes for server-side applications. Can be any
5998
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5999
+ # @param [Google::Apis::RequestOptions] options
6000
+ # Request-specific options
6001
+ #
6002
+ # @yield [result, err] Result & error if block supplied
6003
+ # @yieldparam result [NilClass] No result returned for this method
6004
+ # @yieldparam err [StandardError] error object if request failed
6005
+ #
6006
+ # @return [void]
6007
+ #
6008
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6009
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6010
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6011
+ def requestreview_shoppingadsprogram(merchant_id, request_review_shopping_ads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
6012
+ command = make_simple_command(:post, '{merchantId}/shoppingadsprogram/requestreview', options)
6013
+ command.request_representation = Google::Apis::ContentV2_1::RequestReviewShoppingAdsRequest::Representation
6014
+ command.request_object = request_review_shopping_ads_request_object
6015
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
6016
+ command.query['fields'] = fields unless fields.nil?
6017
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6018
+ execute_or_queue_command(command, &block)
6019
+ end
5694
6020
 
5695
6021
  protected
5696
6022
 
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.18.0
4
+ version: 0.22.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-07-26 00:00:00.000000000 Z
11
+ date: 2021-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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/master/generated/google-apis-content_v2_1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.22.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
63
63
  post_install_message:
64
64
  rdoc_options: []