limited-wall-6616
11/25/2022, 11:42 AMGoogle Ads Offline Conversions integration. Request / Response details in threadlimited-wall-6616
11/25/2022, 11:45 AM[
{
"version": "1",
"type": "REST",
"method": "POST",
"endpoint": "https://googleads.googleapis.com/v11/customers/[REDACTED]:uploadClickConversions",
"headers": {
"Authorization": "[REDACTED]",
"Content-Type": "application/json",
"developer-token": "[REDACTED]"
},
"params": {
"event": "Order Completed",
"customerId": "[REDACTED]",
"properties": {
"fbc": null,
"fbp": null,
"email": "[REDACTED]",
"phone": "[REDACTED]",
"total": null,
"value": 13566,
"revenue": 13566,
"currency": "EUR",
"discount": 0,
"event_id": "Order Completed.[REDACTED]",
"order_id": [REDACTED],
"products": [
{
"sku": "[REDACTED]",
"name": "[REDACTED]",
"brand": "[REDACTED]",
"price": 115,
"category": "[REDACTED]",
"currency": "EUR",
"product_id": "[REDACTED]"
},
{
"sku": "[REDACTED]",
"name": "[REDACTED]",
"brand": "[REDACTED]",
"price": 42.9,
"category": "[REDACTED]",
"currency": "EUR",
"product_id": "[REDACTED]"
},
{
"sku": "[REDACTED]",
"name": "[REDACTED]",
"price": 4.9,
"category": "[REDACTED]",
"currency": "EUR",
"product_id": "[REDACTED]"
}
],
"shipping": 408,
"subtotal": 13566,
"subscription_id": [REDACTED]
}
},
"body": {
"JSON": {
"conversions": [
{
"conversionDateTime": "2022-11-25 11:11:78+00:00",
"conversionValue": 13566,
"currencyCode": "EUR",
"orderId": "[REDACTED]",
"userIdentifiers": [
{
"hashedEmail": "[REDACTED]",
"userIdentifierSource": "FIRST_PARTY"
}
],
"cartData": {
"items": [
{
"productId": "[REDACTED]",
"quantity": null,
"unitPrice": 115
},
{
"productId": "[REDACTED]",
"quantity": null,
"unitPrice": 42.9
},
{
"productId": "[REDACTED]",
"quantity": null,
"unitPrice": 4.9
}
]
},
"conversionEnvironment": "WEB"
}
],
"partialFailure": true
},
"JSON_ARRAY": {},
"XML": {},
"FORM": {}
},
"files": {}
}
]limited-wall-6616
11/25/2022, 11:45 AMlimited-wall-6616
11/25/2022, 11:47 AM{
"firstAttemptedAt": "2022-11-25T11:47:39.690Z",
"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.\\nInvalid JSON payload received. Unknown name \\\"properties\\\": Cannot bind query parameter. Field 'properties' 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 \"description\": \"Invalid JSON payload received. Unknown name \\\"properties\\\": Cannot bind query parameter. Field 'properties' 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 and properties shouldn’t be here