class Google::Apis::DfareportingV2_1::Ad
Contains properties of a DCM ad.
Attributes
Account ID of this ad. This is a read-only field that can be left blank. Corresponds to the JSON property `accountId` @return [String]
Whether this ad is active. Corresponds to the JSON property `active` @return [Boolean]
Whether this ad is active. Corresponds to the JSON property `active` @return [Boolean]
Advertiser ID of this ad. This is a required field on insertion. Corresponds to the JSON property `advertiserId` @return [String]
Represents a DimensionValue resource. Corresponds to the JSON property `advertiserIdDimensionValue` @return [Google::Apis::DfareportingV2_1::DimensionValue]
Whether this ad is archived. Corresponds to the JSON property `archived` @return [Boolean]
Whether this ad is archived. Corresponds to the JSON property `archived` @return [Boolean]
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 of this ad. This is a required field on insertion. Corresponds to the JSON property `campaignId` @return [String]
Represents a DimensionValue resource. Corresponds to the JSON property `campaignIdDimensionValue` @return [Google::Apis::DfareportingV2_1::DimensionValue]
Click-through URL Corresponds to the JSON property `clickThroughUrl` @return [Google::Apis::DfareportingV2_1::ClickThroughUrl]
Click Through URL Suffix settings. Corresponds to the JSON property `clickThroughUrlSuffixProperties` @return [Google::Apis::DfareportingV2_1::ClickThroughUrlSuffixProperties]
Comments for this ad. Corresponds to the JSON property `comments` @return [String]
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]
Modification timestamp. Corresponds to the JSON property `createInfo` @return [Google::Apis::DfareportingV2_1::LastModifiedInfo]
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_1::CreativeGroupAssignment>]
Creative Rotation. Corresponds to the JSON property `creativeRotation` @return [Google::Apis::DfareportingV2_1::CreativeRotation]
Day Part Targeting. Corresponds to the JSON property `dayPartTargeting` @return [Google::Apis::DfareportingV2_1::DayPartTargeting]
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_1::DefaultClickThroughEventTagProperties]
Delivery Schedule. Corresponds to the JSON property `deliverySchedule` @return [Google::Apis::DfareportingV2_1::DeliverySchedule]
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]
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]
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 for this ad. Corresponds to the JSON property `eventTagOverrides` @return [Array<Google::Apis::DfareportingV2_1::EventTagOverride>]
Geographical Targeting. Corresponds to the JSON property `geoTargeting` @return [Google::Apis::DfareportingV2_1::GeoTargeting]
ID of this ad. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [String]
Represents a DimensionValue resource. Corresponds to the JSON property `idDimensionValue` @return [Google::Apis::DfareportingV2_1::DimensionValue]
Key Value Targeting Expression. Corresponds to the JSON property `keyValueTargetingExpression` @return [Google::Apis::DfareportingV2_1::KeyValueTargetingExpression]
Identifies what kind of resource this is. Value: the fixed string “ dfareporting#ad”. Corresponds to the JSON property `kind` @return [String]
Modification timestamp. Corresponds to the JSON property `lastModifiedInfo` @return [Google::Apis::DfareportingV2_1::LastModifiedInfo]
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 for this ad. Corresponds to the JSON property `placementAssignments` @return [Array<Google::Apis::DfareportingV2_1::PlacementAssignment>]
Remarketing List Targeting Expression. Corresponds to the JSON property `remarketing_list_expression` @return [Google::Apis::DfareportingV2_1::ListTargetingExpression]
Represents the dimensions of ads, placements, creatives, or creative assets. Corresponds to the JSON property `size` @return [Google::Apis::DfareportingV2_1::Size]
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]
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]
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]
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]
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 of this ad. This is a read-only field that can be left blank. Corresponds to the JSON property `subaccountId` @return [String]
Technology Targeting. Corresponds to the JSON property `technologyTargeting` @return [Google::Apis::DfareportingV2_1::TechnologyTargeting]
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
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 848 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 853 def update!(**args) @account_id = args[:account_id] unless args[:account_id].nil? @active = args[:active] unless args[:active].nil? @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? @archived = args[:archived] unless args[:archived].nil? @audience_segment_id = args[:audience_segment_id] unless args[:audience_segment_id].nil? @campaign_id = args[:campaign_id] unless args[:campaign_id].nil? @campaign_id_dimension_value = args[:campaign_id_dimension_value] unless args[:campaign_id_dimension_value].nil? @click_through_url = args[:click_through_url] unless args[:click_through_url].nil? @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] unless args[:click_through_url_suffix_properties].nil? @comments = args[:comments] unless args[:comments].nil? @compatibility = args[:compatibility] unless args[:compatibility].nil? @create_info = args[:create_info] unless args[:create_info].nil? @creative_group_assignments = args[:creative_group_assignments] unless args[:creative_group_assignments].nil? @creative_rotation = args[:creative_rotation] unless args[:creative_rotation].nil? @day_part_targeting = args[:day_part_targeting] unless args[:day_part_targeting].nil? @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] unless args[:default_click_through_event_tag_properties].nil? @delivery_schedule = args[:delivery_schedule] unless args[:delivery_schedule].nil? @dynamic_click_tracker = args[:dynamic_click_tracker] unless args[:dynamic_click_tracker].nil? @end_time = args[:end_time] unless args[:end_time].nil? @event_tag_overrides = args[:event_tag_overrides] unless args[:event_tag_overrides].nil? @geo_targeting = args[:geo_targeting] unless args[:geo_targeting].nil? @id = args[:id] unless args[:id].nil? @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? @key_value_targeting_expression = args[:key_value_targeting_expression] unless args[:key_value_targeting_expression].nil? @kind = args[:kind] unless args[:kind].nil? @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? @name = args[:name] unless args[:name].nil? @placement_assignments = args[:placement_assignments] unless args[:placement_assignments].nil? @remarketing_list_expression = args[:remarketing_list_expression] unless args[:remarketing_list_expression].nil? @size = args[:size] unless args[:size].nil? @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil? @ssl_required = args[:ssl_required] unless args[:ssl_required].nil? @start_time = args[:start_time] unless args[:start_time].nil? @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? @technology_targeting = args[:technology_targeting] unless args[:technology_targeting].nil? @type = args[:type] unless args[:type].nil? end