Class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServingContext

Returns a new instance of ServingContext.



3744
3745
3746
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3744

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

Instance Attribute Details

#allString

Matches all contexts. Corresponds to the JSON property all

Returns:

  • (String)


3717
3718
3719
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3717

def all
  @all
end

#app_typeGoogle::Apis::Adexchangebuyer2V2beta1::AppContext

Output only. The app type the restriction applies to for mobile device. Corresponds to the JSON property appType



3722
3723
3724
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3722

def app_type
  @app_type
end

#auction_typeGoogle::Apis::Adexchangebuyer2V2beta1::AuctionContext

Output only. The auction type the restriction applies to. Corresponds to the JSON property auctionType



3727
3728
3729
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3727

def auction_type
  @auction_type
end

#locationGoogle::Apis::Adexchangebuyer2V2beta1::LocationContext

Output only. The Geo criteria the restriction applies to. Corresponds to the JSON property location



3732
3733
3734
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3732

def location
  @location
end

#platformGoogle::Apis::Adexchangebuyer2V2beta1::PlatformContext

Output only. The type of platform the restriction applies to. Corresponds to the JSON property platform



3737
3738
3739
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3737

def platform
  @platform
end

#security_typeGoogle::Apis::Adexchangebuyer2V2beta1::SecurityContext

Output only. A security context. Corresponds to the JSON property securityType



3742
3743
3744
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3742

def security_type
  @security_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3749
3750
3751
3752
3753
3754
3755
3756
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3749

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