--- v18/services/conversion_upload_service.proto 2025-08-05 14:36:13.000000000 +0000 +++ v19/services/conversion_upload_service.proto 2025-08-05 14:36:21.000000000 +0000 @@ -242,14 +243,31 @@ // The user identifiers associated with this conversion. Only hashed_email and // hashed_phone_number are supported for conversion uploads. The maximum // number of user identifiers for each conversion is 5. - repeated google.ads.googleads.v18.common.UserIdentifier user_identifiers = 17; + repeated google.ads.googleads.v19.common.UserIdentifier user_identifiers = 17; // The environment this conversion was recorded on, for example, App or Web. - google.ads.googleads.v18.enums.ConversionEnvironmentEnum.ConversionEnvironment + google.ads.googleads.v19.enums.ConversionEnvironmentEnum.ConversionEnvironment conversion_environment = 20; // The consent setting for the event. - google.ads.googleads.v18.common.Consent consent = 23; + google.ads.googleads.v19.common.Consent consent = 23; + + // Type of the customer associated with the conversion (new or returning). + // Accessible only to customers on the allow-list. + google.ads.googleads.v19.enums.ConversionCustomerTypeEnum + .ConversionCustomerType customer_type = 26; + + // The session attributes for the event. + oneof session_attributes { + // The session attributes for the event, represented as a base64-encoded + // JSON string. The content should be generated by Google-provided library. + // To set session attributes individually, use + // session_attributes_key_value_pairs instead. + bytes session_attributes_encoded = 24; + + // The session attributes for the event, represented as key-value pairs. + SessionAttributesKeyValuePairs session_attributes_key_value_pairs = 25; + } } // A call conversion. @@ -393,3 +411,20 @@ // Data of the items purchased. repeated Item items = 5; } + +// Contains one session attribute of the conversion. +message SessionAttributeKeyValuePair { + // Required. The name of the session attribute. + string session_attribute_key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The value of the session attribute. + string session_attribute_value = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Contains session attributes of the conversion, represented as key-value +// pairs. +message SessionAttributesKeyValuePairs { + // Required. The session attributes for the conversion. + repeated SessionAttributeKeyValuePair key_value_pairs = 1 + [(google.api.field_behavior) = REQUIRED]; +}
/services/conversion_upload_service.proto
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],null,["# /services/conversion_upload_service.proto\n\n```diff\n--- v18/services/conversion_upload_service.proto 2025-08-05 14:36:13.000000000 +0000\n+++ v19/services/conversion_upload_service.proto 2025-08-05 14:36:21.000000000 +0000\n@@ -242,14 +243,31 @@\n // The user identifiers associated with this conversion. Only hashed_email and\n // hashed_phone_number are supported for conversion uploads. The maximum\n // number of user identifiers for each conversion is 5.\n- repeated google.ads.googleads.v18.common.UserIdentifier user_identifiers = 17;\n+ repeated google.ads.googleads.v19.common.UserIdentifier user_identifiers = 17;\n\n // The environment this conversion was recorded on, for example, App or Web.\n- google.ads.googleads.v18.enums.ConversionEnvironmentEnum.ConversionEnvironment\n+ google.ads.googleads.v19.enums.ConversionEnvironmentEnum.ConversionEnvironment\n conversion_environment = 20;\n\n // The consent setting for the event.\n- google.ads.googleads.v18.common.Consent consent = 23;\n+ google.ads.googleads.v19.common.Consent consent = 23;\n+\n+ // Type of the customer associated with the conversion (new or returning).\n+ // Accessible only to customers on the allow-list.\n+ google.ads.googleads.v19.enums.ConversionCustomerTypeEnum\n+ .ConversionCustomerType customer_type = 26;\n+\n+ // The session attributes for the event.\n+ oneof session_attributes {\n+ // The session attributes for the event, represented as a base64-encoded\n+ // JSON string. The content should be generated by Google-provided library.\n+ // To set session attributes individually, use\n+ // session_attributes_key_value_pairs instead.\n+ bytes session_attributes_encoded = 24;\n+\n+ // The session attributes for the event, represented as key-value pairs.\n+ SessionAttributesKeyValuePairs session_attributes_key_value_pairs = 25;\n+ }\n }\n\n // A call conversion.\n@@ -393,3 +411,20 @@\n // Data of the items purchased.\n repeated Item items = 5;\n }\n+\n+// Contains one session attribute of the conversion.\n+message SessionAttributeKeyValuePair {\n+ // Required. The name of the session attribute.\n+ string session_attribute_key = 1 [(google.api.field_behavior) = REQUIRED];\n+\n+ // Required. The value of the session attribute.\n+ string session_attribute_value = 2 [(google.api.field_behavior) = REQUIRED];\n+}\n+\n+// Contains session attributes of the conversion, represented as key-value\n+// pairs.\n+message SessionAttributesKeyValuePairs {\n+ // Required. The session attributes for the conversion.\n+ repeated SessionAttributeKeyValuePair key_value_pairs = 1\n+ [(google.api.field_behavior) = REQUIRED];\n+}\n```"]]