Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0ResourcesCampaignCriterion

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

A campaign criterion.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_modifierFloat

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

Returns:

  • (Float)


2655
2656
2657
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2655

def bid_modifier
  @bid_modifier
end

#criterion_idFixnum

Output only. The ID of the criterion. This field is ignored during mutate. Corresponds to the JSON property criterionId

Returns:

  • (Fixnum)


2660
2661
2662
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2660

def criterion_id
  @criterion_id
end

#deviceGoogle::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_nameString

Output only. The display name of the criterion. This field is ignored for mutates. Corresponds to the JSON property displayName

Returns:

  • (String)


2671
2672
2673
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2671

def display_name
  @display_name
end

#languageGoogle::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

#locationGoogle::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_groupGoogle::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

#negativeBoolean Also known as: negative?

Immutable. Whether to target (false) or exclude (true) the criterion. Corresponds to the JSON property negative

Returns:

  • (Boolean)


2691
2692
2693
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2691

def negative
  @negative
end

#resource_nameString

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`

Returns:

  • (String)


2699
2700
2701
# File 'lib/google/apis/searchads360_v0/classes.rb', line 2699

def resource_name
  @resource_name
end

#typeString

Output only. The type of the criterion. Corresponds to the JSON property type

Returns:

  • (String)


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