limited-wall-6616
11/25/2022, 9:39 AMGoogle Ads Enhanced Conversions - We tracking an Order Completed event, I get an error from Google APIs saying the payload is malformated (a problem with the event param the integration is sending). Request / Response details in threads.limited-wall-6616
11/25/2022, 9:40 AM{
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://googleads.googleapis.com/v10/customers/[REDACTED]:uploadConversionAdjustments",
"headers": {
"Authorization": "[REDACTED]",
"Content-Type": "application/json",
"developer-token": "[REDACTED]"
},
"params": {
"event": "Order Completed",
"customerId": "[REDACTED]"
},
"body": {
"JSON": {
"conversionAdjustments": [
{
"restatementValue": {
"currencyCode": "EUR"
},
"orderId": "[REDACTED]",
"userIdentifiers": [
{
"hashedEmail": "[REDACTED]"
},
{
"hashedPhoneNumber": "[REDACTED]"
}
],
"adjustmentType": "ENHANCEMENT"
}
],
"partialFailure": true
},
"JSON_ARRAY": {},
"XML": {},
"FORM": {}
},
"files": {}
}limited-wall-6616
11/25/2022, 9:41 AM{
"firstAttemptedAt": "2022-11-25T09:31:47.530Z",
"response": "{\n \"error\": {\n \"code\": 400,\n \"message\": \"Invalid JSON payload received. Unknown name \\\"event\\\": Cannot bind query parameter. Field 'event' could not be found in request message.\",\n \"status\": \"INVALID_ARGUMENT\",\n \"details\": [\n {\n \"@type\": \"type.googleapis.com/google.rpc.BadRequest\",\n \"fieldViolations\": [\n {\n \"description\": \"Invalid JSON payload received. Unknown name \\\"event\\\": Cannot bind query parameter. Field 'event' could not be found in request message.\"\n }\n ]\n }\n ]\n }\n}\n",
"content-type": "application/json; charset=UTF-8"
}limited-wall-6616
11/25/2022, 11:48 AMevent shouldnāt be herelimited-wall-6616
11/25/2022, 12:50 PMlimited-wall-6616
11/25/2022, 5:24 PMlimited-wall-6616
11/26/2022, 8:34 AMrudderlabs/rudder-server:latest and rudderlabs/rudder-transformer:latestlimited-wall-6616
11/27/2022, 9:11 AMlimited-wall-6616
11/27/2022, 9:12 AMlimited-wall-6616
11/29/2022, 6:35 AMlimited-wall-6616
11/29/2022, 7:35 PMlimited-wall-6616
11/29/2022, 7:36 PM@rudderstack/rudder-sdk-nodelimited-wall-6616
11/29/2022, 7:41 PMlimited-wall-6616
11/29/2022, 7:58 PMruddertack.track('Order Completed', params) using the node SDK
⢠See in the live events pannel that I correctly get my event comes in, but with a 422 from Google APIs.
⢠I copy pasted here what rudderstack sent to the google API (request) and also copy pasted the Response from google API (when I click on the ācheck error detailsā in the live event pannel)limited-wall-6616
11/29/2022, 8:00 PM[REDACTED] for privacy (like api tokens, customer id, hashedEmail etclimited-wall-6616
11/29/2022, 8:08 PMlimited-wall-6616
11/29/2022, 8:08 PMlimited-wall-6616
11/30/2022, 3:45 PMlimited-wall-6616
11/30/2022, 3:46 PMlimited-wall-6616
11/30/2022, 4:55 PMlimited-wall-6616
11/30/2022, 4:55 PMlimited-wall-6616
11/30/2022, 4:59 PMlimited-wall-6616
11/30/2022, 4:59 PMlimited-wall-6616
11/30/2022, 5:01 PMGOOGLE_ADWORDS_ENHANCED_CONVERSIONS is an objectlimited-wall-6616
11/30/2022, 5:01 PMtransformerProxy: true)limited-wall-6616
11/30/2022, 5:05 PMlimited-wall-6616
11/30/2022, 5:05 PMlimited-wall-6616
11/30/2022, 5:07 PMRouterlimited-wall-6616
11/30/2022, 5:07 PMlimited-wall-6616
11/30/2022, 5:07 PMlimited-wall-6616
11/30/2022, 5:08 PMlimited-wall-6616
11/30/2022, 5:08 PMlimited-wall-6616
11/30/2022, 5:09 PMlimited-wall-6616
11/30/2022, 5:09 PMlimited-wall-6616
12/01/2022, 7:10 AMlimited-wall-6616
12/01/2022, 7:12 AMlimited-wall-6616
12/01/2022, 7:12 AMlimited-wall-6616
12/01/2022, 7:12 AMlimited-wall-6616
12/01/2022, 7:12 AMlimited-wall-6616
12/01/2022, 7:12 AMlimited-wall-6616
12/01/2022, 7:39 AMlimited-wall-6616
12/01/2022, 7:40 AMENHANCED by OFFLINE for Google Ads Offline Converisons and it worked hahalimited-wall-6616
12/01/2022, 7:41 AMRSERVER_ROUTER_GOOGLE_ADWORDS_ENHANCED_CONVERSIONS_TRANSFORMER_PROXY => Works for google enhanced conversions integration
RSERVER_ROUTER_GOOGLE_ADWORDS_OFFLINE_CONVERSIONS_TRANSFORMER_PROXY => Work for google offline conversion integrationlimited-wall-6616
12/01/2022, 7:41 AMlimited-wall-6616
12/01/2022, 7:42 AMlimited-wall-6616
12/01/2022, 9:12 AMlimited-wall-6616
12/01/2022, 9:13 AMlimited-wall-6616
12/01/2022, 9:13 AMlimited-wall-6616
12/01/2022, 9:13 AM{
"firstAttemptedAt": "2022-12-01T07:25:28.572Z",
"response": "{\"status\":400,\"message\":\"[Google Ads Offline Conversions]:: Conversion Custom Variable has not been created yet in Google Ads\",\"statTags\":{\"errorAt\":\"proxy\",\"destType\":\"GOOGLE_ADWORDS_OFFLINE_CONVERSIONS\",\"stage\":\"responseTransform\",\"scope\":\"exception\"}}",
"content-type": "application/json"
}limited-wall-6616
12/01/2022, 10:11 AMlimited-wall-6616
12/01/2022, 10:11 AMlimited-wall-6616
12/01/2022, 10:12 AMconversionDateTime or originalTimestamp if my payload, Rudderstack automatically adds onelimited-wall-6616
12/01/2022, 10:12 AMlimited-wall-6616
12/01/2022, 10:12 AM"params": {
"event": "Order Completed",
"customerId": "[REDACTED]",
"customVariables": [
{
"from": "",
"to": ""
}
],
"properties": {
"fbc": null,
"fbp": null,
"email": "test@mobile.club",
"gclid": "test",
"phone": "06 07 08 09 10",
"total": null,
"value": 16883,
"revenue": 16883,
"currency": "EUR",
"discount": 0,
"event_id": "Order Completed.28768",
"order_id": 28768,
"shipping": 825,
"subtotal": 16883,
"subscription_id": 28768
}
},limited-wall-6616
12/01/2022, 10:13 AMlimited-wall-6616
12/01/2022, 10:13 AM"body": {
"JSON": {
"conversions": [
{
"conversionDateTime": "2022-12-01 10:12:80+00:00",
"conversionValue": 16883,
"currencyCode": "EUR",
"orderId": "28768",
"userIdentifiers": [
{
"hashedEmail": "16d63c056db387b2ab955763ba33633ce765687567122fa5109c4ee4af5cf7ac",
"userIdentifierSource": "FIRST_PARTY"
}
]
}
],
"partialFailure": true
},
"JSON_ARRAY": {},
"XML": {},
"FORM": {}
},limited-wall-6616
12/01/2022, 10:14 AMconversionDateTime šlimited-wall-6616
12/01/2022, 10:14 AM80 š¤ )limited-wall-6616
12/01/2022, 10:15 AM12 (whatever the actual current time minute) and seconds are randomely set to valid or invalid values. Let me show you :limited-wall-6616
12/01/2022, 10:16 AMlimited-wall-6616
12/01/2022, 10:16 AMlimited-wall-6616
12/01/2022, 10:16 AMlimited-wall-6616
12/01/2022, 10:16 AM"body": {
"JSON": {
"conversions": [
{
"gclid": "test",
"conversionDateTime": "2022-12-01 10:12:89+00:00",
"conversionValue": 16883,
"currencyCode": "EUR",
"orderId": "28768",
"userIdentifiers": [
{
"hashedEmail": "16d63c056db387b2ab955763ba33633ce765687567122fa5109c4ee4af5cf7ac",
"userIdentifierSource": "FIRST_PARTY"
}
]
}
],
"partialFailure": true
},
"JSON_ARRAY": {},
"XML": {},
"FORM": {}
},limited-wall-6616
12/01/2022, 10:16 AM"conversionDateTime": "2022-12-01 10:12:89+00:00"limited-wall-6616
12/01/2022, 10:17 AMlimited-wall-6616
12/01/2022, 10:17 AMlimited-wall-6616
12/01/2022, 10:17 AMlimited-wall-6616
12/01/2022, 10:18 AM12/1/2022 11:17:28 AMlimited-wall-6616
12/01/2022, 10:18 AMlimited-wall-6616
12/01/2022, 10:18 AM"body": {
"JSON": {
"conversions": [
{
"gclid": "test",
"conversionDateTime": "2022-12-01 10:12:77+00:00",
"conversionValue": 16883,
"currencyCode": "EUR",
"orderId": "28768",
"userIdentifiers": [
{
"hashedEmail": "16d63c056db387b2ab955763ba33633ce765687567122fa5109c4ee4af5cf7ac",
"userIdentifierSource": "FIRST_PARTY"
}
]
}
],
"partialFailure": true
},
"JSON_ARRAY": {},
"XML": {},
"FORM": {}
},limited-wall-6616
12/01/2022, 10:18 AM"conversionDateTime": "2022-12-01 10:12:77+00:00"limited-wall-6616
12/01/2022, 10:19 AM12 ) and seconds are wrong (77)limited-wall-6616
12/01/2022, 10:19 AMlimited-wall-6616
12/01/2022, 4:24 PMlimited-wall-6616
12/01/2022, 4:24 PMlimited-wall-6616
12/01/2022, 4:25 PMMM is for month and because we are in december, it outputs ā12ālimited-wall-6616
12/01/2022, 4:25 PMMM is used for both month and minuteslimited-wall-6616
12/01/2022, 4:25 PMYYYY-MM-DD HH:MM:SSZlimited-wall-6616
12/01/2022, 4:26 PMYYYY-MM-DD HH:mm:SSZlimited-wall-6616
12/01/2022, 4:32 PMlimited-wall-6616
12/01/2022, 4:32 PMlimited-wall-6616
12/01/2022, 4:32 PMYYYY-MM-DD HH:mm:ss.SSSZlimited-wall-6616
12/01/2022, 4:33 PMSS is for fractional seconds, not secondslimited-wall-6616
12/01/2022, 4:33 PMss is for secondslimited-wall-6616
12/01/2022, 4:33 PMlimited-wall-6616
12/01/2022, 4:33 PM> require('moment')("2022-12-01T11:17:28.999Z").format('YYYY-MM-DD HH:mm:ss.SSSZ')
'2022-12-01 12:17:28.999+01:00'limited-wall-6616
12/01/2022, 4:45 PMlimited-wall-6616
12/01/2022, 4:47 PM