Send feedback
Class MerchantCenterDestination (1.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class MerchantCenterDestination extends GeneratedMessageV3 implements MerchantCenterDestinationOrBuilder
"Merchant Center Destination" sources can be used to send conversion events
from an online store using a Google tag directly to a Merchant Center account
where the source is created.
Protobuf type google.shopping.merchant.conversions.v1.MerchantCenterDestination
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int CURRENCY_CODE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int DESTINATION_FIELD_NUMBER
Field Value
Type
Description
int
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static MerchantCenterDestination getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static MerchantCenterDestination . Builder newBuilder ()
public static MerchantCenterDestination . Builder newBuilder ( MerchantCenterDestination prototype )
public static MerchantCenterDestination parseDelimitedFrom ( InputStream input )
public static MerchantCenterDestination parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MerchantCenterDestination parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static MerchantCenterDestination parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static MerchantCenterDestination parseFrom ( ByteString data )
public static MerchantCenterDestination parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static MerchantCenterDestination parseFrom ( CodedInputStream input )
public static MerchantCenterDestination parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static MerchantCenterDestination parseFrom ( InputStream input )
public static MerchantCenterDestination parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static MerchantCenterDestination parseFrom ( ByteBuffer data )
public static MerchantCenterDestination parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<MerchantCenterDestination> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public AttributionSettings getAttributionSettings ()
Required. Attribution settings used for the Merchant Center Destination.
.google.shopping.merchant.conversions.v1.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];
public AttributionSettingsOrBuilder getAttributionSettingsOrBuilder ()
Required. Attribution settings used for the Merchant Center Destination.
.google.shopping.merchant.conversions.v1.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];
public String getCurrencyCode ()
Required. Three-letter currency code (ISO 4217). The currency code defines
in which currency the conversions sent to this destination will be reported
in Merchant Center.
string currency_code = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The currencyCode.
public ByteString getCurrencyCodeBytes ()
Required. Three-letter currency code (ISO 4217). The currency code defines
in which currency the conversions sent to this destination will be reported
in Merchant Center.
string currency_code = 4 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for currencyCode.
public MerchantCenterDestination getDefaultInstanceForType ()
public String getDestination ()
Output only. Merchant Center Destination ID.
string destination = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The destination.
public ByteString getDestinationBytes ()
Output only. Merchant Center Destination ID.
string destination = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for destination.
public String getDisplayName ()
Required. Merchant-specified display name for the destination. This is the
name that identifies the conversion source within the Merchant Center UI.
The maximum length is 64 characters.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The displayName.
public ByteString getDisplayNameBytes ()
Required. Merchant-specified display name for the destination. This is the
name that identifies the conversion source within the Merchant Center UI.
The maximum length is 64 characters.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for displayName.
public Parser<MerchantCenterDestination> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public boolean hasAttributionSettings ()
Required. Attribution settings used for the Merchant Center Destination.
.google.shopping.merchant.conversions.v1.AttributionSettings attribution_settings = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
boolean
Whether the attributionSettings field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public MerchantCenterDestination . Builder newBuilderForType ()
protected MerchantCenterDestination . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public MerchantCenterDestination . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]