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.



13432
13433
13434
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13432

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)


13388
13389
13390
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13388

def end_date
  @end_date
end

#grpFixnum

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

Returns:

  • (Fixnum)


13393
13394
13395
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13393

def grp
  @grp
end

#idString

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

Returns:

  • (String)


13398
13399
13400
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13398

def id
  @id
end

#impressionsFixnum

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

Returns:

  • (Fixnum)


13403
13404
13405
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13403

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)


13409
13410
13411
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13409

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


13414
13415
13416
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13414

def name
  @name
end

#spendFloat

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

Returns:

  • (Float)


13419
13420
13421
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13419

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)


13425
13426
13427
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13425

def start_date
  @start_date
end

#typeString

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

Returns:

  • (String)


13430
13431
13432
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13430

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13437

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