target.apidocs.com.google.api.services.content.model.ConversionSource.html Maven / Gradle / Ivy
ConversionSource (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class ConversionSource
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.ConversionSource
-
public final class ConversionSource
extends com.google.api.client.json.GenericJson
Represents a conversion source owned by a Merchant account. A merchant account can have up to 200
conversion sources.
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 Content API for Shopping. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ConversionSource()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ConversionSource
clone()
String
getConversionSourceId()
Output only.
String
getExpireTime()
Output only.
GoogleAnalyticsLink
getGoogleAnalyticsLink()
Immutable.
MerchantCenterDestination
getMerchantCenterDestination()
Conversion Source of type "Merchant Center Tag Destination".
String
getState()
Output only.
ConversionSource
set(String fieldName,
Object value)
ConversionSource
setConversionSourceId(String conversionSourceId)
Output only.
ConversionSource
setExpireTime(String expireTime)
Output only.
ConversionSource
setGoogleAnalyticsLink(GoogleAnalyticsLink googleAnalyticsLink)
Immutable.
ConversionSource
setMerchantCenterDestination(MerchantCenterDestination merchantCenterDestination)
Conversion Source of type "Merchant Center Tag Destination".
ConversionSource
setState(String state)
Output only.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getConversionSourceId
public String getConversionSourceId()
Output only. Generated by the Content API upon creation of a new `ConversionSource`. Format:
[a-z]{4}:.+ The four characters before the colon represent the type of conversio source.
Content after the colon represents the ID of the conversion source within that type. The ID of
two different conversion sources might be the same across different types. The following type
prefixes are supported: - galk: For GoogleAnalyticsLink sources. - mcdn: For
MerchantCenterDestination sources.
- Returns:
- value or
null
for none
-
setConversionSourceId
public ConversionSource setConversionSourceId(String conversionSourceId)
Output only. Generated by the Content API upon creation of a new `ConversionSource`. Format:
[a-z]{4}:.+ The four characters before the colon represent the type of conversio source.
Content after the colon represents the ID of the conversion source within that type. The ID of
two different conversion sources might be the same across different types. The following type
prefixes are supported: - galk: For GoogleAnalyticsLink sources. - mcdn: For
MerchantCenterDestination sources.
- Parameters:
conversionSourceId
- conversionSourceId or null
for none
-
getExpireTime
public String getExpireTime()
Output only. The time when an archived conversion source becomes permanently deleted and is no
longer available to undelete.
- Returns:
- value or
null
for none
-
setExpireTime
public ConversionSource setExpireTime(String expireTime)
Output only. The time when an archived conversion source becomes permanently deleted and is no
longer available to undelete.
- Parameters:
expireTime
- expireTime or null
for none
-
getGoogleAnalyticsLink
public GoogleAnalyticsLink getGoogleAnalyticsLink()
Immutable. Conversion Source of type "Link to Google Analytics Property".
- Returns:
- value or
null
for none
-
setGoogleAnalyticsLink
public ConversionSource setGoogleAnalyticsLink(GoogleAnalyticsLink googleAnalyticsLink)
Immutable. Conversion Source of type "Link to Google Analytics Property".
- Parameters:
googleAnalyticsLink
- googleAnalyticsLink or null
for none
-
getMerchantCenterDestination
public MerchantCenterDestination getMerchantCenterDestination()
Conversion Source of type "Merchant Center Tag Destination".
- Returns:
- value or
null
for none
-
setMerchantCenterDestination
public ConversionSource setMerchantCenterDestination(MerchantCenterDestination merchantCenterDestination)
Conversion Source of type "Merchant Center Tag Destination".
- Parameters:
merchantCenterDestination
- merchantCenterDestination or null
for none
-
getState
public String getState()
Output only. Current state of this conversion source. Can't be edited through the API.
- Returns:
- value or
null
for none
-
setState
public ConversionSource setState(String state)
Output only. Current state of this conversion source. Can't be edited through the API.
- Parameters:
state
- state or null
for none
-
set
public ConversionSource set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ConversionSource clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy