public final class Conversion
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Campaign Manager 360 API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
Conversion()  | 
| Modifier and Type | Method and Description | 
|---|---|
Conversion | 
clone()  | 
byte[] | 
decodeSessionAttributesEncoded()
Session attributes for the conversion, encoded as based64 bytes. 
 | 
Conversion | 
encodeSessionAttributesEncoded(byte[] sessionAttributesEncoded)
Session attributes for the conversion, encoded as based64 bytes. 
 | 
String | 
getAdUserDataConsent()
This represents consent for ad user data. 
 | 
CartData | 
getCartData()
The cart data associated with this conversion. 
 | 
Boolean | 
getChildDirectedTreatment()
Whether this particular request may come from a user under the age of 13, under COPPA
 compliance. 
 | 
List<CustomFloodlightVariable> | 
getCustomVariables()
Custom floodlight variables. 
 | 
String | 
getDclid()
The display click ID. 
 | 
String | 
getEncryptedUserId()
The alphanumeric encrypted user ID. 
 | 
List<String> | 
getEncryptedUserIdCandidates()
A list of the alphanumeric encrypted user IDs. 
 | 
Long | 
getFloodlightActivityId()
Floodlight Activity ID of this conversion. 
 | 
Long | 
getFloodlightConfigurationId()
Floodlight Configuration ID of this conversion. 
 | 
String | 
getGclid()
The Google click ID. 
 | 
String | 
getImpressionId()
The impression ID. 
 | 
String | 
getKind()
Identifies what kind of resource this is. 
 | 
Boolean | 
getLimitAdTracking()
Whether Limit Ad Tracking is enabled. 
 | 
String | 
getMatchId()
The match ID field. 
 | 
String | 
getMobileDeviceId()
The mobile device ID. 
 | 
Boolean | 
getNonPersonalizedAd()
Whether the conversion was for a non personalized ad. 
 | 
String | 
getOrdinal()
The ordinal of the conversion. 
 | 
Long | 
getQuantity()
The quantity of the conversion. 
 | 
String | 
getSessionAttributesEncoded()
Session attributes for the conversion, encoded as based64 bytes. 
 | 
Long | 
getTimestampMicros()
The timestamp of conversion, in Unix epoch micros. 
 | 
Boolean | 
getTreatmentForUnderage()
Whether this particular request may come from a user under the age of 16 (may differ by
 country), under compliance with the European Union's General Data Protection Regulation (GDPR). 
 | 
List<UserIdentifier> | 
getUserIdentifiers()
The user identifiers to enhance the conversion. 
 | 
Double | 
getValue()
The value of the conversion. 
 | 
Conversion | 
set(String fieldName,
   Object value)  | 
Conversion | 
setAdUserDataConsent(String adUserDataConsent)
This represents consent for ad user data. 
 | 
Conversion | 
setCartData(CartData cartData)
The cart data associated with this conversion. 
 | 
Conversion | 
setChildDirectedTreatment(Boolean childDirectedTreatment)
Whether this particular request may come from a user under the age of 13, under COPPA
 compliance. 
 | 
Conversion | 
setCustomVariables(List<CustomFloodlightVariable> customVariables)
Custom floodlight variables. 
 | 
Conversion | 
setDclid(String dclid)
The display click ID. 
 | 
Conversion | 
setEncryptedUserId(String encryptedUserId)
The alphanumeric encrypted user ID. 
 | 
Conversion | 
setEncryptedUserIdCandidates(List<String> encryptedUserIdCandidates)
A list of the alphanumeric encrypted user IDs. 
 | 
Conversion | 
setFloodlightActivityId(Long floodlightActivityId)
Floodlight Activity ID of this conversion. 
 | 
Conversion | 
setFloodlightConfigurationId(Long floodlightConfigurationId)
Floodlight Configuration ID of this conversion. 
 | 
Conversion | 
setGclid(String gclid)
The Google click ID. 
 | 
Conversion | 
setImpressionId(String impressionId)
The impression ID. 
 | 
Conversion | 
setKind(String kind)
Identifies what kind of resource this is. 
 | 
Conversion | 
setLimitAdTracking(Boolean limitAdTracking)
Whether Limit Ad Tracking is enabled. 
 | 
Conversion | 
setMatchId(String matchId)
The match ID field. 
 | 
Conversion | 
setMobileDeviceId(String mobileDeviceId)
The mobile device ID. 
 | 
Conversion | 
setNonPersonalizedAd(Boolean nonPersonalizedAd)
Whether the conversion was for a non personalized ad. 
 | 
Conversion | 
setOrdinal(String ordinal)
The ordinal of the conversion. 
 | 
Conversion | 
setQuantity(Long quantity)
The quantity of the conversion. 
 | 
Conversion | 
setSessionAttributesEncoded(String sessionAttributesEncoded)
Session attributes for the conversion, encoded as based64 bytes. 
 | 
Conversion | 
setTimestampMicros(Long timestampMicros)
The timestamp of conversion, in Unix epoch micros. 
 | 
Conversion | 
setTreatmentForUnderage(Boolean treatmentForUnderage)
Whether this particular request may come from a user under the age of 16 (may differ by
 country), under compliance with the European Union's General Data Protection Regulation (GDPR). 
 | 
Conversion | 
setUserIdentifiers(List<UserIdentifier> userIdentifiers)
The user identifiers to enhance the conversion. 
 | 
Conversion | 
setValue(Double value)
The value of the conversion. 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAdUserDataConsent()
null for nonepublic Conversion setAdUserDataConsent(String adUserDataConsent)
adUserDataConsent - adUserDataConsent or null for nonepublic CartData getCartData()
null for nonepublic Conversion setCartData(CartData cartData)
cartData - cartData or null for nonepublic Boolean getChildDirectedTreatment()
null for nonepublic Conversion setChildDirectedTreatment(Boolean childDirectedTreatment)
childDirectedTreatment - childDirectedTreatment or null for nonepublic List<CustomFloodlightVariable> getCustomVariables()
null for nonepublic Conversion setCustomVariables(List<CustomFloodlightVariable> customVariables)
customVariables - customVariables or null for nonepublic String getDclid()
null for nonepublic Conversion setDclid(String dclid)
dclid - dclid or null for nonepublic String getEncryptedUserId()
null for nonepublic Conversion setEncryptedUserId(String encryptedUserId)
encryptedUserId - encryptedUserId or null for nonepublic List<String> getEncryptedUserIdCandidates()
null for nonepublic Conversion setEncryptedUserIdCandidates(List<String> encryptedUserIdCandidates)
encryptedUserIdCandidates - encryptedUserIdCandidates or null for nonepublic Long getFloodlightActivityId()
null for nonepublic Conversion setFloodlightActivityId(Long floodlightActivityId)
floodlightActivityId - floodlightActivityId or null for nonepublic Long getFloodlightConfigurationId()
null for nonepublic Conversion setFloodlightConfigurationId(Long floodlightConfigurationId)
floodlightConfigurationId - floodlightConfigurationId or null for nonepublic String getGclid()
null for nonepublic Conversion setGclid(String gclid)
gclid - gclid or null for nonepublic String getImpressionId()
null for nonepublic Conversion setImpressionId(String impressionId)
impressionId - impressionId or null for nonepublic String getKind()
null for nonepublic Conversion setKind(String kind)
kind - kind or null for nonepublic Boolean getLimitAdTracking()
null for nonepublic Conversion setLimitAdTracking(Boolean limitAdTracking)
limitAdTracking - limitAdTracking or null for nonepublic String getMatchId()
null for nonepublic Conversion setMatchId(String matchId)
matchId - matchId or null for nonepublic String getMobileDeviceId()
null for nonepublic Conversion setMobileDeviceId(String mobileDeviceId)
mobileDeviceId - mobileDeviceId or null for nonepublic Boolean getNonPersonalizedAd()
null for nonepublic Conversion setNonPersonalizedAd(Boolean nonPersonalizedAd)
nonPersonalizedAd - nonPersonalizedAd or null for nonepublic String getOrdinal()
null for nonepublic Conversion setOrdinal(String ordinal)
ordinal - ordinal or null for nonepublic Long getQuantity()
null for nonepublic Conversion setQuantity(Long quantity)
quantity - quantity or null for nonepublic String getSessionAttributesEncoded()
null for nonedecodeSessionAttributesEncoded()public byte[] decodeSessionAttributesEncoded()
null for nonegetSessionAttributesEncoded()public Conversion setSessionAttributesEncoded(String sessionAttributesEncoded)
sessionAttributesEncoded - sessionAttributesEncoded or null for none#encodeSessionAttributesEncoded()public Conversion encodeSessionAttributesEncoded(byte[] sessionAttributesEncoded)
 The value is encoded Base64 or {@code null} for none.
 
public Long getTimestampMicros()
null for nonepublic Conversion setTimestampMicros(Long timestampMicros)
timestampMicros - timestampMicros or null for nonepublic Boolean getTreatmentForUnderage()
null for nonepublic Conversion setTreatmentForUnderage(Boolean treatmentForUnderage)
treatmentForUnderage - treatmentForUnderage or null for nonepublic List<UserIdentifier> getUserIdentifiers()
null for nonepublic Conversion setUserIdentifiers(List<UserIdentifier> userIdentifiers)
userIdentifiers - userIdentifiers or null for nonepublic Double getValue()
null for nonepublic Conversion setValue(Double value)
value - value or null for nonepublic Conversion set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Conversion clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.