Class: Google::Apis::DfareportingV5::CampaignCreativeAssociation

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CampaignCreativeAssociation

Returns a new instance of CampaignCreativeAssociation.



1923
1924
1925
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1923

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)


1915
1916
1917
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1915

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)


1921
1922
1923
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1921

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1928
1929
1930
1931
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1928

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