Class: Google::Apis::DfareportingV2_5::PlatformType

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



8347
8348
8349
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8347

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


8334
8335
8336
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8334

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)


8340
8341
8342
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8340

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


8345
8346
8347
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8345

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8352
8353
8354
8355
8356
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 8352

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