Dear Team,
I have created an app campaign using the API, and I have manually selected a conversion of type GOOGLE_PLAY_DOWNLOAD for it.
As shown in the attached screenshot, this conversion appears to be selected for the campaign. I would like to know how I can retrieve this information via the API — specifically, how to identify which conversion action is currently being used by a given campaign.
Could you please guide me on the correct API method or resource to query this?
Thank you for your assistance.
Hi,
Thank you for contacting the Google Ads API support team.
You can use this sample query from the campaign resource to get the conversion actions associated with the campaign.
SELECT segments.conversion_action, segments.conversion_action_name, segments.conversion_action_category, campaign.id, campaign.name FROM campaign WHERE campaign.name = 'Your campaign name'
You can substitute <your_campaign_name> with the actual campaign name for which you need to retrieve the conversion actions.
Additionally, once you get the conversion action resource name from the previous query, you can query the ConversionAction resource to get more detailed information about the conversion action, including its type.
SELECT conversion_action.id, conversion_action.name, conversion_action.type FROM conversion_action WHERE conversion_action.resource_name = '<your_conversion_action_resource_name>'
Replace this conversion_action.resource_name with the actual resource name of the conversion action obtained from the previous query.
You can try making a request using the Search or SearchStream by passing the customer Id. Also, you can use Query Builder to create your query and Query Validator to validate your query.
I hope this helps!
![]() |
Google Ads API Team |
[2025-04-17 13:35:12Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pTDA6:ref" (ADR-00300266)
Thank you for your response.
I just wanted to clarify that the campaign I'm referring to is currently in paused status and has never been published or served any impressions. I’ve also set up conversion actions separately.
As per your suggestion, I tried using segments.conversion_action, but from my understanding, segment fields like this will only return data when there is actual performance data available, such as conversions or impressions. Since the campaign hasn’t run yet, I believe this might be why the query is returning no results.
What I’m trying to achieve is to fetch the conversion actions associated or linked to the campaign, even if no conversions have occurred yet. Is there a recommended way to retrieve that information under these conditions?
Thanks again for your support.
{ "query": "SELECT campaign.selective_optimization.conversion_actions FROM campaign" }This returns the set of resource names for conversion actions for optimizing a specific campaign. I hope this helps.
![]() |
Google Ads API Team |
[2025-04-18 07:36:01Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pTDA6:ref" (ADR-00300266)