Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesMobileDeviceConstant

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

Overview

A mobile device constant.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesMobileDeviceConstant

Returns a new instance of GoogleAdsSearchads360V23ResourcesMobileDeviceConstant.



31654
31655
31656
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31654

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

Instance Attribute Details

#idFixnum

Output only. The ID of the mobile device constant. Corresponds to the JSON property id

Returns:

  • (Fixnum)


31626
31627
31628
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31626

def id
  @id
end

#manufacturer_nameString

Output only. The manufacturer of the mobile device. Corresponds to the JSON property manufacturerName

Returns:

  • (String)


31631
31632
31633
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31631

def manufacturer_name
  @manufacturer_name
end

#nameString

Output only. The name of the mobile device. Corresponds to the JSON property name

Returns:

  • (String)


31636
31637
31638
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31636

def name
  @name
end

#operating_system_nameString

Output only. The operating system of the mobile device. Corresponds to the JSON property operatingSystemName

Returns:

  • (String)


31641
31642
31643
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31641

def operating_system_name
  @operating_system_name
end

#resource_nameString

Output only. The resource name of the mobile device constant. Mobile device constant resource names have the form: mobileDeviceConstants/criterion_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


31647
31648
31649
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31647

def resource_name
  @resource_name
end

#typeString

Output only. The type of mobile device. Corresponds to the JSON property type

Returns:

  • (String)


31652
31653
31654
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31652

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31659
31660
31661
31662
31663
31664
31665
31666
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31659

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @manufacturer_name = args[:manufacturer_name] if args.key?(:manufacturer_name)
  @name = args[:name] if args.key?(:name)
  @operating_system_name = args[:operating_system_name] if args.key?(:operating_system_name)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @type = args[:type] if args.key?(:type)
end