Api end points to get all conversion action

142 views
Skip to first unread message

Shubham Kant

unread,
May 2, 2023, 4:26:02 AM5/2/23
to Google Ads API and AdWords API Forum
Hello Team,

I am searching for a google ads api which can provide me all conversion action list for particular customer_id, from the documentation I can only find how to create or update a conversion action.

Can you please help me out.

example : 

url = https://googleads.googleapis.com/v12/customers/['customer_id']/conversionActions
method = GET, something like this.

Regards,
Shubham Kant

Shubham Kant

unread,
May 2, 2023, 11:45:59 PM5/2/23
to Google Ads API and AdWords API Forum
Hello team, any update on this?

Vincent Mary

unread,
May 3, 2023, 3:20:29 AM5/3/23
to Google Ads API and AdWords API Forum
Hello ! 

I am currently searching for conversion date and time but can't find a way to get it !

I will wait with you the answer of the Google team.

Google Ads API Forum Advisor

unread,
May 3, 2023, 5:16:39 AM5/3/23
to vincen...@1984.agency, adwor...@googlegroups.com

Hello Vincent,

Thanks for reaching out to the Google Ads API Team.

Can you confirm if you wish to obtain these data using the Google Ads API? If so, please provide us with an uncropped UI screenshot of this data in the Google ads UI? I am asking this so we will be able to provide guidance as to what report to recommend and what fields are available on the report.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2l9jsS:ref

Vincent Mary

unread,
May 3, 2023, 5:33:24 AM5/3/23
to Google Ads API and AdWords API Forum
Thanks for your answer.

I can't find a graphic where this information (date and time of conversion) is visible.
To be more precise, I would like to know if it's possible to list all conversions of a campaign from a date and then to get the dateTime of each conversion and the "searched keyword" which led to this conversion. 

Do you know if the API is capable to do this ?

Google Ads API Forum Advisor

unread,
May 3, 2023, 8:35:25 AM5/3/23
to vincen...@1984.agency, adwor...@googlegroups.com
Hi Vincent,

Based on the given context, you may use the conversion_action report (https://developers.google.com/google-ads/api/fields/v13/conversion_action). However, we would need an un-cropped screenshot of your Google Ads UI showing the entity/data that you want to pull via API as it will greatly help us to identify its equivalent field on the API side. Please do note that the API mirrors the reports/data of the Google Ads UI. Since you mentioned that you can't find the graphic (or Google Ads UI) showing the information for your use case, what I can recommend at this point is to head over to our Product Support team first (via this link: https://support.google.com/google-ads/gethelp), then ask them how to generate (or where to find) the report/data that you need via UI. Once done, you may share it to us, so we can provide guidance on how to pull it via API.

Google Ads API Forum Advisor

unread,
May 3, 2023, 9:14:18 AM5/3/23
to sk...@dazos.com, adwor...@googlegroups.com

Hi Shubham,

I'm from the Google Ads API team.

I'm afraid that there's no endpoint to directly list your conversion actions. However, you may query the conversion_action resource using GAQL to retrieve all conversion actions in your account.

For additional reference, I suggest you check our Reporting guide and the Search & SearchStream to learn more about how reports work in Google Ads API. Furthermore, you may utilize the conversion_action's query builder to quickly check the available fields and check for compatibility issues.

I hope this helps. Let us know if you have any further clarification.

Reference links:
conversion_action - https://developers.google.com/google-ads/api/fields/v13/conversion_action
query builder - https://developers.google.com/google-ads/api/fields/v13/conversion_action_query_builder
Reporting - https://developers.google.com/google-ads/api/docs/reporting/overview
Search & SearchStream - https://developers.google.com/google-ads/api/rest/common/search

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2l9HzV:ref
Message has been deleted

Vincent Mary

unread,
May 4, 2023, 7:55:13 AM5/4/23
to Google Ads API and AdWords API Forum
Hi ! 

I sent you a direct email to :  ads...@forumsupport.google with the un-cropped  screenshot did you receive it ?

Message has been deleted

Vincent Mary

unread,
May 5, 2023, 3:09:03 AM5/5/23
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Thanks a lot. 

But If you closely watch my screenshot you can see that on the UI we know that we had a conversion between 13h and 14h.
If the API mirror the UI, how can I get this information ?
For example, I want to get all clicks of a day for a precise campaign and know if one of those clicks led to a conversion and when this conversion happened.


Cordialement
Vincent Mary





Le jeu. 4 mai 2023 à 21:46, Google Ads API Forum Advisor <ads...@forumsupport.google> a écrit :
Hello Vincent,

Thank you for responding back to us.

Confirming that we have received the screenshot you shared. With that, we navigated to UI to see the current values you have. Kindly refer to the attached screenshot for our view.

Please note that the API mirrors only the UI. Thus, the API can only get the data that is being shown in the UI. With that, with regards to your question of what data you can get and base on the screenshot also, we can only retrieve the clicks, conversions, cost per conversion and cost values through API. You may check the below query for the sample.
{
"query": "
SELECT metrics.conversions, metrics.clicks, metrics.cost_per_conversion, metrics.cost_micros FROM customer WHERE segments.date = '2023-04-23'
"
}

And here is the sample result:
{
  "results": [
    {
      "customer": {
        "resourceName": "customers/5222643941"
      }, 
      "metrics": {
        "conversions": 22, 
        "costMicros": "1809281157", 
        "clicks": "511", 
        "costPerConversion": 82240052.5909091
      }
    }
  ], 
  "fieldMask": "metrics.conversions,metrics.clicks,metrics.costPerConversion,metrics.costMicros"
}

Let us know should you have further concerns with the API.

Google Ads API Forum Advisor

unread,
May 5, 2023, 9:07:03 AM5/5/23
to vincen...@1984.agency, adwor...@googlegroups.com
Hi Vincent,

Thank you for responding back.

As per your use case wherein you want to get the information between 13h and 14h, you may need to utilize the segments.hour field. I've created a query for your reference.
 
SELECT metrics.conversions, metrics.clicks, metrics.cost_per_conversion, metrics.cost_micros, segments.hour FROM customer WHERE segments.date = '2023-04-23' AND segments.hour BETWEEN 13 AND 14

Vincent Mary

unread,
May 5, 2023, 9:40:29 AM5/5/23
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Thank you for the information. 

Now How can i retrieve a keyword associate to a conversion like here : 
image.png

And is there any way to link "SELECT metrics.conversions, metrics.clicks, metrics.cost_per_conversion, metrics.cost_micros, segments.hour FROM customer WHERE segments.date = '2023-04-23' AND segments.hour BETWEEN 13 AND 14" And the graphic above ?


Cordialement
Vincent Mary




Google Ads API Forum Advisor

unread,
May 5, 2023, 3:41:52 PM5/5/23
to vincen...@1984.agency, adwor...@googlegroups.com

Hi Vincent,

Thank you for your response.

For you to get the keywords for your conversion, you can try the query "SELECT segments.keyword.info.text, metrics.conversions FROM search_term_view WHERE segments.date = '2023-04-23'"". Then, for your question for the way to link the previous query to this new query, I'm afraid there is no way to link the two request, since in search_term_view resource, there is no segments.hour that can get the "segments.hour BETWEEN 13 AND 14". If you encounter any errors in the provided query for keywords, kindly provide us an un-cropped screenshot of the UI and complete request and response logs with the request-id so we can take a closer look into it. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Reference link:

Reply all
Reply to author
Forward
0 new messages