Class: Google::Apis::DfareportingV2_6::PlatformType

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



8537
8538
8539
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 8537

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

Instance Attribute Details

#idString

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

Returns:

  • (String)


8524
8525
8526
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 8524

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)


8530
8531
8532
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 8530

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


8535
8536
8537
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 8535

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8542
8543
8544
8545
8546
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 8542

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