Class: Google::Apis::DfareportingV4::CreativeAssignment

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 Assignment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreativeAssignment

Returns a new instance of CreativeAssignment.



4414
4415
4416
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4414

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

Instance Attribute Details

#activeBoolean Also known as: active?

Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. Corresponds to the JSON property active

Returns:

  • (Boolean)


4335
4336
4337
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4335

def active
  @active
end

#apply_event_tagsBoolean Also known as: apply_event_tags?

Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. Corresponds to the JSON property applyEventTags

Returns:

  • (Boolean)


4344
4345
4346
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4344

def apply_event_tags
  @apply_event_tags
end

#click_through_urlGoogle::Apis::DfareportingV4::ClickThroughUrl

Click-through URL Corresponds to the JSON property clickThroughUrl



4350
4351
4352
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4350

def click_through_url
  @click_through_url
end

#companion_creative_overridesArray<Google::Apis::DfareportingV4::CompanionClickThroughOverride>

Companion creative overrides for this creative assignment. Applicable to video ads. Corresponds to the JSON property companionCreativeOverrides



4356
4357
4358
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4356

def companion_creative_overrides
  @companion_creative_overrides
end

#creative_group_assignmentsArray<Google::Apis::DfareportingV4::CreativeGroupAssignment>

Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. Corresponds to the JSON property creativeGroupAssignments



4362
4363
4364
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4362

def creative_group_assignments
  @creative_group_assignments
end

#creative_idFixnum

ID of the creative to be assigned. This is a required field. Corresponds to the JSON property creativeId

Returns:

  • (Fixnum)


4367
4368
4369
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4367

def creative_id
  @creative_id
end

#creative_id_dimension_valueGoogle::Apis::DfareportingV4::DimensionValue

Represents a DimensionValue resource. Corresponds to the JSON property creativeIdDimensionValue



4372
4373
4374
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4372

def creative_id_dimension_value
  @creative_id_dimension_value
end

#end_timeDateTime

Corresponds to the JSON property endTime

Returns:

  • (DateTime)


4377
4378
4379
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4377

def end_time
  @end_time
end

#rich_media_exit_overridesArray<Google::Apis::DfareportingV4::RichMediaExitOverride>

Rich media exit overrides for this creative assignment. Applicable when the creative type is any of the following: - DISPLAY - RICH_MEDIA_INPAGE - RICH_MEDIA_INPAGE_FLOATING - RICH_MEDIA_IM_EXPAND - RICH_MEDIA_EXPANDING - RICH_MEDIA_INTERSTITIAL_FLOAT - RICH_MEDIA_MOBILE_IN_APP - RICH_MEDIA_MULTI_FLOATING - RICH_MEDIA_PEEL_DOWN - VPAID_LINEAR - VPAID_NON_LINEAR Corresponds to the JSON property richMediaExitOverrides



4387
4388
4389
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4387

def rich_media_exit_overrides
  @rich_media_exit_overrides
end

#sequenceFixnum

Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. Corresponds to the JSON property sequence

Returns:

  • (Fixnum)


4394
4395
4396
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4394

def sequence
  @sequence
end

#ssl_compliantBoolean Also known as: ssl_compliant?

Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. Corresponds to the JSON property sslCompliant

Returns:

  • (Boolean)


4400
4401
4402
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4400

def ssl_compliant
  @ssl_compliant
end

#start_timeDateTime

Corresponds to the JSON property startTime

Returns:

  • (DateTime)


4406
4407
4408
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4406

def start_time
  @start_time
end

#weightFixnum

Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. Corresponds to the JSON property weight

Returns:

  • (Fixnum)


4412
4413
4414
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4412

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 4419

def update!(**args)
  @active = args[:active] if args.key?(:active)
  @apply_event_tags = args[:apply_event_tags] if args.key?(:apply_event_tags)
  @click_through_url = args[:click_through_url] if args.key?(:click_through_url)
  @companion_creative_overrides = args[:companion_creative_overrides] if args.key?(:companion_creative_overrides)
  @creative_group_assignments = args[:creative_group_assignments] if args.key?(:creative_group_assignments)
  @creative_id = args[:creative_id] if args.key?(:creative_id)
  @creative_id_dimension_value = args[:creative_id_dimension_value] if args.key?(:creative_id_dimension_value)
  @end_time = args[:end_time] if args.key?(:end_time)
  @rich_media_exit_overrides = args[:rich_media_exit_overrides] if args.key?(:rich_media_exit_overrides)
  @sequence = args[:sequence] if args.key?(:sequence)
  @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant)
  @start_time = args[:start_time] if args.key?(:start_time)
  @weight = args[:weight] if args.key?(:weight)
end