Conversion Action ID

244 views
Skip to first unread message

Tommaso V.

unread,
May 30, 2024, 5:25:38 AM5/30/24
to Google Ads API and AdWords API Forum
Hi everyone,
We are implementing offline conversions in Google Ads, and we are asked to insert a conversion ID in the code. I’d like to know if this ID is something we need to find ourselves or if it is provided by Google Ads.
As far we can read in the code the line of code that we should populate is the following:
params.conversionActionId = Long.parseLong(“INSERT_CONVERSION_ACTION_ID_HERE”);
Can someone explain where to find the conversion ID and how to correctly insert it into the code?
Thanks in advance for your help!
Message has been deleted
Message has been deleted
Message has been deleted

Google Ads API and AdWords API Forum

unread,
May 30, 2024, 11:47:32 AM5/30/24
to Google Ads API and AdWords API Forum
Hi,

Thank you for reaching out to the Google Ads API support team.

As per the information provided, I understand that you are facing difficulties in finding the conversion_action_ID which needs to be passed while making the API request. You could fetch the conversion_action.id from the conversion_action resource. Please find the sample query as per your requirement: 

SELECT conversion_action.id FROM conversion_action WHERE conversion_action.name = '{conversion action name}'

You can utilize the search or searchStream methods for making the API request. To find the conversion action name navigate to your Google Ads account > Goals > Conversions > Summary > Conversion goals > Conversion action names. Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API.

Thanks and Regards,
Google Ads API support team.
Reply all
Reply to author
Forward
0 new messages