Class: Google::Apis::AuthorizedbuyersmarketplaceV1::UriTargeting

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

Overview

Represents a list of targeted and excluded URLs (e.g., google.com). For Private Auction 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) ⇒ UriTargeting

Returns a new instance of UriTargeting.



2195
2196
2197
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 2195

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

Instance Attribute Details

#excluded_urisArray<String>

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

Returns:

  • (Array<String>)


2188
2189
2190
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 2188

def excluded_uris
  @excluded_uris
end

#targeted_urisArray<String>

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

Returns:

  • (Array<String>)


2193
2194
2195
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 2193

def targeted_uris
  @targeted_uris
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2200
2201
2202
2203
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 2200

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