Class: Google::Apis::DfareportingV4::CreativeAssetMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::CreativeAssetMetadata
- 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
CreativeAssets contains properties of a creative asset file which will be uploaded or has already been uploaded. Refer to the creative sample code for how to upload assets and insert a creative.
Instance Attribute Summary collapse
-
#asset_identifier ⇒ Google::Apis::DfareportingV4::CreativeAssetId
Creative Asset ID.
-
#click_tags ⇒ Array<Google::Apis::DfareportingV4::ClickTag>
List of detected click tags for assets.
-
#counter_custom_events ⇒ Array<Google::Apis::DfareportingV4::CreativeCustomEvent>
List of counter events configured for the asset.
-
#detected_features ⇒ Array<String>
List of feature dependencies for the creative asset that are detected by Campaign Manager.
-
#exit_custom_events ⇒ Array<Google::Apis::DfareportingV4::CreativeCustomEvent>
List of exit events configured for the asset.
-
#id ⇒ Fixnum
Numeric ID of the asset.
-
#id_dimension_value ⇒ Google::Apis::DfareportingV4::DimensionValue
Represents a DimensionValue resource.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#rich_media ⇒ Boolean
(also: #rich_media?)
True if the uploaded asset is a rich media asset.
-
#timer_custom_events ⇒ Array<Google::Apis::DfareportingV4::CreativeCustomEvent>
List of timer events configured for the asset.
-
#warned_validation_rules ⇒ Array<String>
Rules validated during code generation that generated a warning.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreativeAssetMetadata
constructor
A new instance of CreativeAssetMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreativeAssetMetadata
Returns a new instance of CreativeAssetMetadata.
4277 4278 4279 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4277 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_identifier ⇒ Google::Apis::DfareportingV4::CreativeAssetId
Creative Asset ID.
Corresponds to the JSON property assetIdentifier
4206 4207 4208 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4206 def asset_identifier @asset_identifier end |
#click_tags ⇒ Array<Google::Apis::DfareportingV4::ClickTag>
List of detected click tags for assets. This is a read-only, auto-generated
field. This field is empty for a rich media asset.
Corresponds to the JSON property clickTags
4212 4213 4214 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4212 def @click_tags end |
#counter_custom_events ⇒ Array<Google::Apis::DfareportingV4::CreativeCustomEvent>
List of counter events configured for the asset. This is a read-only, auto-
generated field and only applicable to a rich media asset.
Corresponds to the JSON property counterCustomEvents
4218 4219 4220 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4218 def counter_custom_events @counter_custom_events end |
#detected_features ⇒ Array<String>
List of feature dependencies for the creative asset that are detected by
Campaign Manager. Feature dependencies are features that a browser must be
able to support in order to render your HTML5 creative correctly. This is a
read-only, auto-generated field.
Corresponds to the JSON property detectedFeatures
4226 4227 4228 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4226 def detected_features @detected_features end |
#exit_custom_events ⇒ Array<Google::Apis::DfareportingV4::CreativeCustomEvent>
List of exit events configured for the asset. This is a read-only, auto-
generated field and only applicable to a rich media asset.
Corresponds to the JSON property exitCustomEvents
4232 4233 4234 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4232 def exit_custom_events @exit_custom_events end |
#id ⇒ Fixnum
Numeric ID of the asset. This is a read-only, auto-generated field.
Corresponds to the JSON property id
4237 4238 4239 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4237 def id @id end |
#id_dimension_value ⇒ Google::Apis::DfareportingV4::DimensionValue
Represents a DimensionValue resource.
Corresponds to the JSON property idDimensionValue
4242 4243 4244 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4242 def id_dimension_value @id_dimension_value end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#creativeAssetMetadata".
Corresponds to the JSON property kind
4248 4249 4250 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4248 def kind @kind end |
#rich_media ⇒ Boolean Also known as: rich_media?
True if the uploaded asset is a rich media asset. This is a read-only, auto-
generated field.
Corresponds to the JSON property richMedia
4254 4255 4256 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4254 def rich_media @rich_media end |
#timer_custom_events ⇒ Array<Google::Apis::DfareportingV4::CreativeCustomEvent>
List of timer events configured for the asset. This is a read-only, auto-
generated field and only applicable to a rich media asset.
Corresponds to the JSON property timerCustomEvents
4261 4262 4263 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4261 def timer_custom_events @timer_custom_events end |
#warned_validation_rules ⇒ Array<String>
Rules validated during code generation that generated a warning. This is a read-only, auto-generated field. Possible values are: - "ADMOB_REFERENCED" - " ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" - "CLICK_TAG_HARD_CODED" - " CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" - "CLICK_TAG_MISSING" - " CLICK_TAG_MORE_THAN_ONE" - "CLICK_TAG_NON_TOP_LEVEL" - " COMPONENT_UNSUPPORTED_DCM" - "ENABLER_UNSUPPORTED_METHOD_DCM" - " EXTERNAL_FILE_REFERENCED" - "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" - " GWD_PROPERTIES_INVALID" - "HTML5_FEATURE_UNSUPPORTED" - "LINKED_FILE_NOT_FOUND"
- "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" - "NOT_SSL_COMPLIANT" - "
ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" - "SVG_INVALID" - "ZIP_INVALID"
Corresponds to the JSON property
warnedValidationRules
4275 4276 4277 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4275 def warned_validation_rules @warned_validation_rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4282 def update!(**args) @asset_identifier = args[:asset_identifier] if args.key?(:asset_identifier) @click_tags = args[:click_tags] if args.key?(:click_tags) @counter_custom_events = args[:counter_custom_events] if args.key?(:counter_custom_events) @detected_features = args[:detected_features] if args.key?(:detected_features) @exit_custom_events = args[:exit_custom_events] if args.key?(:exit_custom_events) @id = args[:id] if args.key?(:id) @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) @kind = args[:kind] if args.key?(:kind) @rich_media = args[:rich_media] if args.key?(:rich_media) @timer_custom_events = args[:timer_custom_events] if args.key?(:timer_custom_events) @warned_validation_rules = args[:warned_validation_rules] if args.key?(:warned_validation_rules) end |