class Google::Apis::DfareportingV2_3::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_3::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_3::DimensionValue]
Click-through URL Corresponds to the JSON property `clickThroughUrl` @return [Google::Apis::DfareportingV2_3::ClickThroughUrl]
Click Through URL Suffix settings. Corresponds to the JSON property `clickThroughUrlSuffixProperties` @return [Google::Apis::DfareportingV2_3::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_3::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_3::CreativeGroupAssignment>]
Creative Rotation. Corresponds to the JSON property `creativeRotation` @return [Google::Apis::DfareportingV2_3::CreativeRotation]
Day Part Targeting. Corresponds to the JSON property `dayPartTargeting` @return [Google::Apis::DfareportingV2_3::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_3::DefaultClickThroughEventTagProperties]
Delivery Schedule. Corresponds to the JSON property `deliverySchedule` @return [Google::Apis::DfareportingV2_3::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_3::EventTagOverride>]
Geographical Targeting. Corresponds to the JSON property `geoTargeting` @return [Google::Apis::DfareportingV2_3::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_3::DimensionValue]
Key Value Targeting Expression. Corresponds to the JSON property `keyValueTargetingExpression` @return [Google::Apis::DfareportingV2_3::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_3::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_3::PlacementAssignment>]
Remarketing List Targeting Expression. Corresponds to the JSON property `remarketingListExpression` @return [Google::Apis::DfareportingV2_3::ListTargetingExpression]
Represents the dimensions of ads, placements, creatives, or creative assets. Corresponds to the JSON property `size` @return [Google::Apis::DfareportingV2_3::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_3::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_3/classes.rb, line 856 def initialize(**args) update!(**args) end
Public Instance Methods
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