Class AdEvent (0.16.0)

public final class AdEvent extends GeneratedMessage implements AdEventOrBuilder

An ad event.

Protobuf type google.ads.datamanager.v1.AdEvent

Implements

AdEventOrBuilder

Static Fields

ADVERTISER_ID_FIELD_NUMBER

public static final int ADVERTISER_ID_FIELD_NUMBER
Field Value
Type Description
int

AD_FORMAT_FIELD_NUMBER

public static final int AD_FORMAT_FIELD_NUMBER
Field Value
Type Description
int

AD_FORMAT_STRING_FIELD_NUMBER

public static final int AD_FORMAT_STRING_FIELD_NUMBER
Field Value
Type Description
int

AD_GROUP_ID_FIELD_NUMBER

public static final int AD_GROUP_ID_FIELD_NUMBER
Field Value
Type Description
int

AD_HEIGHT_FIELD_NUMBER

public static final int AD_HEIGHT_FIELD_NUMBER
Field Value
Type Description
int

AD_ID_FIELD_NUMBER

public static final int AD_ID_FIELD_NUMBER
Field Value
Type Description
int

AD_PLACEMENT_FIELD_NUMBER

public static final int AD_PLACEMENT_FIELD_NUMBER
Field Value
Type Description
int

AD_PLACEMENT_STRING_FIELD_NUMBER

public static final int AD_PLACEMENT_STRING_FIELD_NUMBER
Field Value
Type Description
int

AD_TYPE_FIELD_NUMBER

public static final int AD_TYPE_FIELD_NUMBER
Field Value
Type Description
int

AD_TYPE_STRING_FIELD_NUMBER

public static final int AD_TYPE_STRING_FIELD_NUMBER
Field Value
Type Description
int

AD_WIDTH_FIELD_NUMBER

public static final int AD_WIDTH_FIELD_NUMBER
Field Value
Type Description
int

ATTRIBUTION_HINT_FIELD_NUMBER

public static final int ATTRIBUTION_HINT_FIELD_NUMBER
Field Value
Type Description
int

CAMPAIGN_ID_FIELD_NUMBER

public static final int CAMPAIGN_ID_FIELD_NUMBER
Field Value
Type Description
int

CAMPAIGN_NAME_FIELD_NUMBER

public static final int CAMPAIGN_NAME_FIELD_NUMBER
Field Value
Type Description
int

DEVICE_INFO_FIELD_NUMBER

public static final int DEVICE_INFO_FIELD_NUMBER
Field Value
Type Description
int

EVENT_ID_FIELD_NUMBER

public static final int EVENT_ID_FIELD_NUMBER
Field Value
Type Description
int

EVENT_SUBTYPE_FIELD_NUMBER

public static final int EVENT_SUBTYPE_FIELD_NUMBER
Field Value
Type Description
int

EVENT_SUBTYPE_STRING_FIELD_NUMBER

public static final int EVENT_SUBTYPE_STRING_FIELD_NUMBER
Field Value
Type Description
int

EVENT_TYPE_FIELD_NUMBER

public static final int EVENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

MEASUREMENT_ALLOWED_FIELD_NUMBER

public static final int MEASUREMENT_ALLOWED_FIELD_NUMBER
Field Value
Type Description
int

MEDIUM_FIELD_NUMBER

public static final int MEDIUM_FIELD_NUMBER
Field Value
Type Description
int

MOBILE_DEVICE_ID_FIELD_NUMBER

public static final int MOBILE_DEVICE_ID_FIELD_NUMBER
Field Value
Type Description
int

PLATFORM_FIELD_NUMBER

public static final int PLATFORM_FIELD_NUMBER
Field Value
Type Description
int

PLATFORM_STRING_FIELD_NUMBER

public static final int PLATFORM_STRING_FIELD_NUMBER
Field Value
Type Description
int

PLATFORM_TYPE_FIELD_NUMBER

public static final int PLATFORM_TYPE_FIELD_NUMBER
Field Value
Type Description
int

PLATFORM_TYPE_STRING_FIELD_NUMBER

public static final int PLATFORM_TYPE_STRING_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_FIELD_NUMBER

public static final int SOURCE_FIELD_NUMBER
Field Value
Type Description
int

TARGETING_TYPE_FIELD_NUMBER

public static final int TARGETING_TYPE_FIELD_NUMBER
Field Value
Type Description
int

TARGETING_TYPE_STRING_FIELD_NUMBER

public static final int TARGETING_TYPE_STRING_FIELD_NUMBER
Field Value
Type Description
int

TIMESTAMP_FIELD_NUMBER

public static final int TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

USER_DATA_FIELD_NUMBER

public static final int USER_DATA_FIELD_NUMBER
Field Value
Type Description
int

VIEWABILITY_INFO_FIELD_NUMBER

public static final int VIEWABILITY_INFO_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AdEvent getDefaultInstance()
Returns
Type Description
AdEvent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AdEvent.Builder newBuilder()
Returns
Type Description
AdEvent.Builder

newBuilder(AdEvent prototype)

public static AdEvent.Builder newBuilder(AdEvent prototype)
Parameter
Name Description
prototype AdEvent
Returns
Type Description
AdEvent.Builder

parseDelimitedFrom(InputStream input)

public static AdEvent parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdEvent
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdEvent
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AdEvent parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AdEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AdEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AdEvent parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AdEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AdEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AdEvent parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AdEvent
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AdEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdEvent
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AdEvent parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AdEvent
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AdEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdEvent
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AdEvent parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AdEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AdEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdEvent
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AdEvent> parser()
Returns
Type Description
Parser<AdEvent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAdFormat()

public AdFormat getAdFormat()

Enum value for ad format.

.google.ads.datamanager.v1.AdFormat ad_format = 16;

Returns
Type Description
AdFormat

The adFormat.

getAdFormatOneofCase()

public AdEvent.AdFormatOneofCase getAdFormatOneofCase()
Returns
Type Description
AdEvent.AdFormatOneofCase

getAdFormatString()

public String getAdFormatString()

String value for ad format.

string ad_format_string = 17;

Returns
Type Description
String

The adFormatString.

getAdFormatStringBytes()

public ByteString getAdFormatStringBytes()

String value for ad format.

string ad_format_string = 17;

Returns
Type Description
ByteString

The bytes for adFormatString.

getAdFormatValue()

public int getAdFormatValue()

Enum value for ad format.

.google.ads.datamanager.v1.AdFormat ad_format = 16;

Returns
Type Description
int

The enum numeric value on the wire for adFormat.

getAdGroupId()

public String getAdGroupId()

Optional. The ID of the associated ad group.

string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The adGroupId.

getAdGroupIdBytes()

public ByteString getAdGroupIdBytes()

Optional. The ID of the associated ad group.

string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for adGroupId.

getAdHeight()

public int getAdHeight()

Optional. The height of the ad in pixels.

int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The adHeight.

getAdId()

public String getAdId()

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

string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The adId.

getAdIdBytes()

public ByteString getAdIdBytes()

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

string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for adId.

getAdPlacement()

public AdPlacement getAdPlacement()

Enum value for ad placement.

.google.ads.datamanager.v1.AdPlacement ad_placement = 18;

Returns
Type Description
AdPlacement

The adPlacement.

getAdPlacementOneofCase()

public AdEvent.AdPlacementOneofCase getAdPlacementOneofCase()
Returns
Type Description
AdEvent.AdPlacementOneofCase

getAdPlacementString()

public String getAdPlacementString()

String value for ad placement.

string ad_placement_string = 19;

Returns
Type Description
String

The adPlacementString.

getAdPlacementStringBytes()

public ByteString getAdPlacementStringBytes()

String value for ad placement.

string ad_placement_string = 19;

Returns
Type Description
ByteString

The bytes for adPlacementString.

getAdPlacementValue()

public int getAdPlacementValue()

Enum value for ad placement.

.google.ads.datamanager.v1.AdPlacement ad_placement = 18;

Returns
Type Description
int

The enum numeric value on the wire for adPlacement.

getAdType()

public AdType getAdType()

Enum value for ad type.

.google.ads.datamanager.v1.AdType ad_type = 14;

Returns
Type Description
AdType

The adType.

getAdTypeOneofCase()

public AdEvent.AdTypeOneofCase getAdTypeOneofCase()
Returns
Type Description
AdEvent.AdTypeOneofCase

getAdTypeString()

public String getAdTypeString()

String value for ad type.

string ad_type_string = 15;

Returns
Type Description
String

The adTypeString.

getAdTypeStringBytes()

public ByteString getAdTypeStringBytes()

String value for ad type.

string ad_type_string = 15;

Returns
Type Description
ByteString

The bytes for adTypeString.

getAdTypeValue()

public int getAdTypeValue()

Enum value for ad type.

.google.ads.datamanager.v1.AdType ad_type = 14;

Returns
Type Description
int

The enum numeric value on the wire for adType.

getAdWidth()

public int getAdWidth()

Optional. The width of the ad in pixels.

int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The adWidth.

getAdvertiserId()

public String getAdvertiserId()

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

This must match the ID sent in the linking flow.

string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The advertiserId.

getAdvertiserIdBytes()

public ByteString getAdvertiserIdBytes()

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

This must match the ID sent in the linking flow.

string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for advertiserId.

getAttributionHint()

public AttributionHint getAttributionHint()

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.

.google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AttributionHint

The attributionHint.

getAttributionHintValue()

public int getAttributionHintValue()

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.

.google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for attributionHint.

getCampaignId()

public String getCampaignId()

Required. The ID of the associated campaign.

string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The campaignId.

getCampaignIdBytes()

public ByteString getCampaignIdBytes()

Required. The ID of the associated campaign.

string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for campaignId.

getCampaignName()

public String getCampaignName()

Required. The name of the associated campaign.

string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The campaignName.

getCampaignNameBytes()

public ByteString getCampaignNameBytes()

Required. The name of the associated campaign.

string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for campaignName.

getDefaultInstanceForType()

public AdEvent getDefaultInstanceForType()
Returns
Type Description
AdEvent

getDeviceInfo()

public DeviceInfo getDeviceInfo()

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

.google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeviceInfo

The deviceInfo.

getDeviceInfoOrBuilder()

public DeviceInfoOrBuilder getDeviceInfoOrBuilder()

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

.google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeviceInfoOrBuilder

getEventId()

public String getEventId()

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.

string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The eventId.

getEventIdBytes()

public ByteString getEventIdBytes()

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.

string event_id = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for eventId.

getEventSubtype()

public AdEvent.EventSubtype getEventSubtype()

Enum value for event subtype.

.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;

Returns
Type Description
AdEvent.EventSubtype

The eventSubtype.

getEventSubtypeOneofCase()

public AdEvent.EventSubtypeOneofCase getEventSubtypeOneofCase()
Returns
Type Description
AdEvent.EventSubtypeOneofCase

getEventSubtypeString()

public String getEventSubtypeString()

String value for event subtype.

string event_subtype_string = 4;

Returns
Type Description
String

The eventSubtypeString.

getEventSubtypeStringBytes()

public ByteString getEventSubtypeStringBytes()

String value for event subtype.

string event_subtype_string = 4;

Returns
Type Description
ByteString

The bytes for eventSubtypeString.

getEventSubtypeValue()

public int getEventSubtypeValue()

Enum value for event subtype.

.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;

Returns
Type Description
int

The enum numeric value on the wire for eventSubtype.

getEventType()

public AdEvent.EventType getEventType()

Required. The type of the event.

.google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AdEvent.EventType

The eventType.

getEventTypeValue()

public int getEventTypeValue()

Required. The type of the event.

.google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for eventType.

getMeasurementAllowed()

public boolean getMeasurementAllowed()

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

optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The measurementAllowed.

getMedium()

public String getMedium()

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

string medium = 24 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The medium.

getMediumBytes()

public ByteString getMediumBytes()

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

string medium = 24 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for medium.

getMobileDeviceId()

public String getMobileDeviceId()

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

string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The mobileDeviceId.

getMobileDeviceIdBytes()

public ByteString getMobileDeviceIdBytes()

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

string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for mobileDeviceId.

getParserForType()

public Parser<AdEvent> getParserForType()
Returns
Type Description
Parser<AdEvent>
Overrides

getPlatform()

public Platform getPlatform()

Enum value for platform.

.google.ads.datamanager.v1.Platform platform = 29;

Returns
Type Description
Platform

The platform.

getPlatformOneofCase()

public AdEvent.PlatformOneofCase getPlatformOneofCase()
Returns
Type Description
AdEvent.PlatformOneofCase

getPlatformString()

public String getPlatformString()

String value for platform.

string platform_string = 30;

Returns
Type Description
String

The platformString.

getPlatformStringBytes()

public ByteString getPlatformStringBytes()

String value for platform.

string platform_string = 30;

Returns
Type Description
ByteString

The bytes for platformString.

getPlatformType()

public PlatformType getPlatformType()

Enum value for platform type.

.google.ads.datamanager.v1.PlatformType platform_type = 27;

Returns
Type Description
PlatformType

The platformType.

getPlatformTypeOneofCase()

public AdEvent.PlatformTypeOneofCase getPlatformTypeOneofCase()
Returns
Type Description
AdEvent.PlatformTypeOneofCase

getPlatformTypeString()

public String getPlatformTypeString()

String value for platform type.

string platform_type_string = 28;

Returns
Type Description
String

The platformTypeString.

getPlatformTypeStringBytes()

public ByteString getPlatformTypeStringBytes()

String value for platform type.

string platform_type_string = 28;

Returns
Type Description
ByteString

The bytes for platformTypeString.

getPlatformTypeValue()

public int getPlatformTypeValue()

Enum value for platform type.

.google.ads.datamanager.v1.PlatformType platform_type = 27;

Returns
Type Description
int

The enum numeric value on the wire for platformType.

getPlatformValue()

public int getPlatformValue()

Enum value for platform.

.google.ads.datamanager.v1.Platform platform = 29;

Returns
Type Description
int

The enum numeric value on the wire for platform.

getRegionCode()

public String getRegionCode()

Required. The ISO 3166-2 country plus subdivision.

string region_code = 22 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Required. The ISO 3166-2 country plus subdivision.

string region_code = 22 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for regionCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSource()

public String getSource()

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

string source = 23 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The source.

getSourceBytes()

public ByteString getSourceBytes()

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

string source = 23 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for source.

getTargetingType()

public TargetingType getTargetingType()

Enum value for targeting type.

.google.ads.datamanager.v1.TargetingType targeting_type = 25;

Returns
Type Description
TargetingType

The targetingType.

getTargetingTypeOneofCase()

public AdEvent.TargetingTypeOneofCase getTargetingTypeOneofCase()
Returns
Type Description
AdEvent.TargetingTypeOneofCase

getTargetingTypeString()

public String getTargetingTypeString()

String value for targeting type.

string targeting_type_string = 26;

Returns
Type Description
String

The targetingTypeString.

getTargetingTypeStringBytes()

public ByteString getTargetingTypeStringBytes()

String value for targeting type.

string targeting_type_string = 26;

Returns
Type Description
ByteString

The bytes for targetingTypeString.

getTargetingTypeValue()

public int getTargetingTypeValue()

Enum value for targeting type.

.google.ads.datamanager.v1.TargetingType targeting_type = 25;

Returns
Type Description
int

The enum numeric value on the wire for targetingType.

getTimestamp()

public Timestamp getTimestamp()

Required. The time the event occurred.

.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The timestamp.

getTimestampOrBuilder()

public TimestampOrBuilder getTimestampOrBuilder()

Required. The time the event occurred.

.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getUserData()

public UserData getUserData()

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.

.google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserData

The userData.

getUserDataOrBuilder()

public UserDataOrBuilder getUserDataOrBuilder()

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.

.google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UserDataOrBuilder

getViewabilityInfo()

public ViewabilityInfo getViewabilityInfo()

Required. Details of the viewability of the ad served.

.google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ViewabilityInfo

The viewabilityInfo.

getViewabilityInfoOrBuilder()

public ViewabilityInfoOrBuilder getViewabilityInfoOrBuilder()

Required. Details of the viewability of the ad served.

.google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ViewabilityInfoOrBuilder

hasAdFormat()

public boolean hasAdFormat()

Enum value for ad format.

.google.ads.datamanager.v1.AdFormat ad_format = 16;

Returns
Type Description
boolean

Whether the adFormat field is set.

hasAdFormatString()

public boolean hasAdFormatString()

String value for ad format.

string ad_format_string = 17;

Returns
Type Description
boolean

Whether the adFormatString field is set.

hasAdPlacement()

public boolean hasAdPlacement()

Enum value for ad placement.

.google.ads.datamanager.v1.AdPlacement ad_placement = 18;

Returns
Type Description
boolean

Whether the adPlacement field is set.

hasAdPlacementString()

public boolean hasAdPlacementString()

String value for ad placement.

string ad_placement_string = 19;

Returns
Type Description
boolean

Whether the adPlacementString field is set.

hasAdType()

public boolean hasAdType()

Enum value for ad type.

.google.ads.datamanager.v1.AdType ad_type = 14;

Returns
Type Description
boolean

Whether the adType field is set.

hasAdTypeString()

public boolean hasAdTypeString()

String value for ad type.

string ad_type_string = 15;

Returns
Type Description
boolean

Whether the adTypeString field is set.

hasDeviceInfo()

public boolean hasDeviceInfo()

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

.google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the deviceInfo field is set.

hasEventSubtype()

public boolean hasEventSubtype()

Enum value for event subtype.

.google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3;

Returns
Type Description
boolean

Whether the eventSubtype field is set.

hasEventSubtypeString()

public boolean hasEventSubtypeString()

String value for event subtype.

string event_subtype_string = 4;

Returns
Type Description
boolean

Whether the eventSubtypeString field is set.

hasMeasurementAllowed()

public boolean hasMeasurementAllowed()

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

optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the measurementAllowed field is set.

hasPlatform()

public boolean hasPlatform()

Enum value for platform.

.google.ads.datamanager.v1.Platform platform = 29;

Returns
Type Description
boolean

Whether the platform field is set.

hasPlatformString()

public boolean hasPlatformString()

String value for platform.

string platform_string = 30;

Returns
Type Description
boolean

Whether the platformString field is set.

hasPlatformType()

public boolean hasPlatformType()

Enum value for platform type.

.google.ads.datamanager.v1.PlatformType platform_type = 27;

Returns
Type Description
boolean

Whether the platformType field is set.

hasPlatformTypeString()

public boolean hasPlatformTypeString()

String value for platform type.

string platform_type_string = 28;

Returns
Type Description
boolean

Whether the platformTypeString field is set.

hasTargetingType()

public boolean hasTargetingType()

Enum value for targeting type.

.google.ads.datamanager.v1.TargetingType targeting_type = 25;

Returns
Type Description
boolean

Whether the targetingType field is set.

hasTargetingTypeString()

public boolean hasTargetingTypeString()

String value for targeting type.

string targeting_type_string = 26;

Returns
Type Description
boolean

Whether the targetingTypeString field is set.

hasTimestamp()

public boolean hasTimestamp()

Required. The time the event occurred.

.google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the timestamp field is set.

hasUserData()

public boolean hasUserData()

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.

.google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the userData field is set.

hasViewabilityInfo()

public boolean hasViewabilityInfo()

Required. Details of the viewability of the ad served.

.google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the viewabilityInfo field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AdEvent.Builder newBuilderForType()
Returns
Type Description
AdEvent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AdEvent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AdEvent.Builder
Overrides

toBuilder()

public AdEvent.Builder toBuilder()
Returns
Type Description
AdEvent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException