class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaMerchantCenterLink
Represents a link between a Merchant Center account and a branch. Once a link is established, products from the linked merchant center account will be streamed to the linked branch.
Attributes
The branch id (e.g. 0/1/2) within this catalog that products from merchant_center_account_id
are streamed to. When updating this field, an empty value will use the currently configured default branch. However, changing the default branch later on won't change the linked branch here. A single branch id can only have one linked merchant center account id. Corresponds to the JSON property `branchId` @return [String]
String representing the destination to import for, all if left empty. List of possible values can be found here. [support.google.com/merchants/ answer/7501026] List of allowed string values: “shopping-ads”, “buy-on-google- listings”, “display-ads”, “local-inventory -ads”, “free-listings”, “free-local- listings” NOTE: The string values are case sensitive. Corresponds to the JSON property `destinations` @return [Array<String>]
Required. The linked [Merchant center account id](developers.google. com/shopping-content/guides/accountstatuses). The account must be a standalone account or a sub-account of a MCA. Corresponds to the JSON property `merchantCenterAccountId` @return [Fixnum]
Public Class Methods
# File lib/google/apis/retail_v2alpha/classes.rb, line 1726 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/retail_v2alpha/classes.rb, line 1731 def update!(**args) @branch_id = args[:branch_id] if args.key?(:branch_id) @destinations = args[:destinations] if args.key?(:destinations) @merchant_center_account_id = args[:merchant_center_account_id] if args.key?(:merchant_center_account_id) end