Class: Google::Apis::AndroidpublisherV3::ApkTargeting

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

Overview

Represents a set of apk-level targetings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApkTargeting

Returns a new instance of ApkTargeting.



406
407
408
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 406

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

Instance Attribute Details

#abi_targetingGoogle::Apis::AndroidpublisherV3::AbiTargeting

Targeting based on Abi. Corresponds to the JSON property abiTargeting



379
380
381
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 379

def abi_targeting
  @abi_targeting
end

#language_targetingGoogle::Apis::AndroidpublisherV3::LanguageTargeting

Targeting based on language. Corresponds to the JSON property languageTargeting



384
385
386
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 384

def language_targeting
  @language_targeting
end

#multi_abi_targetingGoogle::Apis::AndroidpublisherV3::MultiAbiTargeting

Targeting based on multiple abis. Corresponds to the JSON property multiAbiTargeting



389
390
391
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 389

def multi_abi_targeting
  @multi_abi_targeting
end

#screen_density_targetingGoogle::Apis::AndroidpublisherV3::ScreenDensityTargeting

Targeting based on screen density. Corresponds to the JSON property screenDensityTargeting



394
395
396
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 394

def screen_density_targeting
  @screen_density_targeting
end

#sdk_version_targetingGoogle::Apis::AndroidpublisherV3::SdkVersionTargeting

Targeting based on sdk version. Corresponds to the JSON property sdkVersionTargeting



399
400
401
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 399

def sdk_version_targeting
  @sdk_version_targeting
end

#texture_compression_format_targetingGoogle::Apis::AndroidpublisherV3::TextureCompressionFormatTargeting

Targeting by a texture compression format. Corresponds to the JSON property textureCompressionFormatTargeting



404
405
406
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 404

def texture_compression_format_targeting
  @texture_compression_format_targeting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



411
412
413
414
415
416
417
418
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 411

def update!(**args)
  @abi_targeting = args[:abi_targeting] if args.key?(:abi_targeting)
  @language_targeting = args[:language_targeting] if args.key?(:language_targeting)
  @multi_abi_targeting = args[:multi_abi_targeting] if args.key?(:multi_abi_targeting)
  @screen_density_targeting = args[:screen_density_targeting] if args.key?(:screen_density_targeting)
  @sdk_version_targeting = args[:sdk_version_targeting] if args.key?(:sdk_version_targeting)
  @texture_compression_format_targeting = args[:texture_compression_format_targeting] if args.key?(:texture_compression_format_targeting)
end