Class: Google::Apis::DfareportingV5::TvCampaignSummary

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v5/classes.rb,
lib/google/apis/dfareporting_v5/representations.rb,
lib/google/apis/dfareporting_v5/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.



13256
13257
13258
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13256

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)


13212
13213
13214
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13212

def end_date
  @end_date
end

#grpFixnum

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

Returns:

  • (Fixnum)


13217
13218
13219
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13217

def grp
  @grp
end

#idString

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

Returns:

  • (String)


13222
13223
13224
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13222

def id
  @id
end

#impressionsFixnum

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

Returns:

  • (Fixnum)


13227
13228
13229
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13227

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)


13233
13234
13235
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13233

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


13238
13239
13240
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13238

def name
  @name
end

#spendFloat

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

Returns:

  • (Float)


13243
13244
13245
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13243

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)


13249
13250
13251
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13249

def start_date
  @start_date
end

#typeString

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

Returns:

  • (String)


13254
13255
13256
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13254

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13261

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