class Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Context

Attributes

auction_type[RW]

Only set when contextType=AUCTION_TYPE. Represents the auction types this restriction applies to. Corresponds to the JSON property `auctionType` @return [Array<String>]

context_type[RW]

The type of context (e.g., location, platform, auction type, SSL-ness). Corresponds to the JSON property `contextType` @return [String]

geo_criteria_id[RW]

Only set when contextType=LOCATION. Represents the geo criterias this restriction applies to. Corresponds to the JSON property `geoCriteriaId` @return [Array<Fixnum>]

platform[RW]

Only set when contextType=PLATFORM. Represents the platforms this restriction applies to. Corresponds to the JSON property `platform` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/adexchangebuyer_v1_4/classes.rb, line 966
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/adexchangebuyer_v1_4/classes.rb, line 971
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