Class: Google::Apis::Adexchangebuyer2V2beta1::PlacementTargeting

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

Overview

Represents targeting about where the ads can appear, for example, certain sites or mobile applications. Different placement targeting types will be logically OR'ed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlacementTargeting

Returns a new instance of PlacementTargeting.



3040
3041
3042
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3040

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

Instance Attribute Details

#mobile_application_targetingGoogle::Apis::Adexchangebuyer2V2beta1::MobileApplicationTargeting

Mobile application targeting settings. Corresponds to the JSON property mobileApplicationTargeting



3031
3032
3033
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3031

def mobile_application_targeting
  @mobile_application_targeting
end

#url_targetingGoogle::Apis::Adexchangebuyer2V2beta1::UrlTargeting

Represents a list of targeted and excluded URLs (for example, google.com). For Private Auction and AdX Preferred Deals, URLs are either included or excluded. For Programmatic Guaranteed and Preferred Deals, this doesn't apply. Corresponds to the JSON property urlTargeting



3038
3039
3040
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3038

def url_targeting
  @url_targeting
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3045
3046
3047
3048
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3045

def update!(**args)
  @mobile_application_targeting = args[:mobile_application_targeting] if args.key?(:mobile_application_targeting)
  @url_targeting = args[:url_targeting] if args.key?(:url_targeting)
end