Class: Google::Apis::DfareportingV2_1::PlatformType

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PlatformType

Returns a new instance of PlatformType.



7880
7881
7882
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7880

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


7867
7868
7869
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7867

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)


7873
7874
7875
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7873

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


7878
7879
7880
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7878

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7885
7886
7887
7888
7889
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 7885

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