API Error: Temporary problem with the server. Please retry the request after a few moments

202 views
Skip to first unread message

r...@whitesharkmedia.com

unread,
Mar 19, 2018, 5:15:12 AM3/19/18
to AdWords API Forum
Hello

Since three days we are experimented the following error when consume the API AdWords 201802 to download some reports:

Google\AdsApi\AdWords\v201802\cm\ApiException Object
    [parameterMap:Google\AdsApi\AdWords\v201802\cm\ApplicationException:private] => Array
        (
            [ApplicationException.Type] => ApplicationExceptionType
        )

    [message:protected] => Temporary problem with the server. Please retry the request after a few moments
    [file:protected] => /var/www/html/app/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201802/ReportDownloader.php
    [line:protected] => 204

The XML is:

<?xml version="1.0"?>
<reportDefinition><selector><fields>ExternalCustomerId</fields><fields>AccountDescriptiveName</fields><fields>AccountCurrencyCode</fields><fields>Date</fields><fields>Cost</fields><dateRange><min>20180101</min><max>20180315</max></dateRange></selector><reportName>ACCOUNT_PERFORMANCE_REPORT-XXXXXXXXXX</reportName><reportType>ACCOUNT_PERFORMANCE_REPORT</reportType><dateRangeType>CUSTOM_DATE</dateRangeType><downloadFormat>CSV</downloadFormat></reportDefinition>


As mentioned in the error, we ran the process again and data was downloaded successfully, but we use these data to make some metrics, and we need to know if the problem will persist. We are working in the necessary changes to avoid troubles in our users workflow, but we want to know if there is any trouble that we must know concerning to the API server platform.

Best regards 

Milind Sankeshware (AdWords API Team)

unread,
Mar 19, 2018, 12:00:47 PM3/19/18
to AdWords API Forum
Hi Roberto,

We are not aware of any error with server at the moment. This could be a temporary problem with the server and in most cases a retry of the request should work. If you are still facing an issues, please share the complete error log along with the timestamp so that I can take a look. You may reply to me using the Reply privately to author option.

Thanks,
Milind, AdWords API Team.

Message has been deleted

r...@whitesharkmedia.com

unread,
Mar 27, 2018, 10:01:06 AM3/27/18
to AdWords API Forum
ello Milind

Today we had the same error many times, see the details about the error below:
UTC -6
2018-03-27 03:53:01
2018-03-27 03:53:02
2018-03-27 03:53:37
2018-03-27 03:53:59
2018-03-27 03:55:43
2018-03-27 07:42:14

Google\AdsApi\AdWords\v201802\cm\ApiException Object
(
    [errors:protected] =>
    [message1:protected] =>
    [ApplicationExceptionType:protected] =>
    [parameterMap:Google\AdsApi\AdWords\v201802\cm\ApplicationException:private] => Array
        (
            [ApplicationException.Type] => ApplicationExceptionType
        )
        )

    [message:protected] => Temporary problem with the server. Please retry the request after a few moments
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => /var/www/html/app/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201802/ReportDownload$
    [line:protected] => 204
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/html/app/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/Reporting/v201802/ReportDo$
                    [line] => 122
                    [function] => makeReportRequest
                    [class] => Google\AdsApi\AdWords\Reporting\v201802\ReportDownloader
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                        (
                            [0] => Array
                                (
                                    [stream_context] => Array
                                        (
                                            [http] => Array
                                                (
                                                    [timeout] => 120
                                                )

                                        )

                                    [headers] => Array
                                        (
                                            [Authorization] => BearerXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                                            [developerToken] => XXXXXXXXXXXXXXXXXXXX
                                            [clientCustomerId] => XXXXXXXXXXXXXXX
                                            [User-Agent] => White Shark Media (AwApi-PHP, googleads-php-lib/33.1.0, PHP/7.1.15, GuzzleH$
                                            [skipReportHeader] => true
                                            [User-Agent] => White Shark Media (AwApi-PHP, googleads-php-lib/33.1.0, PHP/7.1.15, GuzzleH$
                                            [skipReportHeader] => true
                                            [skipColumnHeader] => true
                                            [skipReportSummary] => true
                                            [useRawEnumValues] => false
                                            [includeZeroImpressions] => true
                                        )

                                    [form_params] => Array
                                        (
                                            [__rdxml] => <?xml version="1.0"?>
<reportDefinition><selector><fields>ExternalCustomerId</fields><fields>AccountDescriptiveName</fields><fields>AccountCurrencyCode</fiel$

                                        )

                                    [stream] => 1
                                )

                        )

                        )

                )

Thank you in advance for your help

Best regards

Milind Sankeshware (AdWords API Team)

unread,
Mar 27, 2018, 2:46:22 PM3/27/18
to AdWords API Forum
Hi,

Thanks for sharing the logs. Could you please share the client customer id for which you are facing an error? You may reply to me using the Reply privately to author option.

Milind Sankeshware (AdWords API Team)

unread,
Mar 28, 2018, 11:07:50 AM3/28/18
to adwor...@googlegroups.com
Hi,

Thanks for sharing the CIDs. I ran the ACCOUNT_PERFORMANCE_REPORT with same report definition as mentioned in your previous comment for given CID and I am able to download the report successfully. The problem resulting in server error could be a temporary issue. Could you please retry to same reports and share the result?
Reply all
Reply to author
Forward
0 new messages