Class: Google::Apis::ContentV2_1::ShoppingContentService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::ContentV2_1::ShoppingContentService
- Defined in:
- lib/google/apis/content_v2_1/service.rb
Overview
Content API for Shopping
Manage your product listings and accounts for Google Shopping
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersAcknowledgeResponse
Marks an order as acknowledged.
-
#acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse
Acks an order return in your Merchant Center account.
-
#activate_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, activate_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Reactivates the BoG program in your Merchant Center account.
-
#advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse
Sandbox only.
-
#authinfo_account(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsAuthInfoResponse
Returns information about the authenticated user.
-
#cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelResponse
Cancels all line items in an order, making a full refund.
-
#cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelLineItemResponse
Cancels a line item, making a full refund.
-
#canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse
Sandbox only.
-
#capture_order(merchant_id, order_id, capture_order_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::CaptureOrderResponse
Capture funds from the customer for the current order total.
-
#claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse
Claims the website of a Merchant Center sub-account.
-
#create_account_credential(account_id, account_credentials_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountCredentials
Uploads credentials for the Merchant Center account.
-
#create_account_label(account_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountLabel
Creates a new label, not assigned to any account.
-
#create_account_returncarrier(account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountReturnCarrier
Links return carrier to a merchant account.
-
#create_collection(merchant_id, collection_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Collection
Uploads a collection to your Merchant Center account.
-
#create_orderreturn_label(merchant_id, return_id, return_shipping_label_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnShippingLabel
Links a return shipping label to a return id.
-
#create_ordertrackingsignal(merchant_id, order_tracking_signal_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderTrackingSignal
Creates new order tracking signal.
-
#create_promotion(merchant_id, promotion_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Promotion
Inserts a promotion for your Merchant Center account.
-
#create_region(merchant_id, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Region
Creates a region definition in your Merchant Center account.
-
#create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RepricingRule
Creates a repricing rule for your Merchant Center account.
-
#create_returnpolicyonline(merchant_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnline
Creates a new return policy.
-
#createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse
Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
-
#createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse
Create return in your Merchant Center account.
-
#createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: 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 orderinvoice enabled orders.
-
#createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse
Sandbox only.
-
#createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse
Sandbox only.
-
#custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsCustomBatchResponse
Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-) accounts in a single request.
-
#custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse
Retrieves multiple Merchant Center account statuses in a single request.
-
#custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse
Retrieves and updates tax settings of multiple accounts in a single request.
-
#custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse
Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
-
#custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse
Gets multiple Merchant Center datafeed statuses in a single request.
-
#custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse
Retrieves and/or updates the LIA settings of multiple accounts in a single request.
-
#custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse
Updates local inventory for multiple products or stores in a single request.
-
#custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosCustomBatchResponse
Batches multiple POS-related calls in a single request.
-
#custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductsCustomBatchResponse
Retrieves, inserts, and deletes multiple products in a single request.
-
#custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse
Gets the statuses of multiple products in a single request.
-
#custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse
Updates regional inventory for multiple products or regions in a single request.
-
#custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse
Batches multiple return address related calls in a single request.
-
#custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse
Batches multiple return policy related calls in a single request.
-
#custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse
Retrieves and updates the shipping settings of multiple accounts in a single request.
-
#delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a Merchant Center sub-account.
-
#delete_account_label(account_id, label_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a label and removes it from all accounts to which it was assigned.
-
#delete_account_returncarrier(account_id, carrier_account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Delete a return carrier in the merchant account.
-
#delete_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a collection from your Merchant Center account.
-
#delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a datafeed configuration from your Merchant Center account.
-
#delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a store for the given merchant.
-
#delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a product from your Merchant Center account.
-
#delete_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a region definition from your Merchant Center account.
-
#delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a repricing rule in your Merchant Center account.
-
#delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a return address for the given Merchant Center account.
-
#delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a return policy for the given Merchant Center account.
-
#delete_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes an existing return policy.
-
#fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsFetchNowResponse
Invokes a fetch for the datafeed in your Merchant Center account.
-
#get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account
Retrieves a Merchant Center account.
-
#get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountStatus
Retrieves the status of a Merchant Center account.
-
#get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountTax
Retrieves the tax settings of the account.
-
#get_buyongoogleprogram(merchant_id, region_code, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
Retrieves a status of the BoG program for your Merchant Center account.
-
#get_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Collection
Retrieves a collection from your Merchant Center account.
-
#get_collectionstatus(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::CollectionStatus
Gets the status of a collection from your Merchant Center account.
-
#get_css(css_group_id, css_domain_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Css
Retrieves a single CSS domain by ID.
-
#get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed
Retrieves a datafeed configuration from your Merchant Center account.
-
#get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedStatus
Retrieves the status of a datafeed from your Merchant Center account.
-
#get_freelistingsprogram(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::FreeListingsProgramStatus
Retrieves the status and review eligibility for the free listing program.
-
#get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiaSettings
Retrieves the LIA settings of the account.
-
#get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Order
Retrieves an order from your Merchant Center account.
-
#get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::MerchantOrderReturn
Retrieves an order return from your Merchant Center account.
-
#get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosStore
Retrieves information about the given store.
-
#get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Product
Retrieves a product from your Merchant Center account.
-
#get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductStatus
Gets the status of a product from your Merchant Center account.
-
#get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PubsubNotificationSettings
Retrieves a Merchant Center account's pubsub notification settings.
-
#get_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Region
Retrieves a region defined in your Merchant Center account.
-
#get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RepricingRule
Retrieves a repricing rule from your Merchant Center account.
-
#get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnAddress
Gets a return address of the Merchant Center account.
-
#get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicy
Gets a return policy of the Merchant Center account.
-
#get_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnline
Gets an existing return policy.
-
#get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::SettlementReport
Retrieves a settlement report from your Merchant Center account.
-
#get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingSettings
Retrieves the shipping settings of the account.
-
#get_shoppingadsprogram(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShoppingAdsProgramStatus
Retrieves the status and review eligibility for the Shopping Ads program.
-
#getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse
Retrieves the list of accessible Google My Business accounts.
-
#getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse
Retrieves an order using merchant order ID.
-
#getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse
Retrieves supported carriers and carrier services for an account.
-
#getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse
Retrieves supported holidays for an account.
-
#getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse
Retrieves supported pickup services for an account.
-
#gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse
Sandbox only.
-
#initialize ⇒ ShoppingContentService
constructor
A new instance of ShoppingContentService.
-
#insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account
Creates a Merchant Center sub-account.
-
#insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed
Registers a datafeed configuration with your Merchant Center account.
-
#insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LocalInventory
Updates the local inventory of a product in your Merchant Center account.
-
#insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosStore
Creates a store for the given merchant.
-
#insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Product
Uploads a product to your Merchant Center account.
-
#insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RegionalInventory
Update the regional inventory of a product in your Merchant Center account.
-
#insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnAddress
Inserts a return address for the Merchant Center account.
-
#insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicy
Inserts a return policy for the Merchant Center account.
-
#instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse
Deprecated.
-
#inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosInventoryResponse
Submit inventory for the given merchant.
-
#link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsLinkResponse
Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.
-
#list_account_labels(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListAccountLabelsResponse
Lists the labels assigned to an account.
-
#list_account_returncarriers(account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse
Lists available return carriers in the merchant account.
-
#list_accounts(merchant_id, label: nil, max_results: nil, name: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsListResponse
Lists the sub-accounts in your Merchant Center account.
-
#list_accountstatuses(merchant_id, destinations: nil, max_results: nil, name: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountstatusesListResponse
Lists the statuses of the sub-accounts in your Merchant Center account.
-
#list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccounttaxListResponse
Lists the tax settings of the sub-accounts in your Merchant Center account.
-
#list_collections(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListCollectionsResponse
Lists the collections in your Merchant Center account.
-
#list_collectionstatuses(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListCollectionStatusesResponse
Lists the statuses of the collections in your Merchant Center account.
-
#list_csses(css_group_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListCssesResponse
Lists CSS domains affiliated with a CSS group.
-
#list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsListResponse
Lists the configurations for datafeeds in your Merchant Center account.
-
#list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedstatusesListResponse
Lists the statuses of the datafeeds in your Merchant Center account.
-
#list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsListResponse
Lists the LIA settings of the sub-accounts in your Merchant Center account.
-
#list_orderreturns(merchant_id, acknowledged: nil, created_end_date: nil, created_start_date: nil, google_order_ids: nil, max_results: nil, order_by: nil, page_token: nil, shipment_states: nil, shipment_status: nil, shipment_tracking_numbers: nil, shipment_types: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsListResponse
Lists order returns in your Merchant Center account.
-
#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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersListResponse
Lists the orders in your Merchant Center account.
-
#list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosListResponse
Lists the stores of the target merchant.
-
#list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductsListResponse
Lists the products in your Merchant Center account.
-
#list_productstatus_repricingreports(merchant_id, product_id, end_date: nil, page_size: nil, page_token: nil, rule_id: nil, start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListRepricingProductReportsResponse
Lists the metrics report for a given Repricing product.
-
#list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductstatusesListResponse
Lists the statuses of the products in your Merchant Center account.
-
#list_regions(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListRegionsResponse
Lists the regions in your Merchant Center account.
-
#list_repricingrule_repricingreports(merchant_id, rule_id, end_date: nil, page_size: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse
Lists the metrics report for a given Repricing rule.
-
#list_repricingrules(merchant_id, country_code: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListRepricingRulesResponse
Lists the repricing rules in your Merchant Center account.
-
#list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnaddressListResponse
Lists the return addresses of the Merchant Center account.
-
#list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnpolicyListResponse
Lists the return policies of the Merchant Center account.
-
#list_returnpolicyonlines(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse
Lists all existing return policies.
-
#list_settlementreports(merchant_id, max_results: nil, page_token: nil, transfer_end_date: nil, transfer_start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::SettlementreportsListResponse
Retrieves a list of settlement reports from your Merchant Center account.
-
#list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::SettlementtransactionsListResponse
Retrieves a list of transactions for the settlement.
-
#list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsListResponse
Lists the shipping settings of the sub-accounts in your Merchant Center account.
-
#listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse
Retrieves a report for disbursements from your Merchant Center account.
-
#listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsListLinksResponse
Returns the list of accounts linked to your Merchant Center account.
-
#listposdataproviders_liasetting(fields: nil, quota_user: 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.
-
#listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse
Retrieves a list of transactions for a disbursement from your Merchant Center account.
-
#onboard_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, onboard_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Onboards the BoG program in your Merchant Center account.
-
#patch_account_label(account_id, label_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountLabel
Updates a label.
-
#patch_account_returncarrier(account_id, carrier_account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountReturnCarrier
Updates a return carrier in the merchant account.
-
#patch_region(merchant_id, region_id, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Region
Updates a region definition in your Merchant Center account.
-
#patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RepricingRule
Updates a repricing rule in your Merchant Center account.
-
#patch_returnpolicyonline(merchant_id, return_policy_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnline
Updates an existing return policy.
-
#pause_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, pause_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Pauses the BoG program in your Merchant Center account.
-
#process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsProcessResponse
Processes return in your Merchant Center account.
-
#refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersRefundItemResponse
Issues a partial or total refund for items and shipment.
-
#refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersRefundOrderResponse
Issues a partial or total refund for an order.
-
#rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse
Rejects return on an line item.
-
#requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse
Requests access to a specified Google My Business account.
-
#requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse
Requests inventory validation for the specified country.
-
#requestphoneverification_account(merchant_id, account_id, request_phone_verification_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RequestPhoneVerificationResponse
Request verification code to start phone verification.
-
#requestreview_buyongoogleprogram(merchant_id, region_code, request_review_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Requests review and then activates the BoG program in your Merchant Center account for the first time.
-
#requestreview_freelistingsprogram(merchant_id, request_review_free_listings_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Requests a review for Free Listings program in the provided region.
-
#requestreview_shoppingadsprogram(merchant_id, request_review_shopping_ads_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Requests a review for Shopping Ads program in the provided country.
-
#returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse
Returns and refunds a line item.
-
#sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosSaleResponse
Submit a sale event for the given merchant.
-
#search_report(merchant_id, search_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::SearchResponse
Retrieves merchant performance mertrics matching the search query and optionally segmented by selected dimensions.
-
#setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse
Sets the inventory verification contract for the specified country.
-
#setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse
Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs.
-
#setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse
Sets the POS data provider for the specified country.
-
#shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersShipLineItemsResponse
Marks line item(s) as shipped.
-
#update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account
Updates a Merchant Center account.
-
#update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountTax
Updates the tax settings of the account.
-
#update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed
Updates a datafeed configuration of your Merchant Center account.
-
#update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiaSettings
Updates the LIA settings of the account.
-
#update_product(merchant_id, product_id, product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Product
Updates an existing product in your Merchant Center account.
-
#update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PubsubNotificationSettings
Register a Merchant Center account for pubsub notifications.
-
#update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingSettings
Updates the shipping settings of the account.
-
#updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse
Updates labels that are assigned to the Merchant Center account by CSS user.
-
#updatelabels_css(css_group_id, css_domain_id, label_ids_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Css
Updates labels that are assigned to a CSS domain by its CSS group.
-
#updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse
Updates ship by and delivery by dates for a line item.
-
#updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse
Updates the merchant order ID for a given order.
-
#updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse
Updates a shipment's status, carrier, and/or tracking ID.
-
#verifyphonenumber_account(merchant_id, account_id, verify_phone_number_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::VerifyPhoneNumberResponse
Validates verification code to verify phone number for the account.
Constructor Details
#initialize ⇒ ShoppingContentService
Returns a new instance of ShoppingContentService.
45 46 47 48 49 50 |
# File 'lib/google/apis/content_v2_1/service.rb', line 45 def initialize super('https://shoppingcontent.googleapis.com/', 'content/v2.1/', client_name: 'google-apis-content_v2_1', client_version: Google::Apis::ContentV2_1::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'lib/google/apis/content_v2_1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
43 44 45 |
# File 'lib/google/apis/content_v2_1/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersAcknowledgeResponse
Marks an order as acknowledged.
2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2940 def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', ) 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? execute_or_queue_command(command, &block) end |
#acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse
Acks an order return in your Merchant Center account.
2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2669 def acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/acknowledge', ) command.request_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeRequest::Representation command.request_object = orderreturns_acknowledge_request_object command.response_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse 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? execute_or_queue_command(command, &block) end |
#activate_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, activate_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Reactivates the BoG program in your Merchant Center account. Moves the program to the active state when allowed, e.g. when paused. Important: This method is only whitelisted for selected merchants.
1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1128 def activate_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, activate_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/activate', ) command.request_representation = Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest::Representation command.request_object = activate_buy_on_google_program_request_object command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['regionCode'] = region_code unless region_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse
Sandbox only. Moves a test order from state "inProgress" to state "
pendingShipment".
2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2977 def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', ) 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? execute_or_queue_command(command, &block) end |
#authinfo_account(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsAuthInfoResponse
Returns information about the authenticated user.
70 71 72 73 74 75 76 77 |
# File 'lib/google/apis/content_v2_1/service.rb', line 70 def authinfo_account(fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/authinfo', ) 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? execute_or_queue_command(command, &block) end |
#cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelResponse
Cancels all line items in an order, making a full refund.
3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3012 def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', ) 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelLineItemResponse
Cancels a line item, making a full refund.
3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3049 def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', ) 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse
Sandbox only. Cancels a test order for customer-initiated cancellation.
3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3086 def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', ) 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? execute_or_queue_command(command, &block) end |
#capture_order(merchant_id, order_id, capture_order_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::CaptureOrderResponse
Capture funds from the customer for the current order total. This method should be called after the merchant verifies that they are able and ready to start shipping the order. This method blocks until a response is received from the payment processsor. If this method succeeds, the merchant is guaranteed to receive funds for the order after shipment. If the request fails, it can be retried or the order may be cancelled. This method cannot be called after the entire order is already shipped.
3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3129 def capture_order(merchant_id, order_id, capture_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/captureOrder', ) command.request_representation = Google::Apis::ContentV2_1::CaptureOrderRequest::Representation command.request_object = capture_order_request_object command.response_representation = Google::Apis::ContentV2_1::CaptureOrderResponse::Representation command.response_class = Google::Apis::ContentV2_1::CaptureOrderResponse 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? execute_or_queue_command(command, &block) end |
#claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse
Claims the website of a Merchant Center sub-account.
107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/google/apis/content_v2_1/service.rb', line 107 def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', ) 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'] = account_id unless account_id.nil? command.query['overwrite'] = overwrite unless overwrite.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_account_credential(account_id, account_credentials_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountCredentials
Uploads credentials for the Merchant Center account. If credentials already exist for this Merchant Center account and purpose, this method updates them.
560 561 562 563 564 565 566 567 568 569 570 |
# File 'lib/google/apis/content_v2_1/service.rb', line 560 def create_account_credential(account_id, account_credentials_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/{accountId}/credentials', ) command.request_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation command.request_object = account_credentials_object command.response_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation command.response_class = Google::Apis::ContentV2_1::AccountCredentials command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_account_label(account_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountLabel
Creates a new label, not assigned to any account.
593 594 595 596 597 598 599 600 601 602 603 |
# File 'lib/google/apis/content_v2_1/service.rb', line 593 def create_account_label(account_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/{accountId}/labels', ) command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation command.request_object = account_label_object command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation command.response_class = Google::Apis::ContentV2_1::AccountLabel command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_account_returncarrier(account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountReturnCarrier
Links return carrier to a merchant account.
735 736 737 738 739 740 741 742 743 744 745 |
# File 'lib/google/apis/content_v2_1/service.rb', line 735 def create_account_returncarrier(account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/{accountId}/returncarrier', ) command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation command.request_object = account_return_carrier_object command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation command.response_class = Google::Apis::ContentV2_1::AccountReturnCarrier command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_collection(merchant_id, collection_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Collection
Uploads a collection to your Merchant Center account. If a collection with the same collectionId already exists, this method updates that entry. In each update, the collection is completely replaced by the fields in the body of the update request.
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1311 def create_collection(merchant_id, collection_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/collections', ) command.request_representation = Google::Apis::ContentV2_1::Collection::Representation command.request_object = collection_object command.response_representation = Google::Apis::ContentV2_1::Collection::Representation command.response_class = Google::Apis::ContentV2_1::Collection 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? execute_or_queue_command(command, &block) end |
#create_orderreturn_label(merchant_id, return_id, return_shipping_label_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnShippingLabel
Links a return shipping label to a return id. You can only create one return label per return id. Since the label is sent to the buyer, the linked return label cannot be updated or deleted. If you try to create multiple return shipping labels for a single return id, every create request except the first will fail.
2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2903 def create_orderreturn_label(merchant_id, return_id, return_shipping_label_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/labels', ) command.request_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation command.request_object = return_shipping_label_object command.response_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation command.response_class = Google::Apis::ContentV2_1::ReturnShippingLabel 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? execute_or_queue_command(command, &block) end |
#create_ordertrackingsignal(merchant_id, order_tracking_signal_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderTrackingSignal
Creates new order tracking signal.
3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3788 def create_ordertrackingsignal(merchant_id, order_tracking_signal_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/ordertrackingsignals', ) command.request_representation = Google::Apis::ContentV2_1::OrderTrackingSignal::Representation command.request_object = order_tracking_signal_object command.response_representation = Google::Apis::ContentV2_1::OrderTrackingSignal::Representation command.response_class = Google::Apis::ContentV2_1::OrderTrackingSignal 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? execute_or_queue_command(command, &block) end |
#create_promotion(merchant_id, promotion_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Promotion
Inserts a promotion for your Merchant Center account. If the promotion already exists, then it will update the promotion instead.
4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4458 def create_promotion(merchant_id, promotion_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/promotions', ) command.request_representation = Google::Apis::ContentV2_1::Promotion::Representation command.request_object = promotion_object command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation command.response_class = Google::Apis::ContentV2_1::Promotion 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? execute_or_queue_command(command, &block) end |
#create_region(merchant_id, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Region
Creates a region definition in your Merchant Center account.
4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4627 def create_region(merchant_id, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/regions', ) command.request_representation = Google::Apis::ContentV2_1::Region::Representation command.request_object = region_object command.response_representation = Google::Apis::ContentV2_1::Region::Representation command.response_class = Google::Apis::ContentV2_1::Region command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['regionId'] = region_id unless region_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RepricingRule
Creates a repricing rule for your Merchant Center account.
4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4842 def create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/repricingrules', ) command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation command.request_object = repricing_rule_object command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation command.response_class = Google::Apis::ContentV2_1::RepricingRule command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_returnpolicyonline(merchant_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnline
Creates a new return policy.
5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5407 def create_returnpolicyonline(merchant_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/returnpolicyonline', ) command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation command.request_object = return_policy_online_object command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse
Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2500 def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', ) 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? execute_or_queue_command(command, &block) end |
#createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse
Create return in your Merchant Center account.
2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2704 def createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orderreturns/createOrderReturn', ) command.request_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnRequest::Representation command.request_object = orderreturns_create_order_return_request_object command.response_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse
Creates a refund invoice for one or more shipment groups, and triggers a
refund for orderinvoice enabled 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.
2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2540 def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', ) 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? execute_or_queue_command(command, &block) end |
#createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse
Sandbox only. Creates a test order.
3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3164 def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/testorders', ) 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse
Sandbox only. Creates a test return.
3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3200 def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsCustomBatchResponse
Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-) accounts in a single request.
139 140 141 142 143 144 145 146 147 148 |
# File 'lib/google/apis/content_v2_1/service.rb', line 139 def custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounts/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse
Retrieves multiple Merchant Center account statuses in a single request.
866 867 868 869 870 871 872 873 874 875 |
# File 'lib/google/apis/content_v2_1/service.rb', line 866 def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accountstatuses/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse
Retrieves and updates tax settings of multiple accounts in a single request.
981 982 983 984 985 986 987 988 989 990 |
# File 'lib/google/apis/content_v2_1/service.rb', line 981 def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'accounttax/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse
Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1636 def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'datafeeds/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse
Gets multiple Merchant Center datafeed statuses in a single request.
1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1877 def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'datafeedstatuses/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse
Retrieves and/or updates the LIA settings of multiple accounts in a single request.
2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2053 def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'liasettings/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse
Updates local inventory for multiple products or stores in a single request.
2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2427 def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'localinventory/batch', ) command.request_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchRequest::Representation command.request_object = localinventory_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosCustomBatchResponse
Batches multiple POS-related calls in a single request.
3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3819 def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'pos/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductsCustomBatchResponse
Retrieves, inserts, and deletes multiple products in a single request.
4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4060 def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'products/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse
Gets the statuses of multiple products in a single request.
4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4284 def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'productstatuses/batch', ) 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? execute_or_queue_command(command, &block) end |
#custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse
Updates regional inventory for multiple products or regions in a single request.
4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4554 def custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'regionalinventory/batch', ) command.request_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequest::Representation command.request_object = regionalinventory_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse
Batches multiple return address related calls in a single request.
5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5080 def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'returnaddress/batch', ) command.request_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest::Representation command.request_object = returnaddress_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse
Batches multiple return policy related calls in a single request.
5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5247 def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'returnpolicy/batch', ) command.request_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequest::Representation command.request_object = returnpolicy_custom_batch_request_object command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse::Representation command.response_class = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse
Retrieves and updates the shipping settings of multiple accounts in a single request.
5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5697 def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'shippingsettings/batch', ) 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? execute_or_queue_command(command, &block) end |
#delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a Merchant Center sub-account.
175 176 177 178 179 180 181 182 183 |
# File 'lib/google/apis/content_v2_1/service.rb', line 175 def delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['force'] = force unless force.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_account_label(account_id, label_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a label and removes it from all accounts to which it was assigned.
627 628 629 630 631 632 633 634 |
# File 'lib/google/apis/content_v2_1/service.rb', line 627 def delete_account_label(account_id, label_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'accounts/{accountId}/labels/{labelId}', ) command.params['accountId'] = account_id unless account_id.nil? command.params['labelId'] = label_id unless label_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_account_returncarrier(account_id, carrier_account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Delete a return carrier in the merchant account.
770 771 772 773 774 775 776 777 |
# File 'lib/google/apis/content_v2_1/service.rb', line 770 def delete_account_returncarrier(account_id, carrier_account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'accounts/{accountId}/returncarrier/{carrierAccountId}', ) command.params['accountId'] = account_id unless account_id.nil? command.params['carrierAccountId'] = carrier_account_id unless carrier_account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a collection from your Merchant Center account.
1347 1348 1349 1350 1351 1352 1353 1354 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1347 def delete_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/collections/{collectionId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['collectionId'] = collection_id unless collection_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a datafeed configuration from your Merchant Center account.
1670 1671 1672 1673 1674 1675 1676 1677 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1670 def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', ) 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? execute_or_queue_command(command, &block) end |
#delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a store for the given merchant.
3854 3855 3856 3857 3858 3859 3860 3861 3862 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3854 def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', ) 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? execute_or_queue_command(command, &block) end |
#delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a product from your Merchant Center account.
4097 4098 4099 4100 4101 4102 4103 4104 4105 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4097 def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/products/{productId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['feedId'] = feed_id unless feed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a region definition from your Merchant Center account.
4662 4663 4664 4665 4666 4667 4668 4669 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4662 def delete_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/regions/{regionId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['regionId'] = region_id unless region_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a repricing rule in your Merchant Center account.
4877 4878 4879 4880 4881 4882 4883 4884 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4877 def delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/repricingrules/{ruleId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a return address for the given Merchant Center account.
5113 5114 5115 5116 5117 5118 5119 5120 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5113 def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/returnaddress/{returnAddressId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnAddressId'] = return_address_id unless return_address_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a return policy for the given Merchant Center account.
5280 5281 5282 5283 5284 5285 5286 5287 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5280 def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/returnpolicy/{returnPolicyId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes an existing return policy.
5442 5443 5444 5445 5446 5447 5448 5449 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5442 def delete_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, '{merchantId}/returnpolicyonline/{returnPolicyId}', ) command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsFetchNowResponse
Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.
1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1704 def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', ) 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? execute_or_queue_command(command, &block) end |
#get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account
Retrieves a Merchant Center account.
212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/google/apis/content_v2_1/service.rb', line 212 def get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', ) command.response_representation = Google::Apis::ContentV2_1::Account::Representation command.response_class = Google::Apis::ContentV2_1::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountStatus
Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.
905 906 907 908 909 910 911 912 913 914 915 |
# File 'lib/google/apis/content_v2_1/service.rb', line 905 def get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', ) 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'] = account_id unless account_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? execute_or_queue_command(command, &block) end |
#get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountTax
Retrieves the tax settings of the account.
1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1016 def get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', ) 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'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_buyongoogleprogram(merchant_id, region_code, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
Retrieves a status of the BoG program for your Merchant Center account.
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1162 def get_buyongoogleprogram(merchant_id, region_code, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/buyongoogleprograms/{regionCode}', ) command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['regionCode'] = region_code unless region_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Collection
Retrieves a collection from your Merchant Center account.
1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1379 def get_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/collections/{collectionId}', ) command.response_representation = Google::Apis::ContentV2_1::Collection::Representation command.response_class = Google::Apis::ContentV2_1::Collection command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['collectionId'] = collection_id unless collection_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_collectionstatus(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::CollectionStatus
Gets the status of a collection from your Merchant Center account.
1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1455 def get_collectionstatus(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/collectionstatuses/{collectionId}', ) command.response_representation = Google::Apis::ContentV2_1::CollectionStatus::Representation command.response_class = Google::Apis::ContentV2_1::CollectionStatus command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['collectionId'] = collection_id unless collection_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_css(css_group_id, css_domain_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Css
Retrieves a single CSS domain by ID.
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1529 def get_css(css_group_id, css_domain_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{cssGroupId}/csses/{cssDomainId}', ) command.response_representation = Google::Apis::ContentV2_1::Css::Representation command.response_class = Google::Apis::ContentV2_1::Css command.params['cssGroupId'] = css_group_id unless css_group_id.nil? command.params['cssDomainId'] = css_domain_id unless css_domain_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed
Retrieves a datafeed configuration from your Merchant Center account.
1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1738 def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', ) 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? execute_or_queue_command(command, &block) end |
#get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedStatus
Retrieves the status of a datafeed from your Merchant Center account.
1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1921 def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', ) 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? execute_or_queue_command(command, &block) end |
#get_freelistingsprogram(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::FreeListingsProgramStatus
Retrieves the status and review eligibility for the free listing program.
1991 1992 1993 1994 1995 1996 1997 1998 1999 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1991 def get_freelistingsprogram(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/freelistingsprogram', ) command.response_representation = Google::Apis::ContentV2_1::FreeListingsProgramStatus::Representation command.response_class = Google::Apis::ContentV2_1::FreeListingsProgramStatus 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? execute_or_queue_command(command, &block) end |
#get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiaSettings
Retrieves the LIA settings of the account.
2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2088 def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', ) 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'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Order
Retrieves an order from your Merchant Center account.
3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3236 def get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orders/{orderId}', ) 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? execute_or_queue_command(command, &block) end |
#get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::MerchantOrderReturn
Retrieves an order return from your Merchant Center account.
2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2739 def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', ) 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? execute_or_queue_command(command, &block) end |
#get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosStore
Retrieves information about the given store.
3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3888 def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', ) 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? execute_or_queue_command(command, &block) end |
#get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Product
Retrieves a product from your Merchant Center account.
4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4130 def get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/products/{productId}', ) 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? execute_or_queue_command(command, &block) end |
#get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductStatus
Gets the status of a product from your Merchant Center account.
4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4321 def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', ) 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? execute_or_queue_command(command, &block) end |
#get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PubsubNotificationSettings
Retrieves a Merchant Center account's pubsub notification settings.
4490 4491 4492 4493 4494 4495 4496 4497 4498 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4490 def get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/pubsubnotificationsettings', ) command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation command.response_class = Google::Apis::ContentV2_1::PubsubNotificationSettings 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? execute_or_queue_command(command, &block) end |
#get_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Region
Retrieves a region defined in your Merchant Center account.
4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4693 def get_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/regions/{regionId}', ) command.response_representation = Google::Apis::ContentV2_1::Region::Representation command.response_class = Google::Apis::ContentV2_1::Region command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['regionId'] = region_id unless region_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RepricingRule
Retrieves a repricing rule from your Merchant Center account.
4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4908 def get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}', ) command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation command.response_class = Google::Apis::ContentV2_1::RepricingRule command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnAddress
Gets a return address of the Merchant Center account.
5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5144 def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/returnaddress/{returnAddressId}', ) command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation command.response_class = Google::Apis::ContentV2_1::ReturnAddress command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnAddressId'] = return_address_id unless return_address_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicy
Gets a return policy of the Merchant Center account.
5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5311 def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/returnpolicy/{returnPolicyId}', ) command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation command.response_class = Google::Apis::ContentV2_1::ReturnPolicy command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnline
Gets an existing return policy.
5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5474 def get_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/returnpolicyonline/{returnPolicyId}', ) command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::SettlementReport
Retrieves a settlement report from your Merchant Center account.
5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5575 def get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}', ) command.response_representation = Google::Apis::ContentV2_1::SettlementReport::Representation command.response_class = Google::Apis::ContentV2_1::SettlementReport command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['settlementId'] = settlement_id unless settlement_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingSettings
Retrieves the shipping settings of the account.
5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5732 def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', ) 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'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_shoppingadsprogram(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShoppingAdsProgramStatus
Retrieves the status and review eligibility for the Shopping Ads program.
5930 5931 5932 5933 5934 5935 5936 5937 5938 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5930 def get_shoppingadsprogram(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/shoppingadsprogram', ) command.response_representation = Google::Apis::ContentV2_1::ShoppingAdsProgramStatus::Representation command.response_class = Google::Apis::ContentV2_1::ShoppingAdsProgramStatus 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? execute_or_queue_command(command, &block) end |
#getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse
Retrieves the list of accessible Google My Business accounts.
2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2124 def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', ) 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'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse
Retrieves an order using merchant order ID.
3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3270 def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', ) 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? execute_or_queue_command(command, &block) end |
#getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse
Retrieves supported carriers and carrier services for an account.
5763 5764 5765 5766 5767 5768 5769 5770 5771 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5763 def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/supportedCarriers', ) 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? execute_or_queue_command(command, &block) end |
#getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse
Retrieves supported holidays for an account.
5793 5794 5795 5796 5797 5798 5799 5800 5801 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5793 def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/supportedHolidays', ) 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? execute_or_queue_command(command, &block) end |
#getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse
Retrieves supported pickup services for an account.
5823 5824 5825 5826 5827 5828 5829 5830 5831 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5823 def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/supportedPickupServices', ) command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse::Representation command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse 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? execute_or_queue_command(command, &block) end |
#gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: 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.
3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3307 def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', ) 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? execute_or_queue_command(command, &block) end |
#insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account
Creates a Merchant Center sub-account.
245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/google/apis/content_v2_1/service.rb', line 245 def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts', ) command.request_representation = Google::Apis::ContentV2_1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2_1::Account::Representation command.response_class = Google::Apis::ContentV2_1::Account 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? execute_or_queue_command(command, &block) end |
#insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed
Registers a datafeed configuration with your Merchant Center account.
1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1771 def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/datafeeds', ) 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? execute_or_queue_command(command, &block) end |
#insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LocalInventory
Updates the local inventory of a product in your Merchant Center account.
2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2462 def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/products/{productId}/localinventory', ) command.request_representation = Google::Apis::ContentV2_1::LocalInventory::Representation command.request_object = local_inventory_object command.response_representation = Google::Apis::ContentV2_1::LocalInventory::Representation command.response_class = Google::Apis::ContentV2_1::LocalInventory 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? execute_or_queue_command(command, &block) end |
#insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosStore
Creates a store for the given merchant.
3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3923 def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', ) 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? execute_or_queue_command(command, &block) end |
#insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: 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.
4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4168 def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/products', ) 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['feedId'] = feed_id unless feed_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RegionalInventory
Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.
4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4591 def insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/products/{productId}/regionalinventory', ) command.request_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation command.request_object = regional_inventory_object command.response_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation command.response_class = Google::Apis::ContentV2_1::RegionalInventory 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? execute_or_queue_command(command, &block) end |
#insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnAddress
Inserts a return address for the Merchant Center account.
5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5176 def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/returnaddress', ) command.request_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation command.request_object = return_address_object command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation command.response_class = Google::Apis::ContentV2_1::ReturnAddress 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? execute_or_queue_command(command, &block) end |
#insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicy
Inserts a return policy for the Merchant Center account.
5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5343 def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/returnpolicy', ) command.request_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation command.request_object = return_policy_object command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation command.response_class = Google::Apis::ContentV2_1::ReturnPolicy 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse
Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store) . Note: We recommend calling the returnrefundlineitem method to refund in- store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.
3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3350 def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', ) 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? execute_or_queue_command(command, &block) end |
#inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosInventoryResponse
Submit inventory for the given merchant.
3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3959 def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', ) 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? execute_or_queue_command(command, &block) end |
#link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsLinkResponse
Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.
283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/google/apis/content_v2_1/service.rb', line 283 def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/link', ) 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'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_account_labels(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListAccountLabelsResponse
Lists the labels assigned to an account.
665 666 667 668 669 670 671 672 673 674 675 |
# File 'lib/google/apis/content_v2_1/service.rb', line 665 def list_account_labels(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/{accountId}/labels', ) command.response_representation = Google::Apis::ContentV2_1::ListAccountLabelsResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListAccountLabelsResponse command.params['accountId'] = account_id unless account_id.nil? command.query['pageSize'] = page_size unless page_size.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? execute_or_queue_command(command, &block) end |
#list_account_returncarriers(account_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse
Lists available return carriers in the merchant account.
800 801 802 803 804 805 806 807 808 |
# File 'lib/google/apis/content_v2_1/service.rb', line 800 def list_account_returncarriers(account_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'accounts/{accountId}/returncarrier', ) command.response_representation = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_accounts(merchant_id, label: nil, max_results: nil, name: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsListResponse
Lists the sub-accounts in your Merchant Center account.
329 330 331 332 333 334 335 336 337 338 339 340 341 342 |
# File 'lib/google/apis/content_v2_1/service.rb', line 329 def list_accounts(merchant_id, label: nil, max_results: nil, name: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounts', ) 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['label'] = label unless label.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['name'] = name unless name.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['view'] = view unless view.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_accountstatuses(merchant_id, destinations: nil, max_results: nil, name: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountstatusesListResponse
Lists the statuses of the sub-accounts in your Merchant Center account.
948 949 950 951 952 953 954 955 956 957 958 959 960 |
# File 'lib/google/apis/content_v2_1/service.rb', line 948 def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, name: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accountstatuses', ) 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['name'] = name unless name.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? execute_or_queue_command(command, &block) end |
#list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccounttaxListResponse
Lists the tax settings of the sub-accounts in your Merchant Center account.
1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1051 def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounttax', ) 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? execute_or_queue_command(command, &block) end |
#list_collections(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListCollectionsResponse
Lists the collections in your Merchant Center account. The response might contain fewer items than specified by page_size. Rely on next_page_token to determine if there are more items to be requested.
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1419 def list_collections(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/collections', ) command.response_representation = Google::Apis::ContentV2_1::ListCollectionsResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListCollectionsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['pageSize'] = page_size unless page_size.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? execute_or_queue_command(command, &block) end |
#list_collectionstatuses(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListCollectionStatusesResponse
Lists the statuses of the collections in your Merchant Center account.
1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1493 def list_collectionstatuses(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/collectionstatuses', ) command.response_representation = Google::Apis::ContentV2_1::ListCollectionStatusesResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListCollectionStatusesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['pageSize'] = page_size unless page_size.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? execute_or_queue_command(command, &block) end |
#list_csses(css_group_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListCssesResponse
Lists CSS domains affiliated with a CSS group.
1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1568 def list_csses(css_group_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{cssGroupId}/csses', ) command.response_representation = Google::Apis::ContentV2_1::ListCssesResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListCssesResponse command.params['cssGroupId'] = css_group_id unless css_group_id.nil? command.query['pageSize'] = page_size unless page_size.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? execute_or_queue_command(command, &block) end |
#list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedsListResponse
Lists the configurations for datafeeds in your Merchant Center account.
1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1808 def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeeds', ) 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? execute_or_queue_command(command, &block) end |
#list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::DatafeedstatusesListResponse
Lists the statuses of the datafeeds in your Merchant Center account.
1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1959 def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/datafeedstatuses', ) 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? execute_or_queue_command(command, &block) end |
#list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsListResponse
Lists the LIA settings of the sub-accounts in your Merchant Center account.
2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2159 def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/liasettings', ) 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? execute_or_queue_command(command, &block) end |
#list_orderreturns(merchant_id, acknowledged: nil, created_end_date: nil, created_start_date: nil, google_order_ids: nil, max_results: nil, order_by: nil, page_token: nil, shipment_states: nil, shipment_status: nil, shipment_tracking_numbers: nil, shipment_types: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsListResponse
Lists order returns in your Merchant Center account.
2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2818 def list_orderreturns(merchant_id, acknowledged: nil, created_end_date: nil, created_start_date: nil, google_order_ids: nil, max_results: nil, order_by: nil, page_token: nil, shipment_states: nil, shipment_status: nil, shipment_tracking_numbers: nil, shipment_types: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orderreturns', ) 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['acknowledged'] = acknowledged unless acknowledged.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['googleOrderIds'] = google_order_ids unless google_order_ids.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['shipmentStates'] = shipment_states unless shipment_states.nil? command.query['shipmentStatus'] = shipment_status unless shipment_status.nil? command.query['shipmentTrackingNumbers'] = shipment_tracking_numbers unless shipment_tracking_numbers.nil? command.query['shipmentTypes'] = shipment_types unless shipment_types.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersListResponse
Lists the orders in your Merchant Center account.
3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3408 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, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orders', ) 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? execute_or_queue_command(command, &block) end |
#list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosListResponse
Lists the stores of the target merchant.
3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3994 def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', ) 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? execute_or_queue_command(command, &block) end |
#list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductsListResponse
Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested.
4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4208 def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/products', ) 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? execute_or_queue_command(command, &block) end |
#list_productstatus_repricingreports(merchant_id, product_id, end_date: nil, page_size: nil, page_token: nil, rule_id: nil, start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListRepricingProductReportsResponse
Lists the metrics report for a given Repricing product.
4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4420 def list_productstatus_repricingreports(merchant_id, product_id, end_date: nil, page_size: nil, page_token: nil, rule_id: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}/repricingreports', ) command.response_representation = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['productId'] = product_id unless product_id.nil? command.query['endDate'] = end_date unless end_date.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['ruleId'] = rule_id unless rule_id.nil? command.query['startDate'] = start_date unless start_date.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ProductstatusesListResponse
Lists the statuses of the products in your Merchant Center account.
4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4362 def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/productstatuses', ) 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? execute_or_queue_command(command, &block) end |
#list_regions(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListRegionsResponse
Lists the regions in your Merchant Center account.
4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4732 def list_regions(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/regions', ) command.response_representation = Google::Apis::ContentV2_1::ListRegionsResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListRegionsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['pageSize'] = page_size unless page_size.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? execute_or_queue_command(command, &block) end |
#list_repricingrule_repricingreports(merchant_id, rule_id, end_date: nil, page_size: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse
Lists the metrics report for a given Repricing rule.
5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5046 def list_repricingrule_repricingreports(merchant_id, rule_id, end_date: nil, page_size: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}/repricingreports', ) command.response_representation = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['endDate'] = end_date unless end_date.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['startDate'] = start_date unless start_date.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_repricingrules(merchant_id, country_code: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListRepricingRulesResponse
Lists the repricing rules in your Merchant Center account.
4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4954 def list_repricingrules(merchant_id, country_code: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/repricingrules', ) command.response_representation = Google::Apis::ContentV2_1::ListRepricingRulesResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListRepricingRulesResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['countryCode'] = country_code unless country_code.nil? command.query['languageCode'] = language_code unless language_code.nil? command.query['pageSize'] = page_size unless page_size.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? execute_or_queue_command(command, &block) end |
#list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnaddressListResponse
Lists the return addresses of the Merchant Center account.
5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5215 def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/returnaddress', ) command.response_representation = Google::Apis::ContentV2_1::ReturnaddressListResponse::Representation command.response_class = Google::Apis::ContentV2_1::ReturnaddressListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.query['country'] = country unless country.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? execute_or_queue_command(command, &block) end |
#list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnpolicyListResponse
Lists the return policies of the Merchant Center account.
5375 5376 5377 5378 5379 5380 5381 5382 5383 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5375 def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/returnpolicy', ) command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyListResponse::Representation command.response_class = Google::Apis::ContentV2_1::ReturnpolicyListResponse 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? execute_or_queue_command(command, &block) end |
#list_returnpolicyonlines(merchant_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse
Lists all existing return policies.
5506 5507 5508 5509 5510 5511 5512 5513 5514 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5506 def list_returnpolicyonlines(merchant_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/returnpolicyonline', ) command.response_representation = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse::Representation command.response_class = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse 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? execute_or_queue_command(command, &block) end |
#list_settlementreports(merchant_id, max_results: nil, page_token: nil, transfer_end_date: nil, transfer_start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::SettlementreportsListResponse
Retrieves a list of settlement reports from your Merchant Center account.
5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5618 def list_settlementreports(merchant_id, max_results: nil, page_token: nil, transfer_end_date: nil, transfer_start_date: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/settlementreports', ) command.response_representation = Google::Apis::ContentV2_1::SettlementreportsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::SettlementreportsListResponse 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['transferEndDate'] = transfer_end_date unless transfer_end_date.nil? command.query['transferStartDate'] = transfer_start_date unless transfer_start_date.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::SettlementtransactionsListResponse
Retrieves a list of transactions for the settlement.
5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5663 def list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}/transactions', ) command.response_representation = Google::Apis::ContentV2_1::SettlementtransactionsListResponse::Representation command.response_class = Google::Apis::ContentV2_1::SettlementtransactionsListResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['settlementId'] = settlement_id unless settlement_id.nil? command.query['maxResults'] = max_results unless max_results.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['transactionIds'] = transaction_ids unless transaction_ids.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingsettingsListResponse
Lists the shipping settings of the sub-accounts in your Merchant Center account.
5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5859 def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/shippingsettings', ) 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? execute_or_queue_command(command, &block) end |
#listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse
Retrieves a report for disbursements from your Merchant Center account.
2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2583 def listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', ) 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? execute_or_queue_command(command, &block) end |
#listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsListLinksResponse
Returns the list of accounts linked to your Merchant Center account.
374 375 376 377 378 379 380 381 382 383 384 385 |
# File 'lib/google/apis/content_v2_1/service.rb', line 374 def listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/accounts/{accountId}/listlinks', ) command.response_representation = Google::Apis::ContentV2_1::AccountsListLinksResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountsListLinksResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_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? execute_or_queue_command(command, &block) end |
#listposdataproviders_liasetting(fields: nil, quota_user: 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.
2190 2191 2192 2193 2194 2195 2196 2197 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2190 def listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'liasettings/posdataproviders', ) 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? execute_or_queue_command(command, &block) end |
#listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse
Retrieves a list of transactions for a disbursement from your Merchant Center account.
2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2630 def listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', ) 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? execute_or_queue_command(command, &block) end |
#onboard_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, onboard_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Onboards the BoG program in your Merchant Center account. By using this method, you agree to the Terms of Service. Calling this method is only possible if the authenticated account is the same as the merchant id in the request. Calling this method multiple times will only accept Terms of Service if the latest version is not currently signed.
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1202 def onboard_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, onboard_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/onboard', ) command.request_representation = Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest::Representation command.request_object = onboard_buy_on_google_program_request_object command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['regionCode'] = region_code unless region_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_account_label(account_id, label_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountLabel
Updates a label.
700 701 702 703 704 705 706 707 708 709 710 711 |
# File 'lib/google/apis/content_v2_1/service.rb', line 700 def patch_account_label(account_id, label_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/{accountId}/labels/{labelId}', ) command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation command.request_object = account_label_object command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation command.response_class = Google::Apis::ContentV2_1::AccountLabel command.params['accountId'] = account_id unless account_id.nil? command.params['labelId'] = label_id unless label_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_account_returncarrier(account_id, carrier_account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountReturnCarrier
Updates a return carrier in the merchant account.
834 835 836 837 838 839 840 841 842 843 844 845 |
# File 'lib/google/apis/content_v2_1/service.rb', line 834 def patch_account_returncarrier(account_id, carrier_account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'accounts/{accountId}/returncarrier/{carrierAccountId}', ) command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation command.request_object = account_return_carrier_object command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation command.response_class = Google::Apis::ContentV2_1::AccountReturnCarrier command.params['accountId'] = account_id unless account_id.nil? command.params['carrierAccountId'] = carrier_account_id unless carrier_account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_region(merchant_id, region_id, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Region
Updates a region definition in your Merchant Center account.
4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4770 def patch_region(merchant_id, region_id, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, '{merchantId}/regions/{regionId}', ) command.request_representation = Google::Apis::ContentV2_1::Region::Representation command.request_object = region_object command.response_representation = Google::Apis::ContentV2_1::Region::Representation command.response_class = Google::Apis::ContentV2_1::Region command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['regionId'] = region_id unless region_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RepricingRule
Updates a repricing rule in your Merchant Center account. All mutable fields will be overwritten in each update request. In each update, you must provide all required mutable fields, or an error will be thrown. If you do not provide an optional field in the update request, if that field currently exists, it will be deleted from the rule.
4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4995 def patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, '{merchantId}/repricingrules/{ruleId}', ) command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation command.request_object = repricing_rule_object command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation command.response_class = Google::Apis::ContentV2_1::RepricingRule command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['ruleId'] = rule_id unless rule_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_returnpolicyonline(merchant_id, return_policy_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ReturnPolicyOnline
Updates an existing return policy.
5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5540 def patch_returnpolicyonline(merchant_id, return_policy_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, '{merchantId}/returnpolicyonline/{returnPolicyId}', ) command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation command.request_object = return_policy_online_object command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#pause_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, pause_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Pauses the BoG program in your Merchant Center account. Important: This method is only whitelisted for selected merchants.
1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1238 def pause_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, pause_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/pause', ) command.request_representation = Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest::Representation command.request_object = pause_buy_on_google_program_request_object command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['regionCode'] = region_code unless region_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrderreturnsProcessResponse
Processes return in your Merchant Center account.
2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2863 def process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/process', ) command.request_representation = Google::Apis::ContentV2_1::OrderreturnsProcessRequest::Representation command.request_object = orderreturns_process_request_object command.response_representation = Google::Apis::ContentV2_1::OrderreturnsProcessResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrderreturnsProcessResponse 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? execute_or_queue_command(command, &block) end |
#refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersRefundItemResponse
Issues a partial or total refund for items and shipment.
3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3449 def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refunditem', ) command.request_representation = Google::Apis::ContentV2_1::OrdersRefundItemRequest::Representation command.request_object = orders_refund_item_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersRefundItemResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrdersRefundItemResponse 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? execute_or_queue_command(command, &block) end |
#refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersRefundOrderResponse
Issues a partial or total refund for an order.
3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3486 def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refundorder', ) command.request_representation = Google::Apis::ContentV2_1::OrdersRefundOrderRequest::Representation command.request_object = orders_refund_order_request_object command.response_representation = Google::Apis::ContentV2_1::OrdersRefundOrderResponse::Representation command.response_class = Google::Apis::ContentV2_1::OrdersRefundOrderResponse 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse
Rejects return on an line item.
3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3523 def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', ) 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? execute_or_queue_command(command, &block) end |
#requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse
Requests access to a specified Google My Business account.
2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2225 def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', ) 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'] = account_id unless account_id.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? execute_or_queue_command(command, &block) end |
#requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse
Requests inventory validation for the specified country.
2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2264 def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', ) 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'] = account_id unless account_id.nil? command.params['country'] = country unless country.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#requestphoneverification_account(merchant_id, account_id, request_phone_verification_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::RequestPhoneVerificationResponse
Request verification code to start phone verification.
412 413 414 415 416 417 418 419 420 421 422 423 |
# File 'lib/google/apis/content_v2_1/service.rb', line 412 def requestphoneverification_account(merchant_id, account_id, request_phone_verification_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/requestphoneverification', ) command.request_representation = Google::Apis::ContentV2_1::RequestPhoneVerificationRequest::Representation command.request_object = request_phone_verification_request_object command.response_representation = Google::Apis::ContentV2_1::RequestPhoneVerificationResponse::Representation command.response_class = Google::Apis::ContentV2_1::RequestPhoneVerificationResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#requestreview_buyongoogleprogram(merchant_id, region_code, request_review_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Requests review and then activates the BoG program in your Merchant Center account for the first time. Moves the program to the REVIEW_PENDING state. Important: This method is only whitelisted for selected merchants.
1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1275 def requestreview_buyongoogleprogram(merchant_id, region_code, request_review_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/requestreview', ) command.request_representation = Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest::Representation command.request_object = request_review_buy_on_google_program_request_object command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['regionCode'] = region_code unless region_code.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#requestreview_freelistingsprogram(merchant_id, request_review_free_listings_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Requests a review for Free Listings program in the provided region. Important: This method is only whitelisted for selected merchants.
2023 2024 2025 2026 2027 2028 2029 2030 2031 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2023 def requestreview_freelistingsprogram(merchant_id, request_review_free_listings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/freelistingsprogram/requestreview', ) command.request_representation = Google::Apis::ContentV2_1::RequestReviewFreeListingsRequest::Representation command.request_object = request_review_free_listings_request_object 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? execute_or_queue_command(command, &block) end |
#requestreview_shoppingadsprogram(merchant_id, request_review_shopping_ads_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Requests a review for Shopping Ads program in the provided country.
5961 5962 5963 5964 5965 5966 5967 5968 5969 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5961 def requestreview_shoppingadsprogram(merchant_id, request_review_shopping_ads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/shoppingadsprogram/requestreview', ) command.request_representation = Google::Apis::ContentV2_1::RequestReviewShoppingAdsRequest::Representation command.request_object = request_review_shopping_ads_request_object 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? 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, 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. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.
3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3565 def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', ) 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? execute_or_queue_command(command, &block) end |
#sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PosSaleResponse
Submit a sale event for the given merchant.
4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4028 def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', ) 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? execute_or_queue_command(command, &block) end |
#search_report(merchant_id, search_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::SearchResponse
Retrieves merchant performance mertrics matching the search query and optionally segmented by selected dimensions.
4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4807 def search_report(merchant_id, search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/reports/search', ) command.request_representation = Google::Apis::ContentV2_1::SearchRequest::Representation command.request_object = search_request_object command.response_representation = Google::Apis::ContentV2_1::SearchResponse::Representation command.response_class = Google::Apis::ContentV2_1::SearchResponse 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? execute_or_queue_command(command, &block) end |
#setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse
Sets the inventory verification contract for the specified country.
2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2309 def setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', ) 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'] = account_id unless account_id.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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse
Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.
3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3606 def (merchant_id, order_id, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', ) 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse
Sets the POS data provider for the specified country.
2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2355 def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', ) 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'] = account_id unless account_id.nil? command.query['country'] = country unless country.nil? command.query['posDataProviderId'] = pos_data_provider_id unless pos_data_provider_id.nil? command.query['posExternalAccountId'] = pos_external_account_id unless pos_external_account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersShipLineItemsResponse
Marks line item(s) as shipped.
3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3643 def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', ) 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? execute_or_queue_command(command, &block) end |
#update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Account
Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.
451 452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/google/apis/content_v2_1/service.rb', line 451 def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', ) command.request_representation = Google::Apis::ContentV2_1::Account::Representation command.request_object = account_object command.response_representation = Google::Apis::ContentV2_1::Account::Representation command.response_class = Google::Apis::ContentV2_1::Account command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountTax
Updates the tax settings of the account. Any fields that are not provided are deleted from the resource.
1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1089 def update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', ) command.request_representation = Google::Apis::ContentV2_1::AccountTax::Representation command.request_object = account_tax_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'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Datafeed
Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.
1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1845 def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', ) 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? execute_or_queue_command(command, &block) end |
#update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::LiaSettings
Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.
2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 |
# File 'lib/google/apis/content_v2_1/service.rb', line 2395 def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', ) 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'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_product(merchant_id, product_id, product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Product
Updates an existing product in your Merchant Center account. Only updates attributes provided in the request.
4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4251 def update_product(merchant_id, product_id, product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, '{merchantId}/products/{productId}', ) 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.params['productId'] = product_id unless product_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::PubsubNotificationSettings
Register a Merchant Center account for pubsub notifications. Note that cloud topic name should not be provided as part of the request.
4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 |
# File 'lib/google/apis/content_v2_1/service.rb', line 4522 def update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/pubsubnotificationsettings', ) command.request_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation command.request_object = pubsub_notification_settings_object command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation command.response_class = Google::Apis::ContentV2_1::PubsubNotificationSettings 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? execute_or_queue_command(command, &block) end |
#update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::ShippingSettings
Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.
5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 |
# File 'lib/google/apis/content_v2_1/service.rb', line 5897 def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', ) 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'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse
Updates labels that are assigned to the Merchant Center account by CSS user.
487 488 489 490 491 492 493 494 495 496 497 498 |
# File 'lib/google/apis/content_v2_1/service.rb', line 487 def updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/updatelabels', ) command.request_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsRequest::Representation command.request_object = accounts_update_labels_request_object command.response_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse::Representation command.response_class = Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#updatelabels_css(css_group_id, css_domain_id, label_ids_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::Css
Updates labels that are assigned to a CSS domain by its CSS group.
1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 |
# File 'lib/google/apis/content_v2_1/service.rb', line 1603 def updatelabels_css(css_group_id, css_domain_id, label_ids_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{cssGroupId}/csses/{cssDomainId}/updatelabels', ) command.request_representation = Google::Apis::ContentV2_1::LabelIds::Representation command.request_object = label_ids_object command.response_representation = Google::Apis::ContentV2_1::Css::Representation command.response_class = Google::Apis::ContentV2_1::Css command.params['cssGroupId'] = css_group_id unless css_group_id.nil? command.params['cssDomainId'] = css_domain_id unless css_domain_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse
Updates ship by and delivery by dates for a line item.
3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3680 def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', ) 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? 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, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse
Updates the merchant order ID for a given order.
3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3717 def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', ) 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? execute_or_queue_command(command, &block) end |
#updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse
Updates a shipment's status, carrier, and/or tracking ID.
3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 |
# File 'lib/google/apis/content_v2_1/service.rb', line 3754 def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', ) 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? execute_or_queue_command(command, &block) end |
#verifyphonenumber_account(merchant_id, account_id, verify_phone_number_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::ContentV2_1::VerifyPhoneNumberResponse
Validates verification code to verify phone number for the account.
525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/google/apis/content_v2_1/service.rb', line 525 def verifyphonenumber_account(merchant_id, account_id, verify_phone_number_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/verifyphonenumber', ) command.request_representation = Google::Apis::ContentV2_1::VerifyPhoneNumberRequest::Representation command.request_object = verify_phone_number_request_object command.response_representation = Google::Apis::ContentV2_1::VerifyPhoneNumberResponse::Representation command.response_class = Google::Apis::ContentV2_1::VerifyPhoneNumberResponse command.params['merchantId'] = merchant_id unless merchant_id.nil? command.params['accountId'] = account_id unless account_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |