Class: Google::Apis::Searchads360V0::GoogleAdsSearchads360V0CommonPercentCpc

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 bidding strategy where bids are a fraction of the advertised price for some good or service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V0CommonPercentCpc

Returns a new instance of GoogleAdsSearchads360V0CommonPercentCpc.



928
929
930
# File 'lib/google/apis/searchads360_v0/classes.rb', line 928

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

Instance Attribute Details

#cpc_bid_ceiling_microsFixnum

Maximum bid limit that can be set by the bid strategy. This is an optional field entered by the advertiser and specified in local micros. Note: A zero value is interpreted in the same way as having bid_ceiling undefined. Corresponds to the JSON property cpcBidCeilingMicros

Returns:

  • (Fixnum)


918
919
920
# File 'lib/google/apis/searchads360_v0/classes.rb', line 918

def cpc_bid_ceiling_micros
  @cpc_bid_ceiling_micros
end

#enhanced_cpc_enabledBoolean Also known as: enhanced_cpc_enabled?

Adjusts the bid for each auction upward or downward, depending on the likelihood of a conversion. Individual bids may exceed cpc_bid_ceiling_micros, but the average bid amount for a campaign should not. Corresponds to the JSON property enhancedCpcEnabled

Returns:

  • (Boolean)


925
926
927
# File 'lib/google/apis/searchads360_v0/classes.rb', line 925

def enhanced_cpc_enabled
  @enhanced_cpc_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



933
934
935
936
# File 'lib/google/apis/searchads360_v0/classes.rb', line 933

def update!(**args)
  @cpc_bid_ceiling_micros = args[:cpc_bid_ceiling_micros] if args.key?(:cpc_bid_ceiling_micros)
  @enhanced_cpc_enabled = args[:enhanced_cpc_enabled] if args.key?(:enhanced_cpc_enabled)
end