Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignShoppingSetting

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchads360_v0/classes.rb,
lib/google/apis/searchads360_v0/representations.rb,
lib/google/apis/searchads360_v0/representations.rb

Overview

The setting for Shopping campaigns. Defines the universe of products that can be advertised by the campaign, and how this campaign interacts with other Shopping campaigns.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignShoppingSetting

Returns a new instance of GoogleAdsSearchads360V0ResourcesCampaignShoppingSetting.



2111
2112
2113
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2111

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#campaign_priorityFixnum

Priority of the campaign. Campaigns with numerically higher priorities take precedence over those with lower priorities. This field is required for Shopping campaigns, with values between 0 and 2, inclusive. This field is optional for Smart Shopping campaigns, but must be equal to 3 if set. Corresponds to the JSON property campaignPriority

Returns:

  • (Fixnum)


2078
2079
2080
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2078

def campaign_priority
  @campaign_priority
end

#enable_localBoolean Also known as: enable_local?

Whether to include local products. Corresponds to the JSON property enableLocal

Returns:

  • (Boolean)


2083
2084
2085
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2083

def enable_local
  @enable_local
end

#feed_labelString

Feed label of products to include in the campaign. Only one of feed_label or sales_country can be set. If used instead of sales_country, the feed_label field accepts country codes in the same format for example: 'XX'. Otherwise can be any string used for feed label in Google Merchant Center. Corresponds to the JSON property feedLabel

Returns:

  • (String)


2092
2093
2094
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2092

def feed_label
  @feed_label
end

#merchant_idFixnum

Immutable. ID of the Merchant Center account. This field is required for create operations. This field is immutable for Shopping campaigns. Corresponds to the JSON property merchantId

Returns:

  • (Fixnum)


2098
2099
2100
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2098

def merchant_id
  @merchant_id
end

#sales_countryString

Sales country of products to include in the campaign. Corresponds to the JSON property salesCountry

Returns:

  • (String)


2103
2104
2105
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2103

def sales_country
  @sales_country
end

#use_vehicle_inventoryBoolean Also known as: use_vehicle_inventory?

Immutable. Whether to target Vehicle Listing inventory. Corresponds to the JSON property useVehicleInventory

Returns:

  • (Boolean)


2108
2109
2110
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2108

def use_vehicle_inventory
  @use_vehicle_inventory
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2116
2117
2118
2119
2120
2121
2122
2123
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2116

def update!(**args)
  @campaign_priority = args[:campaign_priority] if args.key?(:campaign_priority)
  @enable_local = args[:enable_local] if args.key?(:enable_local)
  @feed_label = args[:feed_label] if args.key?(:feed_label)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
  @sales_country = args[:sales_country] if args.key?(:sales_country)
  @use_vehicle_inventory = args[:use_vehicle_inventory] if args.key?(:use_vehicle_inventory)
end