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.



31756
31757
31758
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31756

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)


31728
31729
31730
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31728

def id
  @id
end

#manufacturer_nameString

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

Returns:

  • (String)


31733
31734
31735
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31733

def manufacturer_name
  @manufacturer_name
end

#nameString

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

Returns:

  • (String)


31738
31739
31740
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31738

def name
  @name
end

#operating_system_nameString

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

Returns:

  • (String)


31743
31744
31745
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31743

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)


31749
31750
31751
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31749

def resource_name
  @resource_name
end

#typeString

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

Returns:

  • (String)


31754
31755
31756
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31754

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31761
31762
31763
31764
31765
31766
31767
31768
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31761

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