Class: Google::Apis::DfareportingV3_4::PricingSchedule

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

Overview

Pricing Schedule

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PricingSchedule

Returns a new instance of PricingSchedule.



9550
9551
9552
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9550

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

Instance Attribute Details

#cap_cost_optionString

Placement cap cost option. Corresponds to the JSON property capCostOption

Returns:

  • (String)


9501
9502
9503
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9501

def cap_cost_option
  @cap_cost_option
end

#end_dateDate

Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This field is required on insertion. Corresponds to the JSON property endDate

Returns:

  • (Date)


9511
9512
9513
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9511

def end_date
  @end_date
end

#flightedBoolean Also known as: flighted?

Whether this placement is flighted. If true, pricing periods will be computed automatically. Corresponds to the JSON property flighted

Returns:

  • (Boolean)


9517
9518
9519
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9517

def flighted
  @flighted
end

#floodlight_activity_idFixnum

Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA. Corresponds to the JSON property floodlightActivityId

Returns:

  • (Fixnum)


9524
9525
9526
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9524

def floodlight_activity_id
  @floodlight_activity_id
end

#pricing_periodsArray<Google::Apis::DfareportingV3_4::PricingSchedulePricingPeriod>

Pricing periods for this placement. Corresponds to the JSON property pricingPeriods



9529
9530
9531
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9529

def pricing_periods
  @pricing_periods
end

#pricing_typeString

Placement pricing type. This field is required on insertion. Corresponds to the JSON property pricingType

Returns:

  • (String)


9534
9535
9536
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9534

def pricing_type
  @pricing_type
end

#start_dateDate

Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion. Corresponds to the JSON property startDate

Returns:

  • (Date)


9542
9543
9544
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9542

def start_date
  @start_date
end

#testing_start_dateDate

Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. Corresponds to the JSON property testingStartDate

Returns:

  • (Date)


9548
9549
9550
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9548

def testing_start_date
  @testing_start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9555

def update!(**args)
  @cap_cost_option = args[:cap_cost_option] if args.key?(:cap_cost_option)
  @end_date = args[:end_date] if args.key?(:end_date)
  @flighted = args[:flighted] if args.key?(:flighted)
  @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id)
  @pricing_periods = args[:pricing_periods] if args.key?(:pricing_periods)
  @pricing_type = args[:pricing_type] if args.key?(:pricing_type)
  @start_date = args[:start_date] if args.key?(:start_date)
  @testing_start_date = args[:testing_start_date] if args.key?(:testing_start_date)
end