Class: Google::Apis::AdexchangesellerV2_0::CustomChannel::TargetingInfo
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangesellerV2_0::CustomChannel::TargetingInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangeseller_v2_0/classes.rb,
generated/google/apis/adexchangeseller_v2_0/representations.rb,
generated/google/apis/adexchangeseller_v2_0/representations.rb
Overview
The targeting information of this custom channel, if activated.
Instance Attribute Summary collapse
-
#ads_appear_on ⇒ String
The name used to describe this channel externally.
-
#description ⇒ String
The external description of the channel.
-
#location ⇒ String
The locations in which ads appear.
-
#site_language ⇒ String
The language of the sites ads will be displayed on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetingInfo
constructor
A new instance of TargetingInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TargetingInfo
Returns a new instance of TargetingInfo
320 321 322 |
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 320 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ads_appear_on ⇒ String
The name used to describe this channel externally.
Corresponds to the JSON property adsAppearOn
299 300 301 |
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 299 def ads_appear_on @ads_appear_on end |
#description ⇒ String
The external description of the channel.
Corresponds to the JSON property description
304 305 306 |
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 304 def description @description end |
#location ⇒ String
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
313 314 315 |
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 313 def location @location end |
#site_language ⇒ String
The language of the sites ads will be displayed on.
Corresponds to the JSON property siteLanguage
318 319 320 |
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 318 def site_language @site_language end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
325 326 327 328 329 330 |
# File 'generated/google/apis/adexchangeseller_v2_0/classes.rb', line 325 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 |