Class: Google::Apis::DisplayvideoV1::UrlAssignedTargetingOptionDetails

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

Overview

Details for assigned URL targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is TARGETING_TYPE_URL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UrlAssignedTargetingOptionDetails

Returns a new instance of UrlAssignedTargetingOptionDetails.



10638
10639
10640
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10638

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

Instance Attribute Details

#negativeBoolean Also known as: negative?

Indicates if this option is being negatively targeted. Corresponds to the JSON property negative

Returns:

  • (Boolean)


10627
10628
10629
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10627

def negative
  @negative
end

#urlString

Required. The URL, for example example.com. DV360 supports two levels of subdirectory targeting, for example www.example.com/one-subdirectory-level/ second-level, and five levels of subdomain targeting, for example five.four. three.two.one.example.com. Corresponds to the JSON property url

Returns:

  • (String)


10636
10637
10638
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10636

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10643
10644
10645
10646
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10643

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