Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Request for API to Retrieve Selected Conversion in App Campaign

33 views
Skip to first unread message

Amit Tomar

unread,
Apr 17, 2025, 3:51:08 AMApr 17
to Google Ads API and AdWords API Forum

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.

Screenshot from 2025-04-17 13-12-20.png

Google Ads API Forum Advisor

unread,
Apr 17, 2025, 9:35:57 AMApr 17
to amittomar...@gmail.com, adwor...@googlegroups.com

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!


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-17 13:35:12Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pTDA6:ref" (ADR-00300266)



Amit Tomar

unread,
Apr 18, 2025, 1:41:55 AMApr 18
to Google Ads API and AdWords API Forum
Hi,

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.

Google Ads API Forum Advisor

unread,
Apr 18, 2025, 3:36:39 AMApr 18
to amittomar...@gmail.com, adwor...@googlegroups.com
Hi,

You can try the below query using the campaign resource.
{
  "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.
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-04-18 07:36:01Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01pTDA6:ref" (ADR-00300266)



Reply all
Reply to author
Forward
0 new messages