Error creating offline conversions

58 views
Skip to first unread message

bradfor...@dialogtech.com

unread,
Apr 18, 2018, 6:35:29 AM4/18/18
to AdWords API Forum
I am getting the following RequestError.UNKNOWN when trying to create Offline conversions. I can share SOAP logs via private message. 

2018-04-17T16:46:25-04:00 ERR (3) | f:%file% l:%line% | Error response Errors from Adwords Offline Conversion endpoint:
Array
(
    [0] => Google\AdsApi\AdWords\v201710\cm\RequestError Object
        (
            [reason:protected] => UNKNOWN
            [fieldPath:protected] => operations[0]
            [fieldPathElements:protected] => Array
                (
                    [0] => Google\AdsApi\AdWords\v201710\cm\FieldPathElement Object
                        (
                            [field:protected] => operations
                            [index:protected] => 0
                        )
                )
            [trigger:protected] =>
            [errorString:protected] => RequestError.UNKNOWN
            [ApiErrorType:protected] => RequestError
            [parameterMap:Google\AdsApi\AdWords\v201710\cm\ApiError:private] => Array
                (
                    [ApiError.Type] => ApiErrorType
                )
        )
)

Bharani Cherukuri (AdWords API Team)

unread,
Apr 18, 2018, 1:05:52 PM4/18/18
to AdWords API Forum
Hello, 

Could you share the complete SOAP request and response logs along with the client customer Id, so I can take a look? You can use Reply privately to author to share the details privately.

Thanks,
Bharani, AdWords API Team

Bharani Cherukuri (AdWords API Team)

unread,
Apr 19, 2018, 3:32:09 PM4/19/18
to AdWords API Forum
Hello, 

Thank you for sharing the logs. It looks like the UploadOperation is performed on a Conversion Tracker which does not exist. If you're looking to create a new conversion tracker and perform the upload operation, you will need to create an AdWordsConversionTracker object and then upload conversions for offline conversion imports. Please find the attached SOAP logs as a reference. You can also take a look at the code sample in Java. Code samples in other languages can be found here

Let me know if you have any other questions.

Regards,
Bharani, AdWords API Team

bradfor...@dialogtech.com

unread,
Apr 23, 2018, 3:32:34 PM4/23/18
to AdWords API and Google Ads API Forum
Is there a way to determine which ConversionTracker an UploadConversion is being assigned to if it is not explicitly created during the UploadConversion creation? Can I check if a ConversionTracker exists before attempting to create an UploadConversion? 

The below creation process works for some accounts and not other (presumably due to the ConversionTrackers). I would like to better understand when I need to create this piece and how it is associated with the UploadConversion

        $conversionTrackerService = $this->awServices->get($this->awSession, ConversionTrackerService::class);

        $uploadConversion = new UploadConversion();
        $uploadConversion->setName($data['conversion_name']);
        $uploadConversion->setStatus('ENABLED');
        $uploadConversion->setCategory($data['category']);
        $uploadConversion->setViewthroughLookbackWindow($data['viewthrough_lookback_window']);
        $uploadConversion->setCtcLookbackWindow($data['ctc_lookback_window']);
        $uploadConversion->setCountingType($data['counting_type']);
        $uploadConversion->setDefaultRevenueValue($data['default_revenue_value']);
        $uploadConversion->setDefaultRevenueCurrencyCode($data['default_revenue_currency']);

bradfor...@dialogtech.com

unread,
Apr 23, 2018, 5:33:33 PM4/23/18
to AdWords API and Google Ads API Forum
I think there was some miscommunication about what I am trying to do. I want to create a ConversionTracker of the type UploadConversion (which is what I provided logs for), not to upload individual conversions to the OfflineConversionFeedService. In the code samples, there is an adWordsConversionTracker that is created before the UploadTracker, is this just an example of two types of ConversionTrackers being created or is there some type of dependency between these operations. 


On Thursday, April 19, 2018 at 2:32:09 PM UTC-5, Bharani Cherukuri (AdWords API Team) wrote:

Bharani Cherukuri (AdWords API Team)

unread,
Apr 24, 2018, 12:35:12 PM4/24/18
to AdWords API and Google Ads API Forum
Hello, 

Thank you for providing the additional details. You're right, the code samples illustrates example for adding two trackers. I understand that you're trying to create a Conversion Tracker of the type UploadConversion. If that's the case, you can create a new conversion tracker or use the existing tracker to upload the conversions. I was not able to location the conversion tracker with the name: 'testssssssssss' in this account. If this is a new tracker, you will need to create this and then upload any click conversions. You may refer to this guide and create a new tracker of the type: Upload Conversion.

Can you give this a try and share the SOAP logs if you run into any issues? You can share the logs via Reply privately to author option.
Reply all
Reply to author
Forward
0 new messages