Class: Google::Apis::AdexchangesellerV1_1::CustomChannel::TargetingInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/adexchangeseller_v1_1/classes.rb,
generated/google/apis/adexchangeseller_v1_1/representations.rb,
generated/google/apis/adexchangeseller_v1_1/representations.rb

Overview

The targeting information of this custom channel, if activated.

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) ⇒ TargetingInfo

Returns a new instance of TargetingInfo



370
371
372
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 370

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

Instance Attribute Details

#ads_appear_onString

The name used to describe this channel externally. Corresponds to the JSON property adsAppearOn

Returns:

  • (String)


349
350
351
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 349

def ads_appear_on
  @ads_appear_on
end

#descriptionString

The external description of the channel. Corresponds to the JSON property description

Returns:

  • (String)


354
355
356
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 354

def description
  @description
end

#locationString

The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. Corresponds to the JSON property location

Returns:

  • (String)


363
364
365
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 363

def location
  @location
end

#site_languageString

The language of the sites ads will be displayed on. Corresponds to the JSON property siteLanguage

Returns:

  • (String)


368
369
370
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 368

def site_language
  @site_language
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



375
376
377
378
379
380
# File 'generated/google/apis/adexchangeseller_v1_1/classes.rb', line 375

def update!(**args)
  @ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on)
  @description = args[:description] if args.key?(:description)
  @location = args[:location] if args.key?(:location)
  @site_language = args[:site_language] if args.key?(:site_language)
end