Class: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Context

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Context

Returns a new instance of Context.



1041
1042
1043
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1041

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

Instance Attribute Details

#auction_typeArray<String>

Only set when contextType=AUCTION_TYPE. Represents the auction types this restriction applies to. Corresponds to the JSON property auctionType

Returns:

  • (Array<String>)


1022
1023
1024
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1022

def auction_type
  @auction_type
end

#context_typeString

The type of context (e.g., location, platform, auction type, SSL-ness). Corresponds to the JSON property contextType

Returns:

  • (String)


1027
1028
1029
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1027

def context_type
  @context_type
end

#geo_criteria_idArray<Fixnum>

Only set when contextType=LOCATION. Represents the geo criterias this restriction applies to. Corresponds to the JSON property geoCriteriaId

Returns:

  • (Array<Fixnum>)


1033
1034
1035
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1033

def geo_criteria_id
  @geo_criteria_id
end

#platformArray<String>

Only set when contextType=PLATFORM. Represents the platforms this restriction applies to. Corresponds to the JSON property platform

Returns:

  • (Array<String>)


1039
1040
1041
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1039

def platform
  @platform
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1046
1047
1048
1049
1050
1051
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1046

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