Class: Google::Apis::DisplayvideoV2::YoutubeAndPartnersBiddingStrategy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb

Overview

Settings that control the bid strategy for YouTube and Partners resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YoutubeAndPartnersBiddingStrategy

Returns a new instance of YoutubeAndPartnersBiddingStrategy.



11991
11992
11993
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11991

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

Instance Attribute Details

#ad_group_effective_target_cpa_sourceString

Output only. Source of the effective targetCpa value for AdGroup. Corresponds to the JSON property adGroupEffectiveTargetCpaSource

Returns:

  • (String)


11964
11965
11966
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11964

def ad_group_effective_target_cpa_source
  @ad_group_effective_target_cpa_source
end

#ad_group_effective_target_cpa_valueFixnum

Output only. The effective targetCpa for AdGroup, in micros of advertiser's currency. Corresponds to the JSON property adGroupEffectiveTargetCpaValue

Returns:

  • (Fixnum)


11970
11971
11972
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11970

def ad_group_effective_target_cpa_value
  @ad_group_effective_target_cpa_value
end

#typeString

The type of the bidding strategy. Corresponds to the JSON property type

Returns:

  • (String)


11975
11976
11977
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11975

def type
  @type
end

#valueFixnum

The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM * YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV * YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA * YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM If not using an applicable strategy, the value of this field will be 0. Corresponds to the JSON property value

Returns:

  • (Fixnum)


11989
11990
11991
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11989

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11996
11997
11998
11999
12000
12001
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 11996

def update!(**args)
  @ad_group_effective_target_cpa_source = args[:ad_group_effective_target_cpa_source] if args.key?(:ad_group_effective_target_cpa_source)
  @ad_group_effective_target_cpa_value = args[:ad_group_effective_target_cpa_value] if args.key?(:ad_group_effective_target_cpa_value)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end