Class: Google::Apis::DfareportingV2_5::PricingSchedulePricingPeriod

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

Overview

Pricing Period

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) ⇒ PricingSchedulePricingPeriod

Returns a new instance of PricingSchedulePricingPeriod.


8700
8701
8702
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8700

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

Instance Attribute Details

#end_dateDate

Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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. Corresponds to the JSON property endDate

Returns:

  • (Date)

8676
8677
8678
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8676

def end_date
  @end_date
end

#pricing_commentString

Comments for this pricing period. Corresponds to the JSON property pricingComment

Returns:

  • (String)

8681
8682
8683
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8681

def pricing_comment
  @pricing_comment
end

#rate_or_cost_nanosString

Rate or cost of this pricing period. Corresponds to the JSON property rateOrCostNanos

Returns:

  • (String)

8686
8687
8688
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8686

def rate_or_cost_nanos
  @rate_or_cost_nanos
end

#start_dateDate

Pricing period start date. This date must be later than, or the same day as, the placement start date. 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 startDate

Returns:

  • (Date)

8693
8694
8695
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8693

def start_date
  @start_date
end

#unitsString

Units of this pricing period. Corresponds to the JSON property units

Returns:

  • (String)

8698
8699
8700
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8698

def units
  @units
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


8705
8706
8707
8708
8709
8710
8711
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8705

def update!(**args)
  @end_date = args[:end_date] if args.key?(:end_date)
  @pricing_comment = args[:pricing_comment] if args.key?(:pricing_comment)
  @rate_or_cost_nanos = args[:rate_or_cost_nanos] if args.key?(:rate_or_cost_nanos)
  @start_date = args[:start_date] if args.key?(:start_date)
  @units = args[:units] if args.key?(:units)
end