Class: Google::Apis::AndroidpublisherV3::TargetingRuleScope
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::TargetingRuleScope
- 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
Defines the scope of subscriptions which a targeting rule can match to target offers to users based on past or current entitlement.
Instance Attribute Summary collapse
-
#any_subscription_in_app ⇒ Google::Apis::AndroidpublisherV3::TargetingRuleScopeAnySubscriptionInApp
Represents the targeting rule scope corresponding to any subscription in the parent app.
-
#specific_subscription_in_app ⇒ String
The scope of the current targeting rule is the subscription with the specified subscription ID.
-
#this_subscription ⇒ Google::Apis::AndroidpublisherV3::TargetingRuleScopeThisSubscription
Represents the targeting rule scope corresponding to the subscriptions in which this offer is defined.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetingRuleScope
constructor
A new instance of TargetingRuleScope.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TargetingRuleScope
Returns a new instance of TargetingRuleScope.
6450 6451 6452 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#any_subscription_in_app ⇒ Google::Apis::AndroidpublisherV3::TargetingRuleScopeAnySubscriptionInApp
Represents the targeting rule scope corresponding to any subscription in the
parent app.
Corresponds to the JSON property anySubscriptionInApp
6436 6437 6438 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6436 def any_subscription_in_app @any_subscription_in_app end |
#specific_subscription_in_app ⇒ String
The scope of the current targeting rule is the subscription with the specified
subscription ID. Must be a subscription within the same parent app.
Corresponds to the JSON property specificSubscriptionInApp
6442 6443 6444 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6442 def specific_subscription_in_app @specific_subscription_in_app end |
#this_subscription ⇒ Google::Apis::AndroidpublisherV3::TargetingRuleScopeThisSubscription
Represents the targeting rule scope corresponding to the subscriptions in
which this offer is defined.
Corresponds to the JSON property thisSubscription
6448 6449 6450 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6448 def this_subscription @this_subscription end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6455 6456 6457 6458 6459 |
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 6455 def update!(**args) @any_subscription_in_app = args[:any_subscription_in_app] if args.key?(:any_subscription_in_app) @specific_subscription_in_app = args[:specific_subscription_in_app] if args.key?(:specific_subscription_in_app) @this_subscription = args[:this_subscription] if args.key?(:this_subscription) end |