Class: Google::Apis::DfareportingV4::CreativeAssetId

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

Creative Asset ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreativeAssetId

Returns a new instance of CreativeAssetId.



4097
4098
4099
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4097

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)


4089
4090
4091
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4089

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)


4095
4096
4097
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4095

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4102
4103
4104
4105
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4102

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