Class: Google::Apis::DfareportingV4::CreativeAssetId
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::CreativeAssetId
- 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
-
#name ⇒ String
Name of the creative asset.
-
#type ⇒ String
Type of asset to upload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreativeAssetId
constructor
A new instance of CreativeAssetId.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreativeAssetId
Returns a new instance of CreativeAssetId.
4186 4187 4188 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
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
4178 4179 4180 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4178 def name @name end |
#type ⇒ String
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
4184 4185 4186 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4184 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4191 4192 4193 4194 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4191 def update!(**args) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |