public final class GoogleAdsLink extends GeneratedMessageV3 implements GoogleAdsLinkOrBuilder
A link between a GA4 property and a Google Ads account.
Protobuf type google.analytics.admin.v1alpha.GoogleAdsLink
Static Fields
ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER
public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER
Field Value
CAN_MANAGE_CLIENTS_FIELD_NUMBER
public static final int CAN_MANAGE_CLIENTS_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
CREATOR_EMAIL_ADDRESS_FIELD_NUMBER
public static final int CREATOR_EMAIL_ADDRESS_FIELD_NUMBER
Field Value
CUSTOMER_ID_FIELD_NUMBER
public static final int CUSTOMER_ID_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static GoogleAdsLink getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static GoogleAdsLink.Builder newBuilder()
Returns
newBuilder(GoogleAdsLink prototype)
public static GoogleAdsLink.Builder newBuilder(GoogleAdsLink prototype)
Parameter
Returns
public static GoogleAdsLink parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static GoogleAdsLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static GoogleAdsLink parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GoogleAdsLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static GoogleAdsLink parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GoogleAdsLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GoogleAdsLink parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static GoogleAdsLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GoogleAdsLink parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static GoogleAdsLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static GoogleAdsLink parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GoogleAdsLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<GoogleAdsLink> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAdsPersonalizationEnabled()
public BoolValue getAdsPersonalizationEnabled()
Enable personalized advertising features with this integration.
Automatically publish my Google Analytics audience lists and Google
Analytics remarketing events/parameters to the linked Google Ads account.
If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5;
Returns
Type | Description |
BoolValue | The adsPersonalizationEnabled.
|
getAdsPersonalizationEnabledOrBuilder()
public BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder()
Enable personalized advertising features with this integration.
Automatically publish my Google Analytics audience lists and Google
Analytics remarketing events/parameters to the linked Google Ads account.
If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5;
Returns
getCanManageClients()
public boolean getCanManageClients()
Output only. If true, this link is for a Google Ads manager account.
bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | The canManageClients.
|
getCreateTime()
public Timestamp getCreateTime()
Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getCreatorEmailAddress()
public String getCreatorEmailAddress()
Output only. Email address of the user that created the link.
An empty string will be returned if the email address can't be retrieved.
string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The creatorEmailAddress.
|
getCreatorEmailAddressBytes()
public ByteString getCreatorEmailAddressBytes()
Output only. Email address of the user that created the link.
An empty string will be returned if the email address can't be retrieved.
string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
ByteString | The bytes for creatorEmailAddress.
|
getCustomerId()
public String getCustomerId()
Immutable. Google Ads customer ID.
string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
String | The customerId.
|
getCustomerIdBytes()
public ByteString getCustomerIdBytes()
Immutable. Google Ads customer ID.
string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE];
Returns
Type | Description |
ByteString | The bytes for customerId.
|
getDefaultInstanceForType()
public GoogleAdsLink getDefaultInstanceForType()
Returns
getName()
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
Note: googleAdsLinkId is not the Google Ads customer ID.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
Note: googleAdsLinkId is not the Google Ads customer ID.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getParserForType()
public Parser<GoogleAdsLink> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
hasAdsPersonalizationEnabled()
public boolean hasAdsPersonalizationEnabled()
Enable personalized advertising features with this integration.
Automatically publish my Google Analytics audience lists and Google
Analytics remarketing events/parameters to the linked Google Ads account.
If this field is not set on create/update, it will be defaulted to true.
.google.protobuf.BoolValue ads_personalization_enabled = 5;
Returns
Type | Description |
boolean | Whether the adsPersonalizationEnabled field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. Time when this link was originally created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
hasUpdateTime()
public boolean hasUpdateTime()
Output only. Time when this link was last updated.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public GoogleAdsLink.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GoogleAdsLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public GoogleAdsLink.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions