Class: Google::Apis::DisplayvideoV1::NegativeKeyword

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

Overview

A negatively targeted keyword that belongs to a negative keyword list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NegativeKeyword

Returns a new instance of NegativeKeyword.



6467
6468
6469
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 6467

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

Instance Attribute Details

#keyword_valueString

Required. Immutable. The negatively targeted keyword, for example car insurance. Must be UTF-8 encoded with a maximum size of 255 bytes. Maximum number of characters is 80. Maximum number of words is 10. Valid characters are restricted to ASCII characters only. The only URL-escaping permitted is for representing whitespace between words. Leading or trailing whitespace is ignored. Corresponds to the JSON property keywordValue

Returns:

  • (String)


6460
6461
6462
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 6460

def keyword_value
  @keyword_value
end

#nameString

Output only. The resource name of the negative keyword. Corresponds to the JSON property name

Returns:

  • (String)


6465
6466
6467
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 6465

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6472
6473
6474
6475
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 6472

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