Class: Google::Apis::DfareportingV4::CreativeFieldValue

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

Overview

Contains properties of a creative field value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreativeFieldValue

Returns a new instance of CreativeFieldValue.



4563
4564
4565
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4563

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)


4549
4550
4551
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4549

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)


4555
4556
4557
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4555

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)


4561
4562
4563
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4561

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4568
4569
4570
4571
4572
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4568

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