Class: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Context
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Context
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer_v1_4/classes.rb,
 generated/google/apis/adexchangebuyer_v1_4/representations.rb,
 generated/google/apis/adexchangebuyer_v1_4/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #auction_type  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Only set when contextType=AUCTION_TYPE. 
- 
  
    
      #context_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of context (e.g., location, platform, auction type, SSL-ness). 
- 
  
    
      #geo_criteria_id  ⇒ Array<Fixnum> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Only set when contextType=LOCATION. 
- 
  
    
      #platform  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Only set when contextType=PLATFORM. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Context 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Context. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Context
Returns a new instance of Context
| 1079 1080 1081 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1079 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#auction_type ⇒ Array<String>
Only set when contextType=AUCTION_TYPE. Represents the auction types this
restriction applies to.
Corresponds to the JSON property auctionType
| 1059 1060 1061 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1059 def auction_type @auction_type end | 
#context_type ⇒ String
The type of context (e.g., location, platform, auction type, SSL-ness).
Corresponds to the JSON property contextType
| 1064 1065 1066 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1064 def context_type @context_type end | 
#geo_criteria_id ⇒ Array<Fixnum>
Only set when contextType=LOCATION. Represents the geo criterias this
restriction applies to. Impressions are considered to match a context if
either the user location or publisher location matches a given geoCriteriaId.
Corresponds to the JSON property geoCriteriaId
| 1071 1072 1073 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1071 def geo_criteria_id @geo_criteria_id end | 
#platform ⇒ Array<String>
Only set when contextType=PLATFORM. Represents the platforms this restriction
applies to.
Corresponds to the JSON property platform
| 1077 1078 1079 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1077 def platform @platform end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1084 1085 1086 1087 1088 1089 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1084 def update!(**args) @auction_type = args[:auction_type] if args.key?(:auction_type) @context_type = args[:context_type] if args.key?(:context_type) @geo_criteria_id = args[:geo_criteria_id] if args.key?(:geo_criteria_id) @platform = args[:platform] if args.key?(:platform) end |