Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignCriterion
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignCriterion
- 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
A campaign criterion.
Instance Attribute Summary collapse
-
#bid_modifier ⇒ Float
The modifier for the bids when the criterion matches.
-
#criterion_id ⇒ Fixnum
Output only.
-
#device ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonDeviceInfo
A device criterion.
-
#display_name ⇒ String
Output only.
-
#language ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonLanguageInfo
A language criterion.
-
#location ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonLocationInfo
A location criterion.
-
#location_group ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonLocationGroupInfo
A radius around a list of locations specified through a feed.
-
#negative ⇒ Boolean
(also: #negative?)
Immutable.
-
#resource_name ⇒ String
Immutable.
-
#type ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignCriterion
constructor
A new instance of GoogleAdsSearchads360V0ResourcesCampaignCriterion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V0ResourcesCampaignCriterion
Returns a new instance of GoogleAdsSearchads360V0ResourcesCampaignCriterion.
2706 2707 2708 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2706 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bid_modifier ⇒ Float
The modifier for the bids when the criterion matches. The modifier must be in
the range: 0.1 - 10.0. Most targetable criteria types support modifiers. Use 0
to opt out of a Device type.
Corresponds to the JSON property bidModifier
2655 2656 2657 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2655 def bid_modifier @bid_modifier end |
#criterion_id ⇒ Fixnum
Output only. The ID of the criterion. This field is ignored during mutate.
Corresponds to the JSON property criterionId
2660 2661 2662 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2660 def criterion_id @criterion_id end |
#device ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonDeviceInfo
A device criterion.
Corresponds to the JSON property device
2665 2666 2667 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2665 def device @device end |
#display_name ⇒ String
Output only. The display name of the criterion. This field is ignored for
mutates.
Corresponds to the JSON property displayName
2671 2672 2673 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2671 def display_name @display_name end |
#language ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonLanguageInfo
A language criterion.
Corresponds to the JSON property language
2676 2677 2678 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2676 def language @language end |
#location ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonLocationInfo
A location criterion.
Corresponds to the JSON property location
2681 2682 2683 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2681 def location @location end |
#location_group ⇒ Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonLocationGroupInfo
A radius around a list of locations specified through a feed.
Corresponds to the JSON property locationGroup
2686 2687 2688 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2686 def location_group @location_group end |
#negative ⇒ Boolean Also known as: negative?
Immutable. Whether to target (false) or exclude (true) the criterion.
Corresponds to the JSON property negative
2691 2692 2693 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2691 def negative @negative end |
#resource_name ⇒ String
Immutable. The resource name of the campaign criterion. Campaign criterion
resource names have the form: customers/customer_id/campaignCriteria/
campaign_id~criterion_id`
Corresponds to the JSON propertyresourceName`
2699 2700 2701 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2699 def resource_name @resource_name end |
#type ⇒ String
Output only. The type of the criterion.
Corresponds to the JSON property type
2704 2705 2706 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2704 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 |
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2711 def update!(**args) @bid_modifier = args[:bid_modifier] if args.key?(:bid_modifier) @criterion_id = args[:criterion_id] if args.key?(:criterion_id) @device = args[:device] if args.key?(:device) @display_name = args[:display_name] if args.key?(:display_name) @language = args[:language] if args.key?(:language) @location = args[:location] if args.key?(:location) @location_group = args[:location_group] if args.key?(:location_group) @negative = args[:negative] if args.key?(:negative) @resource_name = args[:resource_name] if args.key?(:resource_name) @type = args[:type] if args.key?(:type) end |