fetching Conversion Actions list

163 views
Skip to first unread message

michele

unread,
Aug 7, 2019, 4:07:21 PM8/7/19
to AdWords API and Google Ads API Forum
Hello,

We're trying to fetch the list of Conversion Actions available within an account, but the ConversionTypeService that seems to be used by the AdWords interface doesn't seem to be available via the API, both the old and the new one.
I found it mentioned here, in the AdWords API documentation page referencing the errors that could arise, and no mention at all in the Ads API documentation.

Is there an officially supported way of fetching that list?

Thanks,
Michele

Google Ads API Forum Advisor Prod

unread,
Aug 7, 2019, 8:35:41 PM8/7/19
to mic...@precisdigital.com, adwor...@googlegroups.com
Hi Michele, 

The AdWords API/Google Ads API have the same functionality as the Google Ads UI. However, the naming is a bit different from the backend services. If you are looking to pull the list of Conversion actions in the account, you may use the ConversionTrackerService.get() in AdWords API. Through Google Ads API, the ConversionActionService will return the list of conversion actions. The migration guide should be helpful which outlines the AdWords API services and their equivalent Google Ads API services. 

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UEIFmI:ref

michele

unread,
Aug 8, 2019, 10:01:16 AM8/8/19
to AdWords API and Google Ads API Forum
Thank you very much Bharani, really helpful!
Is there any easy way of fetching all of them using the the new Ads API?

Google Ads API Forum Advisor Prod

unread,
Aug 8, 2019, 2:37:54 PM8/8/19
to mic...@precisdigital.com, adwor...@googlegroups.com
Hi Michele, 

One other option to retrieve these details is using the conversion_action resource directly using the GAQL in your search query. You may find a similar code sample here as a reference. You may then include the fields that should be required and pull those details. Code samples in other languages can be found here. Let me know if you have any other questions.

michele

unread,
Aug 9, 2019, 1:20:30 PM8/9/19
to AdWords API and Google Ads API Forum
Hello,

I don't seem to be able to get a GAQL query working, but that's alright since we'll be focusing on the AdWords API for now..
But I'm having issues with those too: the ConversionTrackerService doesn't seem to return trackers not included in Conversions, no matter the values I pass in the predicates, e.g.
'predicates': [{'field': 'ExcludeFromBidding',
   
'operator': 'IN',
   
'values': ['TRUE', 'FALSE']

Thank you for the help

Google Ads API Forum Advisor Prod

unread,
Aug 9, 2019, 5:04:40 PM8/9/19
to mic...@precisdigital.com, adwor...@googlegroups.com
Hi Michele, 

If you're using Google Ads API, please find the query below to pull the conversion actions:
SELECT conversion_action.category, conversion_action.id, conversion_action.name, conversion_action.status FROM conversion_action

If you're using AdWords API, the code snippet in Java should be helpful to build a similar request in the client library you are using:

SelectorBuilder builder = new SelectorBuilder();
Selector selector = builder
.fields(ConversionTrackerField.values())
.orderAscBy(CampaignField.Name)
.offset(offset)
.limit(PAGE_SIZE)
.build();
ConversionTrackerPage page
page = campaignService.get(selector);

Please refer to the similar code sample in PHP as a reference. Code samples in other languages can be found here. Could you please give this a try and let us know if you encounter any issues?



Thanks,
Bharani, Google Ads API Team 



ref:_00D1U1174p._5001UEIFmI:ref

michele

unread,
Aug 13, 2019, 1:54:27 PM8/13/19
to AdWords API and Google Ads API Forum
Hello, 

I'm still trying out all the options, but I don't seem to be able to fetch imported conversions, such as those coming from Analytics..
Is there any way of listing them through the APIs?

Thanks for all the support!
Michele

Google Ads API Forum Advisor Prod

unread,
Aug 13, 2019, 5:50:25 PM8/13/19
to mic...@precisdigital.com, adwor...@googlegroups.com
Hi Michele,

Thank you for trying that. The conversion actions that are imported from Google Analytics are not accessible via the API. I have raised a feature request to the team regarding this. The conversion actions that are listed here should be supported through the API. Please keep an eye on our blog for more updates.

Regards,

michele

unread,
Aug 14, 2019, 9:34:00 AM8/14/19
to AdWords API and Google Ads API Forum
Thank you, much appreciated!
Reply all
Reply to author
Forward
0 new messages