Class: Google::Apis::DfareportingV4::TvCampaignSummary

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

Overview

TvCampaignSummary contains aggregate data from a TV campaign.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TvCampaignSummary

Returns a new instance of TvCampaignSummary.



14123
14124
14125
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14123

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

Instance Attribute Details

#end_dateString

The end date of the TV campaign, inclusive. A string of the format: "yyyy-MM- dd". Corresponds to the JSON property endDate

Returns:

  • (String)


14079
14080
14081
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14079

def end_date
  @end_date
end

#grpFixnum

GRP of this TV campaign. Corresponds to the JSON property grp

Returns:

  • (Fixnum)


14084
14085
14086
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14084

def grp
  @grp
end

#idString

ID of this TV campaign. Corresponds to the JSON property id

Returns:

  • (String)


14089
14090
14091
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14089

def id
  @id
end

#impressionsFixnum

Impressions across the entire TV campaign. Corresponds to the JSON property impressions

Returns:

  • (Fixnum)


14094
14095
14096
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14094

def impressions
  @impressions
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#tvCampaignSummary". Corresponds to the JSON property kind

Returns:

  • (String)


14100
14101
14102
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14100

def kind
  @kind
end

#nameString

Identifier. Name of this TV campaign. Corresponds to the JSON property name

Returns:

  • (String)


14105
14106
14107
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14105

def name
  @name
end

#spendFloat

Spend across the entire TV campaign. Corresponds to the JSON property spend

Returns:

  • (Float)


14110
14111
14112
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14110

def spend
  @spend
end

#start_dateString

The start date of the TV campaign, inclusive. A string of the format: "yyyy-MM- dd". Corresponds to the JSON property startDate

Returns:

  • (String)


14116
14117
14118
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14116

def start_date
  @start_date
end

#typeString

"CampaignComponentType" of this TV campaign. Corresponds to the JSON property type

Returns:

  • (String)


14121
14122
14123
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14121

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 14128

def update!(**args)
  @end_date = args[:end_date] if args.key?(:end_date)
  @grp = args[:grp] if args.key?(:grp)
  @id = args[:id] if args.key?(:id)
  @impressions = args[:impressions] if args.key?(:impressions)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @spend = args[:spend] if args.key?(:spend)
  @start_date = args[:start_date] if args.key?(:start_date)
  @type = args[:type] if args.key?(:type)
end