Generating a Report on Conversion Actions

98 views
Skip to first unread message

Marc Card

unread,
Jun 23, 2023, 1:59:11 PM6/23/23
to Google Ads API and AdWords API Forum
Hello, 

We're currently attempting to use the updated v14 of Google Ads API to pull all conversion actions associated with accounts in our MCC to assist in identifying accounts that meeting the following conditions. 
  • UA Imported as primary, without GA4 imported.
  • Double counting conversions in the same category (UA & GA4 set to primary).
  • UA Goal set to primary with GA4 Goal set to Secondary
Key Issue
When using the GAQL Query below conversion actions that are currently set to secondary are being excluded from the the response. 

SELECT 
  customer.id
  conversion_action.id
  conversion_action.name
  conversion_action.type, 
  conversion_action.status, 
  conversion_action.category, 
  conversion_action.include_in_conversions_metric, 
  metrics.all_conversions, 
  metrics.all_conversions_value, 
  conversion_action.primary_for_goal 
FROM conversion_action 
WHERE 
  segments.date DURING LAST_30_DAYS

This query is only returning `primary_for_goal` with the value of 'True'. We can provide specific examples and CIDs if there is a private way to share this information. 

Appreciate the help
Marc

Google Ads API Forum Advisor

unread,
Jun 26, 2023, 7:19:42 AM6/26/23
to adwor...@googlegroups.com

Hello Marc,

Greetings from the Google Ads API Team.

With regards to your concern, can you please provide us with the complete request and response logs with request ID generated on your end and an uncropped screenshot of the Google ads UI that shows the data you are trying to obtain so our team can provide precise recommendations?

You can provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com

This message is in relation to case "ref:_00D1U1174p._5004Q2mWyBH:ref"

Thanks,
 
Google Logo Google Ads API Team


Marc Card

unread,
Jun 28, 2023, 11:10:37 AM6/28/23
to Google Ads API and AdWords API Forum
Thank you for the follow-up! 

I've actually resolved the issue, but for posterity I've added noted below. To obtain Secondary Conversion Actions (conversion_action.primary_for_goal = False),  `conversion_action.include_in_conversions_metric` must be omitted from the query.  

Only Contains Primary Conversion Actions* (conversion_action.primary_for_goal = True)
* This query will only include primary conversion actions where "Included in account-level goals" within the Ads UI is set to True

SELECT
 
  customer.id
  conversion_action.id
  conversion_action.name
  conversion_action.type, 
  conversion_action.status, 
  conversion_action.category, 
  conversion_action.include_in_conversions_metric, 
  metrics.all_conversions, 
  metrics.all_conversions_value, 
  conversion_action.primary_for_goal 
FROM conversion_action 
WHERE 
  segments.date DURING LAST_30_DAYS

Contains Secondary Conversions Actions (conversion_action.primary_for_goal = False)

SELECT
 
  customer.id
  conversion_action.id
  conversion_action.name
  conversion_action.type, 
  conversion_action.status, 
  conversion_action.category, 
  metrics.all_conversions, 
  metrics.all_conversions_value, 
  conversion_action.primary_for_goal 
FROM conversion_action 
WHERE 
  segments.date DURING LAST_30_DAYS

Google Ads API Forum Advisor

unread,
Jun 29, 2023, 9:24:27 AM6/29/23
to adwor...@googlegroups.com
Hello,

I'm glad that you were able to resolved the issue and thank you for sharing it to the community. If you have any other concerns related to Google Ads API, please do let us know. We'll be happy to assist you.
Reply all
Reply to author
Forward
0 new messages