class Google::Apis::DfareportingV2_1::CreativeAssignment

Creative Assignment.

Attributes

active[RW]

Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. Corresponds to the JSON property `active` @return [Boolean]

active?[RW]

Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. Corresponds to the JSON property `active` @return [Boolean]

apply_event_tags[RW]

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` @return [Boolean]

apply_event_tags?[RW]

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` @return [Boolean]

click_through_url[RW]

Click-through URL Corresponds to the JSON property `clickThroughUrl` @return [Google::Apis::DfareportingV2_1::ClickThroughUrl]

companion_creative_overrides[RW]

Companion creative overrides for this creative assignment. Applicable to video ads. Corresponds to the JSON property `companionCreativeOverrides` @return [Array<Google::Apis::DfareportingV2_1::CompanionClickThroughOverride>]

creative_group_assignments[RW]

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` @return [Array<Google::Apis::DfareportingV2_1::CreativeGroupAssignment>]

creative_id[RW]

ID of the creative to be assigned. This is a required field. Corresponds to the JSON property `creativeId` @return [String]

creative_id_dimension_value[RW]

Represents a DimensionValue resource. Corresponds to the JSON property `creativeIdDimensionValue` @return [Google::Apis::DfareportingV2_1::DimensionValue]

end_time[RW]

Date and time that the assigned creative should stop serving. Must be later than the start time. Corresponds to the JSON property `endTime` @return [DateTime]

rich_media_exit_overrides[RW]

Rich media exit overrides for this creative assignment. Applicable when the creative type is any of the following:

  • 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

  • ADVANCED_BANNER

  • VPAID_LINEAR

  • VPAID_NON_LINEAR

Corresponds to the JSON property `richMediaExitOverrides` @return [Array<Google::Apis::DfareportingV2_1::RichMediaExitOverride>]

sequence[RW]

Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Corresponds to the JSON property `sequence` @return [Fixnum]

ssl_compliant[RW]

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` @return [Boolean]

ssl_compliant?[RW]

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` @return [Boolean]

start_time[RW]

Date and time that the assigned creative should start serving. Corresponds to the JSON property `startTime` @return [DateTime]

weight[RW]

Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Corresponds to the JSON property `weight` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 3270
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dfareporting_v2_1/classes.rb, line 3275
def update!(**args)
  @active = args[:active] unless args[:active].nil?
  @apply_event_tags = args[:apply_event_tags] unless args[:apply_event_tags].nil?
  @click_through_url = args[:click_through_url] unless args[:click_through_url].nil?
  @companion_creative_overrides = args[:companion_creative_overrides] unless args[:companion_creative_overrides].nil?
  @creative_group_assignments = args[:creative_group_assignments] unless args[:creative_group_assignments].nil?
  @creative_id = args[:creative_id] unless args[:creative_id].nil?
  @creative_id_dimension_value = args[:creative_id_dimension_value] unless args[:creative_id_dimension_value].nil?
  @end_time = args[:end_time] unless args[:end_time].nil?
  @rich_media_exit_overrides = args[:rich_media_exit_overrides] unless args[:rich_media_exit_overrides].nil?
  @sequence = args[:sequence] unless args[:sequence].nil?
  @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil?
  @start_time = args[:start_time] unless args[:start_time].nil?
  @weight = args[:weight] unless args[:weight].nil?
end