class Google::Apis::DfareportingV2_3::Ad

Contains properties of a DCM ad.

Attributes

account_id[RW]

Account ID of this ad. This is a read-only field that can be left blank. Corresponds to the JSON property `accountId` @return [String]

active[RW]

Whether this ad is active. Corresponds to the JSON property `active` @return [Boolean]

active?[RW]

Whether this ad is active. Corresponds to the JSON property `active` @return [Boolean]

advertiser_id[RW]

Advertiser ID of this ad. This is a required field on insertion. Corresponds to the JSON property `advertiserId` @return [String]

advertiser_id_dimension_value[RW]

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

archived[RW]

Whether this ad is archived. Corresponds to the JSON property `archived` @return [Boolean]

archived?[RW]

Whether this ad is archived. Corresponds to the JSON property `archived` @return [Boolean]

audience_segment_id[RW]

Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. Corresponds to the JSON property `audienceSegmentId` @return [String]

campaign_id[RW]

Campaign ID of this ad. This is a required field on insertion. Corresponds to the JSON property `campaignId` @return [String]

campaign_id_dimension_value[RW]

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

click_through_url[RW]

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

click_through_url_suffix_properties[RW]

Click Through URL Suffix settings. Corresponds to the JSON property `clickThroughUrlSuffixProperties` @return [Google::Apis::DfareportingV2_3::ClickThroughUrlSuffixProperties]

comments[RW]

Comments for this ad. Corresponds to the JSON property `comments` @return [String]

compatibility[RW]

Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. WEB and WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard. Corresponds to the JSON property `compatibility` @return [String]

create_info[RW]

Modification timestamp. Corresponds to the JSON property `createInfo` @return [Google::Apis::DfareportingV2_3::LastModifiedInfo]

creative_group_assignments[RW]

Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. 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_3::CreativeGroupAssignment>]

creative_rotation[RW]

Creative Rotation. Corresponds to the JSON property `creativeRotation` @return [Google::Apis::DfareportingV2_3::CreativeRotation]

day_part_targeting[RW]

Day Part Targeting. Corresponds to the JSON property `dayPartTargeting` @return [Google::Apis::DfareportingV2_3::DayPartTargeting]

default_click_through_event_tag_properties[RW]

Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. Corresponds to the JSON property `defaultClickThroughEventTagProperties` @return [Google::Apis::DfareportingV2_3::DefaultClickThroughEventTagProperties]

delivery_schedule[RW]

Delivery Schedule. Corresponds to the JSON property `deliverySchedule` @return [Google::Apis::DfareportingV2_3::DeliverySchedule]

dynamic_click_tracker[RW]

Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. Corresponds to the JSON property `dynamicClickTracker` @return [Boolean]

dynamic_click_tracker?[RW]

Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. Corresponds to the JSON property `dynamicClickTracker` @return [Boolean]

end_time[RW]

Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. Corresponds to the JSON property `endTime` @return [DateTime]

event_tag_overrides[RW]

Event tag overrides for this ad. Corresponds to the JSON property `eventTagOverrides` @return [Array<Google::Apis::DfareportingV2_3::EventTagOverride>]

geo_targeting[RW]

Geographical Targeting. Corresponds to the JSON property `geoTargeting` @return [Google::Apis::DfareportingV2_3::GeoTargeting]

id[RW]

ID of this ad. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [String]

id_dimension_value[RW]

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

key_value_targeting_expression[RW]

Key Value Targeting Expression. Corresponds to the JSON property `keyValueTargetingExpression` @return [Google::Apis::DfareportingV2_3::KeyValueTargetingExpression]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#ad”. Corresponds to the JSON property `kind` @return [String]

last_modified_info[RW]

Modification timestamp. Corresponds to the JSON property `lastModifiedInfo` @return [Google::Apis::DfareportingV2_3::LastModifiedInfo]

name[RW]

Name of this ad. This is a required field and must be less than 256 characters long. Corresponds to the JSON property `name` @return [String]

placement_assignments[RW]

Placement assignments for this ad. Corresponds to the JSON property `placementAssignments` @return [Array<Google::Apis::DfareportingV2_3::PlacementAssignment>]

remarketing_list_expression[RW]

Remarketing List Targeting Expression. Corresponds to the JSON property `remarketingListExpression` @return [Google::Apis::DfareportingV2_3::ListTargetingExpression]

size[RW]

Represents the dimensions of ads, placements, creatives, or creative assets. Corresponds to the JSON property `size` @return [Google::Apis::DfareportingV2_3::Size]

ssl_compliant[RW]

Whether this ad 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 this ad 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_required[RW]

Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. Corresponds to the JSON property `sslRequired` @return [Boolean]

ssl_required?[RW]

Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. Corresponds to the JSON property `sslRequired` @return [Boolean]

start_time[RW]

Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. Corresponds to the JSON property `startTime` @return [DateTime]

subaccount_id[RW]

Subaccount ID of this ad. This is a read-only field that can be left blank. Corresponds to the JSON property `subaccountId` @return [String]

technology_targeting[RW]

Technology Targeting. Corresponds to the JSON property `technologyTargeting` @return [Google::Apis::DfareportingV2_3::TechnologyTargeting]

type[RW]

Type of ad. This is a required field on insertion. Note that default ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_3/classes.rb, line 856
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_3/classes.rb, line 861
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @active = args[:active] if args.key?(:active)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value)
  @archived = args[:archived] if args.key?(:archived)
  @audience_segment_id = args[:audience_segment_id] if args.key?(:audience_segment_id)
  @campaign_id = args[:campaign_id] if args.key?(:campaign_id)
  @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value)
  @click_through_url = args[:click_through_url] if args.key?(:click_through_url)
  @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] if args.key?(:click_through_url_suffix_properties)
  @comments = args[:comments] if args.key?(:comments)
  @compatibility = args[:compatibility] if args.key?(:compatibility)
  @create_info = args[:create_info] if args.key?(:create_info)
  @creative_group_assignments = args[:creative_group_assignments] if args.key?(:creative_group_assignments)
  @creative_rotation = args[:creative_rotation] if args.key?(:creative_rotation)
  @day_part_targeting = args[:day_part_targeting] if args.key?(:day_part_targeting)
  @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] if args.key?(:default_click_through_event_tag_properties)
  @delivery_schedule = args[:delivery_schedule] if args.key?(:delivery_schedule)
  @dynamic_click_tracker = args[:dynamic_click_tracker] if args.key?(:dynamic_click_tracker)
  @end_time = args[:end_time] if args.key?(:end_time)
  @event_tag_overrides = args[:event_tag_overrides] if args.key?(:event_tag_overrides)
  @geo_targeting = args[:geo_targeting] if args.key?(:geo_targeting)
  @id = args[:id] if args.key?(:id)
  @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value)
  @key_value_targeting_expression = args[:key_value_targeting_expression] if args.key?(:key_value_targeting_expression)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info)
  @name = args[:name] if args.key?(:name)
  @placement_assignments = args[:placement_assignments] if args.key?(:placement_assignments)
  @remarketing_list_expression = args[:remarketing_list_expression] if args.key?(:remarketing_list_expression)
  @size = args[:size] if args.key?(:size)
  @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant)
  @ssl_required = args[:ssl_required] if args.key?(:ssl_required)
  @start_time = args[:start_time] if args.key?(:start_time)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
  @technology_targeting = args[:technology_targeting] if args.key?(:technology_targeting)
  @type = args[:type] if args.key?(:type)
end