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.



12702
12703
12704
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12702

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)


12658
12659
12660
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12658

def end_date
  @end_date
end

#grpFixnum

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

Returns:

  • (Fixnum)


12663
12664
12665
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12663

def grp
  @grp
end

#idString

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

Returns:

  • (String)


12668
12669
12670
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12668

def id
  @id
end

#impressionsFixnum

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

Returns:

  • (Fixnum)


12673
12674
12675
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12673

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)


12679
12680
12681
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12679

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


12684
12685
12686
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12684

def name
  @name
end

#spendFloat

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

Returns:

  • (Float)


12689
12690
12691
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12689

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)


12695
12696
12697
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12695

def start_date
  @start_date
end

#typeString

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

Returns:

  • (String)


12700
12701
12702
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12700

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12707

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