Class AdIdentifiers.Builder (0.6.0)

public static final class AdIdentifiers.Builder extends GeneratedMessage.Builder<AdIdentifiers.Builder> implements AdIdentifiersOrBuilder

Identifiers and other information used to match the conversion event with other online activity (such as ad clicks).

Protobuf type google.ads.datamanager.v1.AdIdentifiers

Static Methods

getDescriptor()

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

Methods

build()

public AdIdentifiers build()
Returns
Type Description
AdIdentifiers

buildPartial()

public AdIdentifiers buildPartial()
Returns
Type Description
AdIdentifiers

clear()

public AdIdentifiers.Builder clear()
Returns
Type Description
AdIdentifiers.Builder
Overrides

clearGbraid()

public AdIdentifiers.Builder clearGbraid()

Optional. The click identifier for clicks associated with app events and originating from iOS devices starting with iOS14.

string gbraid = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

clearGclid()

public AdIdentifiers.Builder clearGclid()

Optional. The Google click ID (gclid) associated with this event.

string gclid = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

clearLandingPageDeviceInfo()

public AdIdentifiers.Builder clearLandingPageDeviceInfo()

Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.

.google.ads.datamanager.v1.DeviceInfo landing_page_device_info = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdIdentifiers.Builder

clearSessionAttributes()

public AdIdentifiers.Builder clearSessionAttributes()

Optional. Session attributes for event attribution and modeling.

string session_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

clearWbraid()

public AdIdentifiers.Builder clearWbraid()

Optional. The click identifier for clicks associated with web events and originating from iOS devices starting with iOS14.

string wbraid = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

getDefaultInstanceForType()

public AdIdentifiers getDefaultInstanceForType()
Returns
Type Description
AdIdentifiers

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGbraid()

public String getGbraid()

Optional. The click identifier for clicks associated with app events and originating from iOS devices starting with iOS14.

string gbraid = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gbraid.

getGbraidBytes()

public ByteString getGbraidBytes()

Optional. The click identifier for clicks associated with app events and originating from iOS devices starting with iOS14.

string gbraid = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gbraid.

getGclid()

public String getGclid()

Optional. The Google click ID (gclid) associated with this event.

string gclid = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The gclid.

getGclidBytes()

public ByteString getGclidBytes()

Optional. The Google click ID (gclid) associated with this event.

string gclid = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for gclid.

getLandingPageDeviceInfo()

public DeviceInfo getLandingPageDeviceInfo()

Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.

.google.ads.datamanager.v1.DeviceInfo landing_page_device_info = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeviceInfo

The landingPageDeviceInfo.

getLandingPageDeviceInfoBuilder()

public DeviceInfo.Builder getLandingPageDeviceInfoBuilder()

Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.

.google.ads.datamanager.v1.DeviceInfo landing_page_device_info = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeviceInfo.Builder

getLandingPageDeviceInfoOrBuilder()

public DeviceInfoOrBuilder getLandingPageDeviceInfoOrBuilder()

Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.

.google.ads.datamanager.v1.DeviceInfo landing_page_device_info = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeviceInfoOrBuilder

getSessionAttributes()

public String getSessionAttributes()

Optional. Session attributes for event attribution and modeling.

string session_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sessionAttributes.

getSessionAttributesBytes()

public ByteString getSessionAttributesBytes()

Optional. Session attributes for event attribution and modeling.

string session_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sessionAttributes.

getWbraid()

public String getWbraid()

Optional. The click identifier for clicks associated with web events and originating from iOS devices starting with iOS14.

string wbraid = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The wbraid.

getWbraidBytes()

public ByteString getWbraidBytes()

Optional. The click identifier for clicks associated with web events and originating from iOS devices starting with iOS14.

string wbraid = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for wbraid.

hasLandingPageDeviceInfo()

public boolean hasLandingPageDeviceInfo()

Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.

.google.ads.datamanager.v1.DeviceInfo landing_page_device_info = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the landingPageDeviceInfo field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdIdentifiers other)

public AdIdentifiers.Builder mergeFrom(AdIdentifiers other)
Parameter
Name Description
other AdIdentifiers
Returns
Type Description
AdIdentifiers.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdIdentifiers.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdIdentifiers.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AdIdentifiers.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdIdentifiers.Builder
Overrides

mergeLandingPageDeviceInfo(DeviceInfo value)

public AdIdentifiers.Builder mergeLandingPageDeviceInfo(DeviceInfo value)

Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.

.google.ads.datamanager.v1.DeviceInfo landing_page_device_info = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DeviceInfo
Returns
Type Description
AdIdentifiers.Builder

setGbraid(String value)

public AdIdentifiers.Builder setGbraid(String value)

Optional. The click identifier for clicks associated with app events and originating from iOS devices starting with iOS14.

string gbraid = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The gbraid to set.

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

setGbraidBytes(ByteString value)

public AdIdentifiers.Builder setGbraidBytes(ByteString value)

Optional. The click identifier for clicks associated with app events and originating from iOS devices starting with iOS14.

string gbraid = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for gbraid to set.

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

setGclid(String value)

public AdIdentifiers.Builder setGclid(String value)

Optional. The Google click ID (gclid) associated with this event.

string gclid = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The gclid to set.

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

setGclidBytes(ByteString value)

public AdIdentifiers.Builder setGclidBytes(ByteString value)

Optional. The Google click ID (gclid) associated with this event.

string gclid = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for gclid to set.

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

setLandingPageDeviceInfo(DeviceInfo value)

public AdIdentifiers.Builder setLandingPageDeviceInfo(DeviceInfo value)

Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.

.google.ads.datamanager.v1.DeviceInfo landing_page_device_info = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DeviceInfo
Returns
Type Description
AdIdentifiers.Builder

setLandingPageDeviceInfo(DeviceInfo.Builder builderForValue)

public AdIdentifiers.Builder setLandingPageDeviceInfo(DeviceInfo.Builder builderForValue)

Optional. Information gathered about the device being used (if any) at the time of landing onto the advertiser’s site after interacting with the ad.

.google.ads.datamanager.v1.DeviceInfo landing_page_device_info = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DeviceInfo.Builder
Returns
Type Description
AdIdentifiers.Builder

setSessionAttributes(String value)

public AdIdentifiers.Builder setSessionAttributes(String value)

Optional. Session attributes for event attribution and modeling.

string session_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The sessionAttributes to set.

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

setSessionAttributesBytes(ByteString value)

public AdIdentifiers.Builder setSessionAttributesBytes(ByteString value)

Optional. Session attributes for event attribution and modeling.

string session_attributes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for sessionAttributes to set.

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

setWbraid(String value)

public AdIdentifiers.Builder setWbraid(String value)

Optional. The click identifier for clicks associated with web events and originating from iOS devices starting with iOS14.

string wbraid = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The wbraid to set.

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.

setWbraidBytes(ByteString value)

public AdIdentifiers.Builder setWbraidBytes(ByteString value)

Optional. The click identifier for clicks associated with web events and originating from iOS devices starting with iOS14.

string wbraid = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for wbraid to set.

Returns
Type Description
AdIdentifiers.Builder

This builder for chaining.