Class: Google::Apis::ContentV2_1::ShoppingContentService

Inherits:
Google::Apis::Core::BaseService show all
Defined in:
generated/google/apis/content_v2_1/service.rb

Overview

Content API for Shopping

Manages product items, inventory, and Merchant Center accounts for Google Shopping.

Examples:

require 'google/apis/content_v2_1'

Content = Google::Apis::ContentV2_1 # Alias the module
service = Content::ShoppingContentService.new

See Also:

Instance Attribute Summary collapse

Attributes inherited from Google::Apis::Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Google::Apis::Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Google::Apis::Core::Logging

#logger

Constructor Details

#initializeShoppingContentService


50
51
52
53
# File 'generated/google/apis/content_v2_1/service.rb', line 50

def initialize
  super('https://www.googleapis.com/', 'content/v2.1/')
  @batch_path = 'batch/content/v2.1'
end

Instance Attribute Details

#keyString


39
40
41
# File 'generated/google/apis/content_v2_1/service.rb', line 39

def key
  @key
end

#quota_userString


44
45
46
# File 'generated/google/apis/content_v2_1/service.rb', line 44

def quota_user
  @quota_user
end

#user_ipString


48
49
50
# File 'generated/google/apis/content_v2_1/service.rb', line 48

def user_ip
  @user_ip
end

Instance Method Details

#acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersAcknowledgeResponse

Marks an order as acknowledged.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
# File 'generated/google/apis/content_v2_1/service.rb', line 1910

def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeRequest::Representation
  command.request_object = orders_acknowledge_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse

Sandbox only. Moves a test order from state "inProgress" to state " pendingShipment".

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
# File 'generated/google/apis/content_v2_1/service.rb', line 1950

def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
  command.response_representation = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#authinfo_account(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsAuthInfoResponse

Returns information about the authenticated user.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


75
76
77
78
79
80
81
82
83
# File 'generated/google/apis/content_v2_1/service.rb', line 75

def (fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'accounts/authinfo', options)
  command.response_representation = Google::Apis::ContentV2_1::AccountsAuthInfoResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountsAuthInfoResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelResponse

Cancels all line items in an order, making a full refund.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
# File 'generated/google/apis/content_v2_1/service.rb', line 1988

def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelRequest::Representation
  command.request_object = orders_cancel_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersCancelResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelLineItemResponse

Cancels a line item, making a full refund.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
# File 'generated/google/apis/content_v2_1/service.rb', line 2028

def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemRequest::Representation
  command.request_object = orders_cancel_line_item_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse

Sandbox only. Cancels a test order for customer-initiated cancellation.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
# File 'generated/google/apis/content_v2_1/service.rb', line 2068

def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest::Representation
  command.request_object = orders_cancel_test_order_by_customer_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse

Claims the website of a Merchant Center sub-account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


115
116
117
118
119
120
121
122
123
124
125
126
# File 'generated/google/apis/content_v2_1/service.rb', line 115

def (merchant_id, , overwrite: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', options)
  command.response_representation = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['overwrite'] = overwrite unless overwrite.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse

Creates a charge invoice for a shipment group, and triggers a charge capture for non-facilitated payment orders.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
# File 'generated/google/apis/content_v2_1/service.rb', line 1479

def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
  command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest::Representation
  command.request_object = orderinvoices_create_charge_invoice_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse

Creates a refund invoice for one or more shipment groups, and triggers a refund for non-facilitated payment orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
# File 'generated/google/apis/content_v2_1/service.rb', line 1522

def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
  command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest::Representation
  command.request_object = orderinvoices_create_refund_invoice_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse

Sandbox only. Creates a test order.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
# File 'generated/google/apis/content_v2_1/service.rb', line 2106

def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/testorders', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest::Representation
  command.request_object = orders_create_test_order_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse

Sandbox only. Creates a test return.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
# File 'generated/google/apis/content_v2_1/service.rb', line 2145

def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest::Representation
  command.request_object = orders_create_test_return_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsCustomBatchResponse

Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-) accounts in a single request.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


150
151
152
153
154
155
156
157
158
159
160
# File 'generated/google/apis/content_v2_1/service.rb', line 150

def (accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'accounts/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::AccountsCustomBatchRequest::Representation
  command.request_object = accounts_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::AccountsCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountsCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


417
418
419
420
421
422
423
424
425
426
427
# File 'generated/google/apis/content_v2_1/service.rb', line 417

def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'accountstatuses/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest::Representation
  command.request_object = accountstatuses_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse

Retrieves and updates tax settings of multiple accounts in a single request.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


537
538
539
540
541
542
543
544
545
546
547
# File 'generated/google/apis/content_v2_1/service.rb', line 537

def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'accounttax/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchRequest::Representation
  command.request_object = accounttax_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


688
689
690
691
692
693
694
695
696
697
698
# File 'generated/google/apis/content_v2_1/service.rb', line 688

def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'datafeeds/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest::Representation
  command.request_object = datafeeds_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


947
948
949
950
951
952
953
954
955
956
957
# File 'generated/google/apis/content_v2_1/service.rb', line 947

def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'datafeedstatuses/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest::Representation
  command.request_object = datafeedstatuses_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse

Retrieves and/or updates the LIA settings of multiple accounts in a single request.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
# File 'generated/google/apis/content_v2_1/service.rb', line 1070

def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'liasettings/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest::Representation
  command.request_object = liasettings_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosCustomBatchResponse

Batches multiple POS-related calls in a single request.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
# File 'generated/google/apis/content_v2_1/service.rb', line 2689

def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'pos/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::PosCustomBatchRequest::Representation
  command.request_object = pos_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::PosCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::PosCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductsCustomBatchResponse

Retrieves, inserts, and deletes multiple products in a single request.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
# File 'generated/google/apis/content_v2_1/service.rb', line 2951

def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'products/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::ProductsCustomBatchRequest::Representation
  command.request_object = products_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::ProductsCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::ProductsCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse

Gets the statuses of multiple products in a single request.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
# File 'generated/google/apis/content_v2_1/service.rb', line 3135

def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'productstatuses/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest::Representation
  command.request_object = productstatuses_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse

Retrieves and updates the shipping settings of multiple accounts in a single request.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
# File 'generated/google/apis/content_v2_1/service.rb', line 3255

def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, 'shippingsettings/batch', options)
  command.request_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest::Representation
  command.request_object = shippingsettings_custom_batch_request_object
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a Merchant Center sub-account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


189
190
191
192
193
194
195
196
197
198
# File 'generated/google/apis/content_v2_1/service.rb', line 189

def (merchant_id, , force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options)
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['force'] = force unless force.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a datafeed configuration from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


725
726
727
728
729
730
731
732
733
# File 'generated/google/apis/content_v2_1/service.rb', line 725

def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options)
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a store for the given merchant.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
# File 'generated/google/apis/content_v2_1/service.rb', line 2727

def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
  command.params['storeCode'] = store_code unless store_code.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#delete_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a product from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


2988
2989
2990
2991
2992
2993
2994
2995
2996
# File 'generated/google/apis/content_v2_1/service.rb', line 2988

def delete_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:delete, '{merchantId}/products/{productId}', options)
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['productId'] = product_id unless product_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsFetchNowResponse

Invokes a fetch for the datafeed in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


760
761
762
763
764
765
766
767
768
769
770
# File 'generated/google/apis/content_v2_1/service.rb', line 760

def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', options)
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account

Retrieves a Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


226
227
228
229
230
231
232
233
234
235
236
# File 'generated/google/apis/content_v2_1/service.rb', line 226

def (merchant_id, , fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/accounts/{accountId}', options)
  command.response_representation = Google::Apis::ContentV2_1::::Representation
  command.response_class = Google::Apis::ContentV2_1::
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountStatus

Retrieves the status of a Merchant Center account. Multi-client accounts can only call this method for sub-accounts.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


459
460
461
462
463
464
465
466
467
468
469
470
# File 'generated/google/apis/content_v2_1/service.rb', line 459

def get_accountstatus(merchant_id, , destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options)
  command.response_representation = Google::Apis::ContentV2_1::AccountStatus::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountStatus
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['destinations'] = destinations unless destinations.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountTax

Retrieves the tax settings of the account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


575
576
577
578
579
580
581
582
583
584
585
# File 'generated/google/apis/content_v2_1/service.rb', line 575

def get_accounttax(merchant_id, , fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options)
  command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountTax
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed

Retrieves a datafeed configuration from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


797
798
799
800
801
802
803
804
805
806
807
# File 'generated/google/apis/content_v2_1/service.rb', line 797

def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options)
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
  command.response_class = Google::Apis::ContentV2_1::Datafeed
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedStatus

Retrieves the status of a datafeed from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
# File 'generated/google/apis/content_v2_1/service.rb', line 994

def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
  command.response_representation = Google::Apis::ContentV2_1::DatafeedStatus::Representation
  command.response_class = Google::Apis::ContentV2_1::DatafeedStatus
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
  command.query['country'] = country unless country.nil?
  command.query['language'] = language unless language.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiaSettings

Retrieves the LIA settings of the account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'generated/google/apis/content_v2_1/service.rb', line 1108

def get_liasetting(merchant_id, , fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/liasettings/{accountId}', options)
  command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
  command.response_class = Google::Apis::ContentV2_1::LiaSettings
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Order

Retrieves an order from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
# File 'generated/google/apis/content_v2_1/service.rb', line 2184

def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
  command.response_representation = Google::Apis::ContentV2_1::Order::Representation
  command.response_class = Google::Apis::ContentV2_1::Order
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::MerchantOrderReturn

Retrieves an order return from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
# File 'generated/google/apis/content_v2_1/service.rb', line 1819

def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options)
  command.response_representation = Google::Apis::ContentV2_1::MerchantOrderReturn::Representation
  command.response_class = Google::Apis::ContentV2_1::MerchantOrderReturn
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['returnId'] = return_id unless return_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosStore

Retrieves information about the given store.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
# File 'generated/google/apis/content_v2_1/service.rb', line 2764

def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
  command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
  command.response_class = Google::Apis::ContentV2_1::PosStore
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
  command.params['storeCode'] = store_code unless store_code.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Product

Retrieves a product from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
# File 'generated/google/apis/content_v2_1/service.rb', line 3023

def get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/products/{productId}', options)
  command.response_representation = Google::Apis::ContentV2_1::Product::Representation
  command.response_class = Google::Apis::ContentV2_1::Product
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['productId'] = product_id unless product_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductStatus

Gets the status of a product from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
# File 'generated/google/apis/content_v2_1/service.rb', line 3175

def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
  command.response_representation = Google::Apis::ContentV2_1::ProductStatus::Representation
  command.response_class = Google::Apis::ContentV2_1::ProductStatus
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['productId'] = product_id unless product_id.nil?
  command.query['destinations'] = destinations unless destinations.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingSettings

Retrieves the shipping settings of the account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
# File 'generated/google/apis/content_v2_1/service.rb', line 3293

def get_shippingsetting(merchant_id, , fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
  command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
  command.response_class = Google::Apis::ContentV2_1::ShippingSettings
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse

Retrieves the list of accessible Google My Business accounts.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
# File 'generated/google/apis/content_v2_1/service.rb', line 1147

def getaccessiblegmbaccounts_liasetting(merchant_id, , fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options)
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse

Retrieves an order using merchant order id.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
# File 'generated/google/apis/content_v2_1/service.rb', line 2221

def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
  command.response_representation = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse

Retrieves supported carriers and carrier services for an account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
# File 'generated/google/apis/content_v2_1/service.rb', line 3327

def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/supportedCarriers', options)
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse

Retrieves supported holidays for an account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
# File 'generated/google/apis/content_v2_1/service.rb', line 3360

def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/supportedHolidays', options)
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse

Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
# File 'generated/google/apis/content_v2_1/service.rb', line 2261

def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
  command.response_representation = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['templateName'] = template_name unless template_name.nil?
  command.query['country'] = country unless country.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account

Creates a Merchant Center sub-account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


261
262
263
264
265
266
267
268
269
270
271
272
# File 'generated/google/apis/content_v2_1/service.rb', line 261

def (merchant_id,  = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/accounts', options)
  command.request_representation = Google::Apis::ContentV2_1::::Representation
  command.request_object = 
  command.response_representation = Google::Apis::ContentV2_1::::Representation
  command.response_class = Google::Apis::ContentV2_1::
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed

Registers a datafeed configuration with your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


833
834
835
836
837
838
839
840
841
842
843
844
# File 'generated/google/apis/content_v2_1/service.rb', line 833

def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/datafeeds', options)
  command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
  command.request_object = datafeed_object
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
  command.response_class = Google::Apis::ContentV2_1::Datafeed
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosStore

Creates a store for the given merchant.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
# File 'generated/google/apis/content_v2_1/service.rb', line 2802

def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options)
  command.request_representation = Google::Apis::ContentV2_1::PosStore::Representation
  command.request_object = pos_store_object
  command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
  command.response_class = Google::Apis::ContentV2_1::PosStore
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#insert_product(merchant_id, product_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Product

Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
# File 'generated/google/apis/content_v2_1/service.rb', line 3061

def insert_product(merchant_id, product_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/products', options)
  command.request_representation = Google::Apis::ContentV2_1::Product::Representation
  command.request_object = product_object
  command.response_representation = Google::Apis::ContentV2_1::Product::Representation
  command.response_class = Google::Apis::ContentV2_1::Product
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse

Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store).

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
# File 'generated/google/apis/content_v2_1/service.rb', line 2301

def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest::Representation
  command.request_object = orders_in_store_refund_line_item_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosInventoryResponse

Submit inventory for the given merchant.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
# File 'generated/google/apis/content_v2_1/service.rb', line 2841

def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options)
  command.request_representation = Google::Apis::ContentV2_1::PosInventoryRequest::Representation
  command.request_object = pos_inventory_request_object
  command.response_representation = Google::Apis::ContentV2_1::PosInventoryResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::PosInventoryResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

Performs an action on a link between a Merchant Center account and another account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


302
303
304
305
306
307
308
309
310
311
312
313
314
# File 'generated/google/apis/content_v2_1/service.rb', line 302

def (merchant_id, , accounts_link_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/accounts/{accountId}/link', options)
  command.request_representation = Google::Apis::ContentV2_1::AccountsLinkRequest::Representation
  command.request_object = accounts_link_request_object
  command.response_representation = Google::Apis::ContentV2_1::AccountsLinkResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountsLinkResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsListResponse

Lists the sub-accounts in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


342
343
344
345
346
347
348
349
350
351
352
353
# File 'generated/google/apis/content_v2_1/service.rb', line 342

def list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/accounts', options)
  command.response_representation = Google::Apis::ContentV2_1::AccountsListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountsListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountstatusesListResponse

Lists the statuses of the sub-accounts in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


502
503
504
505
506
507
508
509
510
511
512
513
514
# File 'generated/google/apis/content_v2_1/service.rb', line 502

def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/accountstatuses', options)
  command.response_representation = Google::Apis::ContentV2_1::AccountstatusesListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountstatusesListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['destinations'] = destinations unless destinations.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccounttaxListResponse

Lists the tax settings of the sub-accounts in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


613
614
615
616
617
618
619
620
621
622
623
624
# File 'generated/google/apis/content_v2_1/service.rb', line 613

def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/accounttax', options)
  command.response_representation = Google::Apis::ContentV2_1::AccounttaxListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::AccounttaxListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsListResponse

Lists the configurations for datafeeds in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


873
874
875
876
877
878
879
880
881
882
883
884
# File 'generated/google/apis/content_v2_1/service.rb', line 873

def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/datafeeds', options)
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::DatafeedsListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedstatusesListResponse

Lists the statuses of the datafeeds in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'generated/google/apis/content_v2_1/service.rb', line 1035

def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
  command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsListResponse

Lists the LIA settings of the sub-accounts in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
# File 'generated/google/apis/content_v2_1/service.rb', line 1185

def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/liasettings', options)
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::LiasettingsListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_orderreturns(merchant_id, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsListResponse

Lists order returns in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
# File 'generated/google/apis/content_v2_1/service.rb', line 1868

def list_orderreturns(merchant_id, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/orderreturns', options)
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderreturnsListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['createdEndDate'] = created_end_date unless created_end_date.nil?
  command.query['createdStartDate'] = created_start_date unless created_start_date.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersListResponse

Lists the orders in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
# File 'generated/google/apis/content_v2_1/service.rb', line 2369

def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/orders', options)
  command.response_representation = Google::Apis::ContentV2_1::OrdersListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['acknowledged'] = acknowledged unless acknowledged.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['orderBy'] = order_by unless order_by.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['placedDateEnd'] = placed_date_end unless placed_date_end.nil?
  command.query['placedDateStart'] = placed_date_start unless placed_date_start.nil?
  command.query['statuses'] = statuses unless statuses.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosListResponse

Lists the stores of the target merchant.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
# File 'generated/google/apis/content_v2_1/service.rb', line 2879

def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options)
  command.response_representation = Google::Apis::ContentV2_1::PosListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::PosListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductsListResponse

Lists the products in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
# File 'generated/google/apis/content_v2_1/service.rb', line 3101

def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/products', options)
  command.response_representation = Google::Apis::ContentV2_1::ProductsListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::ProductsListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductstatusesListResponse

Lists the statuses of the products in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
# File 'generated/google/apis/content_v2_1/service.rb', line 3219

def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/productstatuses', options)
  command.response_representation = Google::Apis::ContentV2_1::ProductstatusesListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::ProductstatusesListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['destinations'] = destinations unless destinations.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsListResponse

Lists the shipping settings of the sub-accounts in your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
# File 'generated/google/apis/content_v2_1/service.rb', line 3399

def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/shippingsettings', options)
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsListResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsListResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#listdisbursements_orderreport(merchant_id, disbursement_start_date, disbursement_end_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse

Retrieves a report for disbursements from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
# File 'generated/google/apis/content_v2_1/service.rb', line 1728

def listdisbursements_orderreport(merchant_id, disbursement_start_date, disbursement_end_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/orderreports/disbursements', options)
  command.response_representation = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.query['disbursementEndDate'] = disbursement_end_date unless disbursement_end_date.nil?
  command.query['disbursementStartDate'] = disbursement_start_date unless disbursement_start_date.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#listposdataproviders_liasetting(fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse

Retrieves the list of POS data providers that have active settings for the all eiligible countries.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1219
1220
1221
1222
1223
1224
1225
1226
1227
# File 'generated/google/apis/content_v2_1/service.rb', line 1219

def listposdataproviders_liasetting(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, 'liasettings/posdataproviders', options)
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#listtransactions_orderreport(merchant_id, disbursement_id, transaction_start_date, max_results: nil, page_token: nil, transaction_end_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse

Retrieves a list of transactions for a disbursement from your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
# File 'generated/google/apis/content_v2_1/service.rb', line 1778

def listtransactions_orderreport(merchant_id, disbursement_id, transaction_start_date, max_results: nil, page_token: nil, transaction_end_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
  command.response_representation = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['disbursementId'] = disbursement_id unless disbursement_id.nil?
  command.query['maxResults'] = max_results unless max_results.nil?
  command.query['pageToken'] = page_token unless page_token.nil?
  command.query['transactionEndDate'] = transaction_end_date unless transaction_end_date.nil?
  command.query['transactionStartDate'] = transaction_start_date unless transaction_start_date.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse

Notify about successfully authorizing user's payment method for a given amount.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
# File 'generated/google/apis/content_v2_1/service.rb', line 1562

def notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options)
  command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedRequest::Representation
  command.request_object = orderpayments_notify_auth_approved_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse

Notify about failure to authorize user's payment method.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
# File 'generated/google/apis/content_v2_1/service.rb', line 1602

def notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options)
  command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedRequest::Representation
  command.request_object = orderpayments_notify_auth_declined_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse

Notify about charge on user's selected payments method.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
# File 'generated/google/apis/content_v2_1/service.rb', line 1642

def notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options)
  command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeRequest::Representation
  command.request_object = orderpayments_notify_charge_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse

Notify about refund on user's selected payments method.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
# File 'generated/google/apis/content_v2_1/service.rb', line 1682

def notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options)
  command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundRequest::Representation
  command.request_object = orderpayments_notify_refund_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse

Rejects return on an line item.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
# File 'generated/google/apis/content_v2_1/service.rb', line 2413

def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest::Representation
  command.request_object = orders_reject_return_line_item_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse

Requests access to a specified Google My Business account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
# File 'generated/google/apis/content_v2_1/service.rb', line 1257

def requestgmbaccess_liasetting(merchant_id, , gmb_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['gmbEmail'] = gmb_email unless gmb_email.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse

Requests inventory validation for the specified country.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
# File 'generated/google/apis/content_v2_1/service.rb', line 1299

def requestinventoryverification_liasetting(merchant_id, , country, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options)
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.params['country'] = country unless country.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse

Returns and refunds a line item. Note that this method can only be called on fully shipped orders.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
# File 'generated/google/apis/content_v2_1/service.rb', line 2454

def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest::Representation
  command.request_object = orders_return_refund_line_item_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosSaleResponse

Submit a sale event for the given merchant.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
# File 'generated/google/apis/content_v2_1/service.rb', line 2916

def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options)
  command.request_representation = Google::Apis::ContentV2_1::PosSaleRequest::Representation
  command.request_object = pos_sale_request_object
  command.response_representation = Google::Apis::ContentV2_1::PosSaleResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::PosSaleResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email, contact_name, country, language, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse

Sets the inventory verification contract for the specified country.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
# File 'generated/google/apis/content_v2_1/service.rb', line 1347

def setinventoryverificationcontact_liasetting(merchant_id, , contact_email, contact_name, country, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['contactEmail'] = contact_email unless contact_email.nil?
  command.query['contactName'] = contact_name unless contact_name.nil?
  command.query['country'] = country unless country.nil?
  command.query['language'] = language unless language.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse

Sets (overrides) merchant provided annotations on the line item.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
# File 'generated/google/apis/content_v2_1/service.rb', line 2494

def (merchant_id, order_id,  = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest::Representation
  command.request_object = 
  command.response_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse

Sets the POS data provider for the specified country.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
# File 'generated/google/apis/content_v2_1/service.rb', line 1396

def setposdataprovider_liasetting(merchant_id, , country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options)
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['country'] = country unless country.nil?
  command.query['posDataProviderId'] = pos_data_provider_id unless pos_data_provider_id.nil?
  command.query['posExternalAccountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersShipLineItemsResponse

Marks line item(s) as shipped.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
# File 'generated/google/apis/content_v2_1/service.rb', line 2534

def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsRequest::Representation
  command.request_object = orders_ship_line_items_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account

Updates a Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


382
383
384
385
386
387
388
389
390
391
392
393
394
# File 'generated/google/apis/content_v2_1/service.rb', line 382

def (merchant_id, ,  = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, '{merchantId}/accounts/{accountId}', options)
  command.request_representation = Google::Apis::ContentV2_1::::Representation
  command.request_object = 
  command.response_representation = Google::Apis::ContentV2_1::::Representation
  command.response_class = Google::Apis::ContentV2_1::
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountTax

Updates the tax settings of the account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


653
654
655
656
657
658
659
660
661
662
663
664
665
# File 'generated/google/apis/content_v2_1/service.rb', line 653

def update_accounttax(merchant_id, ,  = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options)
  command.request_representation = Google::Apis::ContentV2_1::AccountTax::Representation
  command.request_object = 
  command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
  command.response_class = Google::Apis::ContentV2_1::AccountTax
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed

Updates a datafeed configuration of your Merchant Center account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


912
913
914
915
916
917
918
919
920
921
922
923
924
# File 'generated/google/apis/content_v2_1/service.rb', line 912

def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options)
  command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
  command.request_object = datafeed_object
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
  command.response_class = Google::Apis::ContentV2_1::Datafeed
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiaSettings

Updates the LIA settings of the account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
# File 'generated/google/apis/content_v2_1/service.rb', line 1438

def update_liasetting(merchant_id, , lia_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, '{merchantId}/liasettings/{accountId}', options)
  command.request_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
  command.request_object = lia_settings_object
  command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
  command.response_class = Google::Apis::ContentV2_1::LiaSettings
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingSettings

Updates the shipping settings of the account.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
# File 'generated/google/apis/content_v2_1/service.rb', line 3439

def update_shippingsetting(merchant_id, , shipping_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
  command.request_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
  command.request_object = shipping_settings_object
  command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
  command.response_class = Google::Apis::ContentV2_1::ShippingSettings
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['accountId'] =  unless .nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse

Updates ship by and delivery by dates for a line item.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
# File 'generated/google/apis/content_v2_1/service.rb', line 2574

def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest::Representation
  command.request_object = orders_update_line_item_shipping_details_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse

Updates the merchant order ID for a given order.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
# File 'generated/google/apis/content_v2_1/service.rb', line 2614

def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest::Representation
  command.request_object = orders_update_merchant_order_id_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse

Updates a shipment's status, carrier, and/or tracking ID.

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Raises:


2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
# File 'generated/google/apis/content_v2_1/service.rb', line 2654

def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command =  make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest::Representation
  command.request_object = orders_update_shipment_request_object
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse::Representation
  command.response_class = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
  command.params['orderId'] = order_id unless order_id.nil?
  command.query['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end