Class: Google::Apis::DfareportingV3_4::PlatformType

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

Overview

Contains information about a platform type that can be targeted by ads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlatformType

Returns a new instance of PlatformType.



9527
9528
9529
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9527

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

Instance Attribute Details

#idFixnum

ID of this platform type. Corresponds to the JSON property id

Returns:

  • (Fixnum)


9514
9515
9516
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9514

def id
  @id
end

#kindString

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

Returns:

  • (String)


9520
9521
9522
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9520

def kind
  @kind
end

#nameString

Name of this platform type. Corresponds to the JSON property name

Returns:

  • (String)


9525
9526
9527
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9525

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9532
9533
9534
9535
9536
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 9532

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end