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.



1614
1615
1616
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1614

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)


1604
1605
1606
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1604

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)


1611
1612
1613
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1611

def enhanced_cpc_enabled
  @enhanced_cpc_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1619
1620
1621
1622
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1619

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