Class: Google::Apis::DfareportingV2_1::OperatingSystem

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 an operating system 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) ⇒ OperatingSystem

Returns a new instance of OperatingSystem.



6622
6623
6624
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6622

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

Instance Attribute Details

#dart_idString

DART ID of this operating system. This is the ID used for targeting. Corresponds to the JSON property dartId

Returns:

  • (String)


6597
6598
6599
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6597

def dart_id
  @dart_id
end

#desktopBoolean Also known as: desktop?

Whether this operating system is for desktop. Corresponds to the JSON property desktop

Returns:

  • (Boolean)


6602
6603
6604
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6602

def desktop
  @desktop
end

#kindString

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

Returns:

  • (String)


6609
6610
6611
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6609

def kind
  @kind
end

#mobileBoolean Also known as: mobile?

Whether this operating system is for mobile. Corresponds to the JSON property mobile

Returns:

  • (Boolean)


6614
6615
6616
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6614

def mobile
  @mobile
end

#nameString

Name of this operating system. Corresponds to the JSON property name

Returns:

  • (String)


6620
6621
6622
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6620

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6627
6628
6629
6630
6631
6632
6633
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 6627

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