UploadOfflineConversions api data upload

166 views
Skip to first unread message

Balamurugan A

unread,
May 18, 2017, 1:37:02 AM5/18/17
to AdWords API Forum

Hi Adwords Team,

I'm uploading offline conversion data to Adwords account and I implemented by referring https://developers.google.com/adwords/api/docs/guides/conversion-tracking

I have following questions to be clarified.
1. What happen If I upload same gClid data twice? Assuming all conversion name, value, time etc are same.

2. Is the below mutate method call is atomic? 
eg. offlineConversionReturnValue = offlineConversionFeedService
              .mutate(conversionOperations.toArray(
                      new OfflineConversionFeedOperation[conversionOperations.size()]));
                      
 It is misleading that in google wiki pages mutate call mentioned as atomic but in java doc of OfflineConversionFeedServiceInterface.java mutate call is mentioned that "same operation can succeed and while others fail"
 
 As this helps to define my retry logic for bulk operation.
 
 3. In Adwords account is it possible to find what gclids are uploaded?
 
 Thanks,
 Bala

Ivan Bautista

unread,
May 18, 2017, 4:48:17 AM5/18/17
to AdWords API Forum
Hi Bala,

Below are my answers to each question.

1. What happen If I upload same gClid data twice? Assuming all conversion name, value, time etc are same.
As per documentation, the first upload will be recorded while the duplicates are ignored and reported as successes.
 
2. Is the below mutate method call is atomic? 
As per documentation, mutate operations such as OfflineConversionFeedOperation are atomic so by default, all uploaded conversions will fail if even a single upload fails in a single request. If you still wish to process the successful uploads while also getting the information about the failed ones, you may enable the partial failure flag. With partial failure flag enabled, the API request is still atomic and the returned value will consists information about the successful operations and the failed operations. You may pattern your retry logic with this sample code for handling partial failures.

3. In Adwords account is it possible to find what gclids are uploaded?
You may get the uploaded GCLIDs in the googleClickId field via the OfflineConversionFeedReturnValue after uploading the conversions. 

Regards,
Ivan
AdWords API Team 
Reply all
Reply to author
Forward
0 new messages