Class: Google::Apis::DfareportingV2_8::CampaignCreativeAssociation

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

Overview

Identifies a creative which has been associated with a given campaign.

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) ⇒ CampaignCreativeAssociation

Returns a new instance of CampaignCreativeAssociation



1665
1666
1667
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1665

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

Instance Attribute Details

#creative_idFixnum

ID of the creative associated with the campaign. This is a required field. Corresponds to the JSON property creativeId

Returns:

  • (Fixnum)


1657
1658
1659
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1657

def creative_id
  @creative_id
end

#kindString

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

Returns:

  • (String)


1663
1664
1665
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1663

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1670
1671
1672
1673
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1670

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