public final class Event extends GeneratedMessageV3 implements EventOrBuilderAn event representing a user interaction with an advertiser's website or app.
Protobuf type google.ads.datamanager.v1.Event
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > EventImplements
EventOrBuilderStatic Fields
ADDITIONAL_EVENT_PARAMETERS_FIELD_NUMBER
public static final int ADDITIONAL_EVENT_PARAMETERS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
AD_IDENTIFIERS_FIELD_NUMBER
public static final int AD_IDENTIFIERS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CART_DATA_FIELD_NUMBER
public static final int CART_DATA_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CLIENT_ID_FIELD_NUMBER
public static final int CLIENT_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CONSENT_FIELD_NUMBER
public static final int CONSENT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CONVERSION_VALUE_FIELD_NUMBER
public static final int CONVERSION_VALUE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CURRENCY_FIELD_NUMBER
public static final int CURRENCY_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
CUSTOM_VARIABLES_FIELD_NUMBER
public static final int CUSTOM_VARIABLES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DESTINATION_REFERENCES_FIELD_NUMBER
public static final int DESTINATION_REFERENCES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
EVENT_DEVICE_INFO_FIELD_NUMBER
public static final int EVENT_DEVICE_INFO_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
EVENT_NAME_FIELD_NUMBER
public static final int EVENT_NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
EVENT_SOURCE_FIELD_NUMBER
public static final int EVENT_SOURCE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
EVENT_TIMESTAMP_FIELD_NUMBER
public static final int EVENT_TIMESTAMP_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
EXPERIMENTAL_FIELDS_FIELD_NUMBER
public static final int EXPERIMENTAL_FIELDS_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
LAST_UPDATED_TIMESTAMP_FIELD_NUMBER
public static final int LAST_UPDATED_TIMESTAMP_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
TRANSACTION_ID_FIELD_NUMBER
public static final int TRANSACTION_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
USER_DATA_FIELD_NUMBER
public static final int USER_DATA_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
USER_ID_FIELD_NUMBER
public static final int USER_ID_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
USER_PROPERTIES_FIELD_NUMBER
public static final int USER_PROPERTIES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static Event getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
Event |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static Event.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
Event.Builder |
|
newBuilder(Event prototype)
public static Event.Builder newBuilder(Event prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
Event |
| Returns | |
|---|---|
| Type | Description |
Event.Builder |
|
parseDelimitedFrom(InputStream input)
public static Event parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Event parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static Event parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Event parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static Event parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Event parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static Event parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Event parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static Event parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Event parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static Event parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Event parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Event |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<Event> parser()| Returns | |
|---|---|
| Type | Description |
Parser<Event> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getAdIdentifiers()
public AdIdentifiers getAdIdentifiers()Optional. Identifiers and other information used to match the conversion event with other online activity (such as ad clicks).
.google.ads.datamanager.v1.AdIdentifiers ad_identifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdIdentifiers |
The adIdentifiers. |
getAdIdentifiersOrBuilder()
public AdIdentifiersOrBuilder getAdIdentifiersOrBuilder()Optional. Identifiers and other information used to match the conversion event with other online activity (such as ad clicks).
.google.ads.datamanager.v1.AdIdentifiers ad_identifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdIdentifiersOrBuilder |
|
getAdditionalEventParameters(int index)
public EventParameter getAdditionalEventParameters(int index)Optional. A bucket of any event parameters to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.EventParameter additional_event_parameters = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EventParameter |
|
getAdditionalEventParametersCount()
public int getAdditionalEventParametersCount()Optional. A bucket of any event parameters to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.EventParameter additional_event_parameters = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getAdditionalEventParametersList()
public List<EventParameter> getAdditionalEventParametersList()Optional. A bucket of any event parameters to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.EventParameter additional_event_parameters = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<EventParameter> |
|
getAdditionalEventParametersOrBuilder(int index)
public EventParameterOrBuilder getAdditionalEventParametersOrBuilder(int index)Optional. A bucket of any event parameters to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.EventParameter additional_event_parameters = 19 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EventParameterOrBuilder |
|
getAdditionalEventParametersOrBuilderList()
public List<? extends EventParameterOrBuilder> getAdditionalEventParametersOrBuilderList()Optional. A bucket of any event parameters to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.EventParameter additional_event_parameters = 19 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.datamanager.v1.EventParameterOrBuilder> |
|
getCartData()
public CartData getCartData()Optional. Information about the transaction and items associated with the event.
.google.ads.datamanager.v1.CartData cart_data = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CartData |
The cartData. |
getCartDataOrBuilder()
public CartDataOrBuilder getCartDataOrBuilder()Optional. Information about the transaction and items associated with the event.
.google.ads.datamanager.v1.CartData cart_data = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
CartDataOrBuilder |
|
getClientId()
public String getClientId()Optional. A unique identifier for the user instance of a web client for this GA4 web stream.
string client_id = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The clientId. |
getClientIdBytes()
public ByteString getClientIdBytes()Optional. A unique identifier for the user instance of a web client for this GA4 web stream.
string client_id = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for clientId. |
getConsent()
public Consent getConsent()Optional. Information about whether the associated user has provided different types of consent.
.google.ads.datamanager.v1.Consent consent = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Consent |
The consent. |
getConsentOrBuilder()
public ConsentOrBuilder getConsentOrBuilder()Optional. Information about whether the associated user has provided different types of consent.
.google.ads.datamanager.v1.Consent consent = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConsentOrBuilder |
|
getConversionValue()
public double getConversionValue()Optional. The conversion value associated with the event, for value-based conversions.
double conversion_value = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
double |
The conversionValue. |
getCurrency()
public String getCurrency()Optional. The currency code associated with all monetary values within this event.
string currency = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The currency. |
getCurrencyBytes()
public ByteString getCurrencyBytes()Optional. The currency code associated with all monetary values within this event.
string currency = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for currency. |
getCustomVariables(int index)
public CustomVariable getCustomVariables(int index)Optional. Additional key/value pair information to send to the conversion containers (conversion action or FL activity).
repeated .google.ads.datamanager.v1.CustomVariable custom_variables = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CustomVariable |
|
getCustomVariablesCount()
public int getCustomVariablesCount()Optional. Additional key/value pair information to send to the conversion containers (conversion action or FL activity).
repeated .google.ads.datamanager.v1.CustomVariable custom_variables = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getCustomVariablesList()
public List<CustomVariable> getCustomVariablesList()Optional. Additional key/value pair information to send to the conversion containers (conversion action or FL activity).
repeated .google.ads.datamanager.v1.CustomVariable custom_variables = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<CustomVariable> |
|
getCustomVariablesOrBuilder(int index)
public CustomVariableOrBuilder getCustomVariablesOrBuilder(int index)Optional. Additional key/value pair information to send to the conversion containers (conversion action or FL activity).
repeated .google.ads.datamanager.v1.CustomVariable custom_variables = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
CustomVariableOrBuilder |
|
getCustomVariablesOrBuilderList()
public List<? extends CustomVariableOrBuilder> getCustomVariablesOrBuilderList()Optional. Additional key/value pair information to send to the conversion containers (conversion action or FL activity).
repeated .google.ads.datamanager.v1.CustomVariable custom_variables = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.datamanager.v1.CustomVariableOrBuilder> |
|
getDefaultInstanceForType()
public Event getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Event |
|
getDestinationReferences(int index)
public String getDestinationReferences(int index)Optional. Reference string used to determine the destination. If empty, the event will be sent to all destinations in the request.
repeated string destination_references = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The destinationReferences at the given index. |
getDestinationReferencesBytes(int index)
public ByteString getDestinationReferencesBytes(int index)Optional. Reference string used to determine the destination. If empty, the event will be sent to all destinations in the request.
repeated string destination_references = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the destinationReferences at the given index. |
getDestinationReferencesCount()
public int getDestinationReferencesCount()Optional. Reference string used to determine the destination. If empty, the event will be sent to all destinations in the request.
repeated string destination_references = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of destinationReferences. |
getDestinationReferencesList()
public ProtocolStringList getDestinationReferencesList()Optional. Reference string used to determine the destination. If empty, the event will be sent to all destinations in the request.
repeated string destination_references = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the destinationReferences. |
getEventDeviceInfo()
public DeviceInfo getEventDeviceInfo()Optional. Information gathered about the device being used (if any) when the event happened.
.google.ads.datamanager.v1.DeviceInfo event_device_info = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DeviceInfo |
The eventDeviceInfo. |
getEventDeviceInfoOrBuilder()
public DeviceInfoOrBuilder getEventDeviceInfoOrBuilder()Optional. Information gathered about the device being used (if any) when the event happened.
.google.ads.datamanager.v1.DeviceInfo event_device_info = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DeviceInfoOrBuilder |
|
getEventName()
public String getEventName()Optional. The name of the event. Required for GA4 events.
string event_name = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The eventName. |
getEventNameBytes()
public ByteString getEventNameBytes()Optional. The name of the event. Required for GA4 events.
string event_name = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for eventName. |
getEventSource()
public EventSource getEventSource()Optional. Signal for where the event happened (web, app, in-store, etc.).
.google.ads.datamanager.v1.EventSource event_source = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EventSource |
The eventSource. |
getEventSourceValue()
public int getEventSourceValue()Optional. Signal for where the event happened (web, app, in-store, etc.).
.google.ads.datamanager.v1.EventSource event_source = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for eventSource. |
getEventTimestamp()
public Timestamp getEventTimestamp()Required. The time the event occurred.
.google.protobuf.Timestamp event_timestamp = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The eventTimestamp. |
getEventTimestampOrBuilder()
public TimestampOrBuilder getEventTimestampOrBuilder()Required. The time the event occurred.
.google.protobuf.Timestamp event_timestamp = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getExperimentalFields(int index)
public ExperimentalField getExperimentalFields(int index)Optional. A list of key/value pairs for experimental fields that may eventually be promoted to be part of the API.
repeated .google.ads.datamanager.v1.ExperimentalField experimental_fields = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExperimentalField |
|
getExperimentalFieldsCount()
public int getExperimentalFieldsCount()Optional. A list of key/value pairs for experimental fields that may eventually be promoted to be part of the API.
repeated .google.ads.datamanager.v1.ExperimentalField experimental_fields = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getExperimentalFieldsList()
public List<ExperimentalField> getExperimentalFieldsList()Optional. A list of key/value pairs for experimental fields that may eventually be promoted to be part of the API.
repeated .google.ads.datamanager.v1.ExperimentalField experimental_fields = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<ExperimentalField> |
|
getExperimentalFieldsOrBuilder(int index)
public ExperimentalFieldOrBuilder getExperimentalFieldsOrBuilder(int index)Optional. A list of key/value pairs for experimental fields that may eventually be promoted to be part of the API.
repeated .google.ads.datamanager.v1.ExperimentalField experimental_fields = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ExperimentalFieldOrBuilder |
|
getExperimentalFieldsOrBuilderList()
public List<? extends ExperimentalFieldOrBuilder> getExperimentalFieldsOrBuilderList()Optional. A list of key/value pairs for experimental fields that may eventually be promoted to be part of the API.
repeated .google.ads.datamanager.v1.ExperimentalField experimental_fields = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.datamanager.v1.ExperimentalFieldOrBuilder> |
|
getLastUpdatedTimestamp()
public Timestamp getLastUpdatedTimestamp()Optional. The last time the event was updated.
.google.protobuf.Timestamp last_updated_timestamp = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The lastUpdatedTimestamp. |
getLastUpdatedTimestampOrBuilder()
public TimestampOrBuilder getLastUpdatedTimestampOrBuilder()Optional. The last time the event was updated.
.google.protobuf.Timestamp last_updated_timestamp = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getParserForType()
public Parser<Event> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<Event> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getTransactionId()
public String getTransactionId()Optional. The unique identifier for this event. Required for conversions using multiple data sources.
string transaction_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The transactionId. |
getTransactionIdBytes()
public ByteString getTransactionIdBytes()Optional. The unique identifier for this event. Required for conversions using multiple data sources.
string transaction_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for transactionId. |
getUserData()
public UserData getUserData()Optional. Pieces of user provided data, representing the user the event is associated with.
.google.ads.datamanager.v1.UserData user_data = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UserData |
The userData. |
getUserDataOrBuilder()
public UserDataOrBuilder getUserDataOrBuilder()Optional. Pieces of user provided data, representing the user the event is associated with.
.google.ads.datamanager.v1.UserData user_data = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UserDataOrBuilder |
|
getUserId()
public String getUserId()Optional. A unique identifier for a user, as defined by the advertiser.
string user_id = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The userId. |
getUserIdBytes()
public ByteString getUserIdBytes()Optional. A unique identifier for a user, as defined by the advertiser.
string user_id = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for userId. |
getUserProperties()
public UserProperties getUserProperties()Optional. Advertiser-assessed information about the user at the time that the event happened.
.google.ads.datamanager.v1.UserProperties user_properties = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UserProperties |
The userProperties. |
getUserPropertiesOrBuilder()
public UserPropertiesOrBuilder getUserPropertiesOrBuilder()Optional. Advertiser-assessed information about the user at the time that the event happened.
.google.ads.datamanager.v1.UserProperties user_properties = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UserPropertiesOrBuilder |
|
hasAdIdentifiers()
public boolean hasAdIdentifiers()Optional. Identifiers and other information used to match the conversion event with other online activity (such as ad clicks).
.google.ads.datamanager.v1.AdIdentifiers ad_identifiers = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the adIdentifiers field is set. |
hasCartData()
public boolean hasCartData()Optional. Information about the transaction and items associated with the event.
.google.ads.datamanager.v1.CartData cart_data = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the cartData field is set. |
hasConsent()
public boolean hasConsent()Optional. Information about whether the associated user has provided different types of consent.
.google.ads.datamanager.v1.Consent consent = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the consent field is set. |
hasEventDeviceInfo()
public boolean hasEventDeviceInfo()Optional. Information gathered about the device being used (if any) when the event happened.
.google.ads.datamanager.v1.DeviceInfo event_device_info = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the eventDeviceInfo field is set. |
hasEventTimestamp()
public boolean hasEventTimestamp()Required. The time the event occurred.
.google.protobuf.Timestamp event_timestamp = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the eventTimestamp field is set. |
hasLastUpdatedTimestamp()
public boolean hasLastUpdatedTimestamp()Optional. The last time the event was updated.
.google.protobuf.Timestamp last_updated_timestamp = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the lastUpdatedTimestamp field is set. |
hasUserData()
public boolean hasUserData()Optional. Pieces of user provided data, representing the user the event is associated with.
.google.ads.datamanager.v1.UserData user_data = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the userData field is set. |
hasUserProperties()
public boolean hasUserProperties()Optional. Advertiser-assessed information about the user at the time that the event happened.
.google.ads.datamanager.v1.UserProperties user_properties = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the userProperties field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public Event.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
Event.Builder |
|
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Event.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
Event.Builder |
|
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)| Parameter | |
|---|---|
| Name | Description |
unused |
UnusedPrivateParameter |
| Returns | |
|---|---|
| Type | Description |
Object |
|
toBuilder()
public Event.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
Event.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|