Show / Hide Table of Contents

Class AdEvent

An ad event.

Inheritance
object
AdEvent
Implements
IMessage<AdEvent>
IEquatable<AdEvent>
IDeepCloneable<AdEvent>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Ads.DataManager.V1
Assembly: Google.Ads.DataManager.V1.dll
Syntax
public sealed class AdEvent : IMessage<AdEvent>, IEquatable<AdEvent>, IDeepCloneable<AdEvent>, IBufferMessage, IMessage

Constructors

AdEvent()

Declaration
public AdEvent()

AdEvent(AdEvent)

Declaration
public AdEvent(AdEvent other)
Parameters
Type Name Description
AdEvent other

Properties

AdFormat

Enum value for ad format.

Declaration
public AdFormat AdFormat { get; set; }
Property Value
Type Description
AdFormat

AdFormatOneofCase

Declaration
public AdEvent.AdFormatOneofOneofCase AdFormatOneofCase { get; }
Property Value
Type Description
AdEvent.AdFormatOneofOneofCase

AdFormatString

String value for ad format.

Declaration
public string AdFormatString { get; set; }
Property Value
Type Description
string

AdGroupId

Optional. The ID of the associated ad group.

Declaration
public string AdGroupId { get; set; }
Property Value
Type Description
string

AdHeight

Optional. The height of the ad in pixels.

Declaration
public int AdHeight { get; set; }
Property Value
Type Description
int

AdId

Optional. The ID of the associated ad within the group.

Declaration
public string AdId { get; set; }
Property Value
Type Description
string

AdPlacement

Enum value for ad placement.

Declaration
public AdPlacement AdPlacement { get; set; }
Property Value
Type Description
AdPlacement

AdPlacementOneofCase

Declaration
public AdEvent.AdPlacementOneofOneofCase AdPlacementOneofCase { get; }
Property Value
Type Description
AdEvent.AdPlacementOneofOneofCase

AdPlacementString

String value for ad placement.

Declaration
public string AdPlacementString { get; set; }
Property Value
Type Description
string

AdType

Enum value for ad type.

Declaration
public AdType AdType { get; set; }
Property Value
Type Description
AdType

AdTypeOneofCase

Declaration
public AdEvent.AdTypeOneofOneofCase AdTypeOneofCase { get; }
Property Value
Type Description
AdEvent.AdTypeOneofOneofCase

AdTypeString

String value for ad type.

Declaration
public string AdTypeString { get; set; }
Property Value
Type Description
string

AdWidth

Optional. The width of the ad in pixels.

Declaration
public int AdWidth { get; set; }
Property Value
Type Description
int

AdvertiserId

Required. The ID of the advertiser for the ad event.

This must match the ID sent in the linking flow.

Declaration
public string AdvertiserId { get; set; }
Property Value
Type Description
string

AttributionHint

Optional. The partner-assumed attribution status for this ad event.

This acts only as a signal for how the partner assumed attribution played out, and does not force an end result in final reports.

Declaration
public AttributionHint AttributionHint { get; set; }
Property Value
Type Description
AttributionHint

CampaignId

Required. The ID of the associated campaign.

Declaration
public string CampaignId { get; set; }
Property Value
Type Description
string

CampaignName

Required. The name of the associated campaign.

Declaration
public string CampaignName { get; set; }
Property Value
Type Description
string

DeviceInfo

Optional. Information gathered about the device being used when the ad event happened.

Declaration
public DeviceInfo DeviceInfo { get; set; }
Property Value
Type Description
DeviceInfo

EventId

Optional. An ID created and managed by the caller that uniquely identifies this event.

Required if you want to deduplicate ad events that are included in multiple requests. Otherwise, this field is optional.

Declaration
public string EventId { get; set; }
Property Value
Type Description
string

EventSubtype

Enum value for event subtype.

Declaration
public AdEvent.Types.EventSubtype EventSubtype { get; set; }
Property Value
Type Description
AdEvent.Types.EventSubtype

EventSubtypeOneofCase

Declaration
public AdEvent.EventSubtypeOneofOneofCase EventSubtypeOneofCase { get; }
Property Value
Type Description
AdEvent.EventSubtypeOneofOneofCase

EventSubtypeString

String value for event subtype.

Declaration
public string EventSubtypeString { get; set; }
Property Value
Type Description
string

EventType

Required. The type of the event.

Declaration
public AdEvent.Types.EventType EventType { get; set; }
Property Value
Type Description
AdEvent.Types.EventType

HasAdFormat

Gets whether the "ad_format" field is set

Declaration
public bool HasAdFormat { get; }
Property Value
Type Description
bool

HasAdFormatString

Gets whether the "ad_format_string" field is set

Declaration
public bool HasAdFormatString { get; }
Property Value
Type Description
bool

HasAdPlacement

Gets whether the "ad_placement" field is set

Declaration
public bool HasAdPlacement { get; }
Property Value
Type Description
bool

HasAdPlacementString

Gets whether the "ad_placement_string" field is set

Declaration
public bool HasAdPlacementString { get; }
Property Value
Type Description
bool

HasAdType

Gets whether the "ad_type" field is set

Declaration
public bool HasAdType { get; }
Property Value
Type Description
bool

HasAdTypeString

Gets whether the "ad_type_string" field is set

Declaration
public bool HasAdTypeString { get; }
Property Value
Type Description
bool

HasEventSubtype

Gets whether the "event_subtype" field is set

Declaration
public bool HasEventSubtype { get; }
Property Value
Type Description
bool

HasEventSubtypeString

Gets whether the "event_subtype_string" field is set

Declaration
public bool HasEventSubtypeString { get; }
Property Value
Type Description
bool

HasMeasurementAllowed

Gets whether the "measurement_allowed" field is set

Declaration
public bool HasMeasurementAllowed { get; }
Property Value
Type Description
bool

HasPlatform

Gets whether the "platform" field is set

Declaration
public bool HasPlatform { get; }
Property Value
Type Description
bool

HasPlatformString

Gets whether the "platform_string" field is set

Declaration
public bool HasPlatformString { get; }
Property Value
Type Description
bool

HasPlatformType

Gets whether the "platform_type" field is set

Declaration
public bool HasPlatformType { get; }
Property Value
Type Description
bool

HasPlatformTypeString

Gets whether the "platform_type_string" field is set

Declaration
public bool HasPlatformTypeString { get; }
Property Value
Type Description
bool

HasTargetingType

Gets whether the "targeting_type" field is set

Declaration
public bool HasTargetingType { get; }
Property Value
Type Description
bool

HasTargetingTypeString

Gets whether the "targeting_type_string" field is set

Declaration
public bool HasTargetingTypeString { get; }
Property Value
Type Description
bool

MeasurementAllowed

Optional. Represents if the row is allowed to be used for measurement purposes, as governed by applicable privacy laws within regional jurisdiction.

Declaration
public bool MeasurementAllowed { get; set; }
Property Value
Type Description
bool

Medium

Required. The medium of the ad, akin to the Google Analytics medium.

Declaration
public string Medium { get; set; }
Property Value
Type Description
string

MobileDeviceId

Optional. The device ID of the device that the ad was served to.

Declaration
public string MobileDeviceId { get; set; }
Property Value
Type Description
string

Platform

Enum value for platform.

Declaration
public Platform Platform { get; set; }
Property Value
Type Description
Platform

PlatformOneofCase

Declaration
public AdEvent.PlatformOneofOneofCase PlatformOneofCase { get; }
Property Value
Type Description
AdEvent.PlatformOneofOneofCase

PlatformString

String value for platform.

Declaration
public string PlatformString { get; set; }
Property Value
Type Description
string

PlatformType

Enum value for platform type.

Declaration
public PlatformType PlatformType { get; set; }
Property Value
Type Description
PlatformType

PlatformTypeOneofCase

Declaration
public AdEvent.PlatformTypeOneofOneofCase PlatformTypeOneofCase { get; }
Property Value
Type Description
AdEvent.PlatformTypeOneofOneofCase

PlatformTypeString

String value for platform type.

Declaration
public string PlatformTypeString { get; set; }
Property Value
Type Description
string

RegionCode

Required. The ISO 3166-2 country plus subdivision.

Declaration
public string RegionCode { get; set; }
Property Value
Type Description
string

Source

Required. The platform source of the ad, akin to the Google Analytics source.

Declaration
public string Source { get; set; }
Property Value
Type Description
string

TargetingType

Enum value for targeting type.

Declaration
public TargetingType TargetingType { get; set; }
Property Value
Type Description
TargetingType

TargetingTypeOneofCase

Declaration
public AdEvent.TargetingTypeOneofOneofCase TargetingTypeOneofCase { get; }
Property Value
Type Description
AdEvent.TargetingTypeOneofOneofCase

TargetingTypeString

String value for targeting type.

Declaration
public string TargetingTypeString { get; set; }
Property Value
Type Description
string

Timestamp

Required. The time the event occurred.

Declaration
public Timestamp Timestamp { get; set; }
Property Value
Type Description
Timestamp

UserData

Optional. Multiple pieces of user-provided data, representing the user the event is associated with.

It is possible to provide multiple instances of the same type of data (e.g. email address). The more data provided, the more likely a match will be found.

Declaration
public UserData UserData { get; set; }
Property Value
Type Description
UserData

ViewabilityInfo

Required. Details of the viewability of the ad served.

Declaration
public ViewabilityInfo ViewabilityInfo { get; set; }
Property Value
Type Description
ViewabilityInfo
In this article
Back to top Generated by DocFX