Hi! I’m trying to set up the connection between ou...
# support
w
Hi! I’m trying to set up the connection between our backend and Google Ads (Offline Conversion) through RudderStack. I mapped the backend event
solved_problem_in_topic
with Google Ads click conversion with the same name
solved_problem_in_topic
. I checked live events for destination “Google Ads (Offline Conversion)” and these events were marked as a success, but I can’t see any conversion in Google Ads. The payload for these events is:
Copy code
{
  "version": "1",
  "type": "REST",
  "method": "POST",
  "endpoint": "https://googleads.googleapis.com/v13/customers/1234512345:uploadClickConversions",
  "headers": {
    "Authorization": "Bearer ******1234",
    "Content-Type": "application/json",
    "developer-token": "abc123"
  },
  "params": {
    "event": "solved_problem_in_topic",
    "customerId": "1234512345",
    "properties": {
      "fbc": "",
      "fbp": "",
      "gclid": "abc123abc123",
      "price": 0,
      "revenue": 0,
      "order_id": null,
      "platform": "web",
      "products": null,
      "os_family": "Windows",
      "device_family": "Other"
    }
  },
  "body": {
    "JSON": {
      "conversions": [
        {
          "cartData": {
            "items": [
              {
                "unitPrice": 0
              }
            ]
          },
          "gclid": "abc123abc123",
          "conversionDateTime": "2023-08-31 07:39:43+00:00",
          "conversionValue": 0,
          "userIdentifiers": [
            {
              "userIdentifierSource": "FIRST_PARTY",
              "hashedEmail": "abc123abc123"
            }
          ]
        }
      ],
      "partialFailure": true
    },
    "JSON_ARRAY": {},
    "XML": {},
    "FORM": {}
  },
  "files": {}
}
Also, I tried to make this request in Postman. This request returns 200 (OK) but there is an error message in the response body.
Copy code
{
  "partialFailureError": {
    "code": 3,
    "message": "The required field was not present., at conversions[0].conversion_action",
    "details": [
      {
        "@type": "type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": {
              "fieldError": "REQUIRED"
            },
            "message": "The required field was not present.",
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "conversions",
                  "index": 0
                },
                {
                  "fieldName": "conversion_action"
                }
              ]
            }
          }
        ],
        "requestId": "abc123abc"
      }
    ]
  },
  "results": [
    {}
  ]
}
I added the field
conversionAction
in the request body in Postman and then I can see this conversion in Google Ads. Could you please help me resolve this issue? 1. Am I right in believing that RudderStack does not capture error messages for Google Ads destination if the response code is 200? 2. How can I add the field
conversionAction
to body request for RudderStack? Maybe I need to turn on some property in the Google Ads or the Rudder Stack?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
Hi Marina another customer is facing a similar issue let me check if I can find it. You are right in that we are not able to show errors when Google returns a 2xx.
Also the error that you are seeing when using Postman is not valid here since the code makes a call to Google Ads to fetch the conversion_action_id
👍 1
Can you provide the sample payload you are sending from the source?
Also I see the following error in the destination {"response":"Event name 'solved_problem_of_the_day' is not valid","firstAttemptedAt":"2023-08-31T114511.491Z","content-type":"application/json"} The 'solved_problem_of_the_day" event is not mapped.
w
Can you provide the sample payload you are sending from the source?
Curl for my request:
Copy code
curl --location 'https://googleads.googleapis.com/v13/customers/3258466431:uploadClickConversions?customerId=***8466***' \
--header 'Content-Type: application/json' \
--header 'developer-token: **2EcId***' \
--header 'Authorization: Bearer ***0179' \
--data '{
    "conversions": [
        {
            "cartData": {
                "items": [
                    {
                        "unitPrice": 0
                    }
                ]
            },
            "gclid": "CjwKCAjwr***",
            "conversionDateTime": "2023-08-30 14:36:27+00:00",
            "conversionValue": 0,
            "conversionAction": "customers/***8466***/conversionActions/662740***",
            "userIdentifiers": [
                {
                    "userIdentifierSource": "FIRST_PARTY",
                    "hashedEmail": "0b347f7e04677af97f9d3***"
                }
            ]
        }
    ],
    "partialFailure": true
}'
Also I see the following error in the destination
{“response”:“Event name ‘solved_problem_of_the_day’ is not valid”,“firstAttemptedAt”“2023 08 31T114511.491Z”,“content type”“application/json”}
The ’solved_problem_of_the_day” event is not mapped.
It’s ok, this event is not configured properly yet.
Could you please check the 200 ok response for my destination if it is possible? Maybe some partial_failure_error are appearing.
s
Sorry Marina, one more question, you have another conversion event “Order Completed” that is mapped. Is that mapping working correctly?
w
@shy-kite-21035 I’m unsure because we also get conversion “Order Completed” from Google Analytics 4.
s
Oh ok. Also can you create one more conversion event, but don’t use
_
(underscore) _in your event name in Google Ads. It appears that names with `_`_ (underscore) such as
solved_problem_in_topic
are not supported.
👀 1
w
@shy-kite-21035 thanks! I created a new conversion
SolvedProblemInTopic
in Google Ads and mapped
solved_problem_in_topic
to
SolvedProblemInTopic
in RudderStack. I will check if it works on Monday.
@shy-kite-21035 I checked the conversion in Google Ads, nothing changed
m
Hi Marina, there seems to be a bug related to this that another paying customer is also facing and I will update you once the team confirms the diagnosis.
👌 1
c
@white-action-25961 Was looking at your code snippet - I see you have fbc, fbp, gclid, etc. inside properties… is that where its supposed to go? or inside context? I’m setting this up now and wondering if you implementation is working.
👀 1
w
@chilly-television-36470 We put it both in properties and in context. Should we only put it only in context?
m
Hi Marina, the docs for Google Offline events mention the following. I see that you are sending the conversionDataTime correctly but can you confirm the conversion event is after the click time. Also the team made a change where any partial errors are displayed in the dashboard (earlier they were not being shown). Can you check that as well https://developers.google.com/google-ads/api/samples/upload-offline-conversion#java
Copy code
"The date time at which the conversion occurred. " + "Must be after the click time, and must include the time zone offset. " + "The format is  'yyyy-mm-dd hh:mm:ss+|-hh:mm', e.g. '2019-01-01 12:32:45-08:00'.")
w
@shy-kite-21035 thank you! I will check it.
c
@shy-kite-21035 Can you confirm if these values should be in context or properties? Working on the same setup and curious
m
The values that you have in the context seem to be correct (properties is generally for the event properties such as the type of object, price, category etc)