Class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::ServingContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adexchangebuyer2_v2beta1/classes.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
The serving context for this restriction.
Instance Attribute Summary collapse
-
#all ⇒ String
Matches all contexts.
-
#app_type ⇒ Google::Apis::Adexchangebuyer2V2beta1::AppContext
Output only.
-
#auction_type ⇒ Google::Apis::Adexchangebuyer2V2beta1::AuctionContext
Output only.
-
#location ⇒ Google::Apis::Adexchangebuyer2V2beta1::LocationContext
Output only.
-
#platform ⇒ Google::Apis::Adexchangebuyer2V2beta1::PlatformContext
Output only.
-
#security_type ⇒ Google::Apis::Adexchangebuyer2V2beta1::SecurityContext
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServingContext
constructor
A new instance of ServingContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServingContext
Returns a new instance of ServingContext.
3794 3795 3796 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3794 def initialize(**args) update!(**args) end |
Instance Attribute Details
#all ⇒ String
Matches all contexts.
Corresponds to the JSON property all
3767 3768 3769 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3767 def all @all end |
#app_type ⇒ Google::Apis::Adexchangebuyer2V2beta1::AppContext
Output only. The app type the restriction applies to for mobile device.
Corresponds to the JSON property appType
3772 3773 3774 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3772 def app_type @app_type end |
#auction_type ⇒ Google::Apis::Adexchangebuyer2V2beta1::AuctionContext
Output only. The auction type the restriction applies to.
Corresponds to the JSON property auctionType
3777 3778 3779 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3777 def auction_type @auction_type end |
#location ⇒ Google::Apis::Adexchangebuyer2V2beta1::LocationContext
Output only. The Geo criteria the restriction applies to.
Corresponds to the JSON property location
3782 3783 3784 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3782 def location @location end |
#platform ⇒ Google::Apis::Adexchangebuyer2V2beta1::PlatformContext
Output only. The type of platform the restriction applies to.
Corresponds to the JSON property platform
3787 3788 3789 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3787 def platform @platform end |
#security_type ⇒ Google::Apis::Adexchangebuyer2V2beta1::SecurityContext
Output only. A security context.
Corresponds to the JSON property securityType
3792 3793 3794 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3792 def security_type @security_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3799 3800 3801 3802 3803 3804 3805 3806 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3799 def update!(**args) @all = args[:all] if args.key?(:all) @app_type = args[:app_type] if args.key?(:app_type) @auction_type = args[:auction_type] if args.key?(:auction_type) @location = args[:location] if args.key?(:location) @platform = args[:platform] if args.key?(:platform) @security_type = args[:security_type] if args.key?(:security_type) end |