Get conversion action for uploading offline clic conversion

139 views
Skip to first unread message

SAFTI France

unread,
Jul 6, 2022, 9:22:19 AM7/6/22
to Google Ads API and AdWords API Forum
Hello,
I have an error message trying to upload offline clic conversion :

Indeed, I am having this issue :
' This customer does not have an import conversion action that matches the conversion action provided., at conversions[0].conversion_action'

My conversion action is owned by the correct user that I am using for my program. 

I don't know how to face this issue, do you have any idea ?

Thanks

Google Ads API Forum Advisor

unread,
Jul 6, 2022, 10:20:56 AM7/6/22
to sfran...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to our API support team.

I appreciate your effort in providing details about your concern. However to investigate the issue further, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cT7xD:ref

Mike M

unread,
Jul 6, 2022, 2:51:18 PM7/6/22
to Google Ads API and AdWords API Forum
I had this same problem. I don't know if this will resolve you, but basically I needed to understand that a Conversion Action is not the physical string label of it. For instance, I had a Conversion Action with a label "Upsell 1". I couldn't pass "Upsell 1" as the conversion action at least in the REST API. (You might be using gRPC/SOAP, which might be different here, by the way.) Instead, I had to find the numerical ID for that conversion action labeled "Upsell 1". The trick is to go into Google Ads Manager, find the Conversion Action, click to edit it, and then look in the URL at the ctID parameter. Click Cancel on that Edit when you write down that ID.

Moreover, you have to put that numeric ID into a string that looks like so (as far as my PHP code is concerned):

"customers/$sLinkedCustomerID/conversionActions/$nConversionID"

...where $nConversionID is that number from the ctID parameter in the URL that you saw.

The docs don't appear to tell you this, do they?

The other thing to denote is the confusion of Customer IDs. Use this rule of thumb:

- Used 2 Adwords accounts? One for developer and one for the actual account you want to change? If so, then the URL for the API call as well as the actual conversion needs the Customer ID to be the Linked Customer ID, while the header for the REST API call needs to be the Login Customer ID (ie, the developer account used for making the API calls).

---OR---

- Used 1 Adword account for both API call and where you want to make the change? If so, then the Linked Customer ID and Login Customer ID should be the same value.

Hope this helps.


Google Ads API Forum Advisor

unread,
Jul 6, 2022, 4:17:38 PM7/6/22
to volo...@gmail.com, adwor...@googlegroups.com
Hi Mike,

Thank you for sharing your knowledge! To get the match between Conversion action name and conversion action Resource name (all Ads API objects are accessible via resource name, while in the sunsetted AdWords API it wasn't like this) you can use the conversion_action resource. If you are using the Code Samples with our Client Libraries you may not see this so clearly. Our REST Interface doesn't hide the gory details though.

Another concern is if your account has Cross-account conversion tracking. All conversions would be uploaded to the MCC account that has the conversion action and not to the account that originated the GCLID. The MCC's account's ad tag would be taking care of the conversions.

linked-customer-id header is only used by third-party app analytics providers when uploading conversions to a linked Google Ads account. You only need a login customer Id header if the Google Account that generated your refresh token can only access the operating customer account via another  MCC account that that Google Account is a user on.

Feel free to get back to us.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


 

ref:_00D1U1174p._5004Q2cT7xD:ref

SAFTI France

unread,
Jul 7, 2022, 5:24:29 AM7/7/22
to Google Ads API and AdWords API Forum
Hello thanks for your answers,
Indeed I had  to use a conversion action id in my query using php google ads library. (showing in my screen)
But When I am performing my query I am still having this issue.

I am using the same user for the login and linked customer id  in the google_ads.ini file.

ALso when I am performing the query

'SELECT
conversion_action.id,
conversion_action.name,
conversion_action.owner_customer,
conversion_action.resource_name
FROM
conversion_action
'

I retrieve the conversion action  that I want to use, and it's owned by my user.
Capture d’écran du 2022-07-07 11-16-19.png

Google Ads API Forum Advisor

unread,
Jul 7, 2022, 8:49:33 AM7/7/22
to sfran...@gmail.com, adwor...@googlegroups.com
Hi France,

Thank you for raising your concern to my team. I am also a member of the Google Ads API team and let me provide support to your concern.

So that we can have a closer look at the issue, kindly provide the information (complete request and response logs with request ID and request header generated on your end) that my colleague is asking so that we can address the issue. You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cT7xD:ref
Reply all
Reply to author
Forward
0 new messages