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.



31828
31829
31830
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31828

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)


31800
31801
31802
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31800

def id
  @id
end

#manufacturer_nameString

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

Returns:

  • (String)


31805
31806
31807
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31805

def manufacturer_name
  @manufacturer_name
end

#nameString

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

Returns:

  • (String)


31810
31811
31812
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31810

def name
  @name
end

#operating_system_nameString

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

Returns:

  • (String)


31815
31816
31817
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31815

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)


31821
31822
31823
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31821

def resource_name
  @resource_name
end

#typeString

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

Returns:

  • (String)


31826
31827
31828
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31826

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31833
31834
31835
31836
31837
31838
31839
31840
# File 'lib/google/apis/searchads360_v23/classes.rb', line 31833

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