Class: Google::Apis::DisplayvideoV3::KeywordAssignedTargetingOptionDetails

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeywordAssignedTargetingOptionDetails

Returns a new instance of KeywordAssignedTargetingOptionDetails.



7940
7941
7942
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7940

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

Instance Attribute Details

#keywordString

Required. The keyword, for example car insurance. Positive keyword cannot be offensive word. Must be UTF-8 encoded with a maximum size of 255 bytes. Maximum number of characters is 80. Maximum number of words is 10. Corresponds to the JSON property keyword

Returns:

  • (String)


7932
7933
7934
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7932

def keyword
  @keyword
end

#negativeBoolean Also known as: negative?

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

Returns:

  • (Boolean)


7937
7938
7939
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7937

def negative
  @negative
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7945
7946
7947
7948
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 7945

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