Why is ConversionTrackerService not returning all conversion?

97 views
Skip to first unread message

Stijn van Lieshout

unread,
Sep 10, 2018, 1:26:19 AM9/10/18
to AdWords API and Google Ads API Forum
I'm trying to use the ConversionTrackerService to retrieve all conversions tracked in an account. The problem is that - seemingly quite randomly - it seems to return only part of the conversions (6 out of 10). Has anyone here had similar experiences? Or might this be a bug I should report?

Here is the definition I use to retrieve the conversions

from googleads import adwords

PAGE_SIZE
= 100

def get_conversions(client):
   
# Use ConversionTrackerService
    conversion_tracker_service
= client.GetService('ConversionTrackerService', version='v201806')

   
# Construct selector and get all accounts.
    offset
= 0;
    selector
= {
       
'fields': [
           
'Name',
           
'Status',
           
'Category',
           
'CountingType',
           
'DefaultRevenueValue'
       
],
       
'paging': {
           
'startIndex': str(offset),
           
'numberResults': str(PAGE_SIZE)
       
}
   
}

    result
= []
    more_pages
= True
   
while more_pages:
        page
= conversion_tracker_service.get(selector)
       
if 'entries' in page:
           
for conversion in page['entries']:
                result
.append({
                   
"name": conversion['name'],
                   
"status": conversion['status'],
                   
"category": conversion['category'],
                   
"countingType": conversion['countingType'],
                   
"defaultRevenueValue": conversion['defaultRevenueValue'],        
               
})
       
else:
           
print 'No conversions were found.'

    offset
+= PAGE_SIZE
    selector
['paging']['startIndex'] = str(offset)
    more_pages
= offset < int(page['totalNumEntries'])

   
return result


Dannison Yao (AdWords API Team)

unread,
Sep 10, 2018, 5:07:04 AM9/10/18
to AdWords API and Google Ads API Forum
Hi,

So I can better investigate the issue you are encountering when retrieving your ConversionTrackers, could you provide to me your clientCustomerId and the complete SOAP request and response that was generated when you made the service call? You may send these to me via Reply privately to author.

Regards,
Dannison
AdWords API Team

Stijn van Lieshout

unread,
Sep 11, 2018, 4:59:46 AM9/11/18
to AdWords API and Google Ads API Forum
Hi Dannison, 

I figured out what the issue is: Those 4 conversions that are not being returned were imported into Adwords from Google Analytics which the API apparently does not support. 

I found this thread that confirms that currently, the API does not return Google Analytics imported conversions. In this thread, your colleagues said they would be looking into this shortcoming. Any updates on this? Workarounds? For the application that I'm building it is critical that I'm able to receive all conversions tracked. 

Thanks, 
Stijn
Reply all
Reply to author
Forward
0 new messages