Class: Google::Apis::DfareportingV3_3::PlatformType

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PlatformType

Returns a new instance of PlatformType.



8848
8849
8850
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 8848

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

Instance Attribute Details

#idFixnum

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

Returns:

  • (Fixnum)


8835
8836
8837
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 8835

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)


8841
8842
8843
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 8841

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


8846
8847
8848
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 8846

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8853
8854
8855
8856
8857
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 8853

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