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.



80
81
82
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 80

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



78
79
80
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 78

def scope
  @scope
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



85
86
87
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 85

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