Class: Google::Apis::DfareportingV2_5::CreativeFieldValue

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

Overview

Contains properties of a creative field value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreativeFieldValue

Returns a new instance of CreativeFieldValue



3759
3760
3761
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3759

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

Instance Attribute Details

#idString

ID of this creative field value. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (String)


3745
3746
3747
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3745

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#creativeFieldValue". Corresponds to the JSON property kind

Returns:

  • (String)


3751
3752
3753
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3751

def kind
  @kind
end

#valueString

Value of this creative field value. It needs to be less than 256 characters in length and unique per creative field. Corresponds to the JSON property value

Returns:

  • (String)


3757
3758
3759
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3757

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3764
3765
3766
3767
3768
# File 'generated/google/apis/dfareporting_v2_5/classes.rb', line 3764

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @value = args[:value] if args.key?(:value)
end