Class: Google::Apis::DfareportingV2_8::CreativeAssetId

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

Creative Asset ID.

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

Returns a new instance of CreativeAssetId



3619
3620
3621
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 3619

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

Instance Attribute Details

#nameString

Name of the creative asset. This is a required field while inserting an asset. After insertion, this assetIdentifier is used to identify the uploaded asset. Characters in the name must be alphanumeric or one of the following: ".-_ ". Spaces are allowed. Corresponds to the JSON property name

Returns:

  • (String)


3611
3612
3613
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 3611

def name
  @name
end

#typeString

Type of asset to upload. This is a required field. FLASH and IMAGE are no longer supported for new uploads. All image assets should use HTML_IMAGE. Corresponds to the JSON property type

Returns:

  • (String)


3617
3618
3619
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 3617

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3624
3625
3626
3627
# File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 3624

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