Class: Google::Apis::Adexchangebuyer2V2beta1::UrlTargeting

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

Overview

Represents a list of targeted and excluded URLs (e.g., 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.

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

Returns a new instance of UrlTargeting.


3973
3974
3975
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3973

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

Instance Attribute Details

#excluded_urlsArray<String>

A list of URLs to be excluded. Corresponds to the JSON property excludedUrls

Returns:

  • (Array<String>)

3966
3967
3968
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3966

def excluded_urls
  @excluded_urls
end

#targeted_urlsArray<String>

A list of URLs to be included. Corresponds to the JSON property targetedUrls

Returns:

  • (Array<String>)

3971
3972
3973
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3971

def targeted_urls
  @targeted_urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3978
3979
3980
3981
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3978

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