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.



1550
1551
1552
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1550

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)


1540
1541
1542
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1540

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)


1547
1548
1549
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1547

def enhanced_cpc_enabled
  @enhanced_cpc_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1555
1556
1557
1558
# File 'lib/google/apis/searchads360_v0/classes.rb', line 1555

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