Class: Google::Apis::DfareportingV2_1::CreativeField

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

Overview

Contains properties of a creative field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreativeField

Returns a new instance of CreativeField.


3412
3413
3414
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3412

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

Instance Attribute Details

#account_idString

Account ID of this creative field. This is a read-only field that can be left blank. Corresponds to the JSON property accountId

Returns:

  • (String)

3377
3378
3379
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3377

def 
  @account_id
end

#advertiser_idString

Advertiser ID of this creative field. This is a required field on insertion. Corresponds to the JSON property advertiserId

Returns:

  • (String)

3382
3383
3384
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3382

def advertiser_id
  @advertiser_id
end

#advertiser_id_dimension_valueGoogle::Apis::DfareportingV2_1::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property advertiserIdDimensionValue


3387
3388
3389
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3387

def advertiser_id_dimension_value
  @advertiser_id_dimension_value
end

#idString

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

Returns:

  • (String)

3392
3393
3394
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3392

def id
  @id
end

#kindString

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

Returns:

  • (String)

3398
3399
3400
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3398

def kind
  @kind
end

#nameString

Name of this creative field. This is a required field and must be less than 256 characters long and unique among creative fields of the same advertiser. Corresponds to the JSON property name

Returns:

  • (String)

3404
3405
3406
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3404

def name
  @name
end

#subaccount_idString

Subaccount ID of this creative field. This is a read-only field that can be left blank. Corresponds to the JSON property subaccountId

Returns:

  • (String)

3410
3411
3412
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3410

def subaccount_id
  @subaccount_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


3417
3418
3419
3420
3421
3422
3423
3424
3425
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3417

def update!(**args)
  @account_id = args[:account_id] unless args[:account_id].nil?
  @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil?
  @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil?
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @name = args[:name] unless args[:name].nil?
  @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil?
end