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

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 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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UrlTargeting

Returns a new instance of UrlTargeting.



4086
4087
4088
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 4086

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


4079
4080
4081
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 4079

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


4084
4085
4086
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 4084

def targeted_urls
  @targeted_urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4091
4092
4093
4094
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 4091

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