Class: Google::Apis::AndroidpublisherV3::AcquisitionTargetingRule

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 targeting rule of the form: User never had scope before.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AcquisitionTargetingRule

Returns a new instance of AcquisitionTargetingRule.



35
36
37
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 35

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

Instance Attribute Details

#scopeGoogle::Apis::AndroidpublisherV3::TargetingRuleScope

Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement. Corresponds to the JSON property scope



33
34
35
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 33

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40
41
42
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 40

def update!(**args)
  @scope = args[:scope] if args.key?(:scope)
end