Class: Google::Apis::DfareportingV3_1::CreativeFieldValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_1/classes.rb,
generated/google/apis/dfareporting_v3_1/representations.rb,
generated/google/apis/dfareporting_v3_1/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



4153
4154
4155
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4153

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

Instance Attribute Details

#idFixnum

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

Returns:

  • (Fixnum)


4139
4140
4141
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4139

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)


4145
4146
4147
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4145

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)


4151
4152
4153
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4151

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4158
4159
4160
4161
4162
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 4158

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