Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Generic error:`[ServerError.SERVER_ERROR @ ]`

46 views
Skip to first unread message

Raul Ferreira da Rocha

unread,
Feb 20, 2025, 7:33:09 PMFeb 20
to Google Ad Manager API Forum
Good afternoon, this is my code to get data from the admanager API. I want to fetch two data columns exactly Revenue and eCPM. from Ad exchange. I have been receiving this generic error from the server, [ServerError.SERVER_ERROR @ ], although I have already verified that I am receiving data from the API, but I cannot access these columns and I receive this generic error. So, I have some questions: Is it necessary to do any configuration in the admanager panel, before calling the API? I don't know if I have the correct column names. What is needed to recover this data? Could you help me?
Should the data in the attached file be returned by the API?
Follow my log:DEBUG - 2025-02-20 13:12:07 --> 88[GoogleAdManagerService] ReportJob (ANTES runReportJob)=Google\AdsApi\AdManager\v202411\ReportJob Object
(
    [id:protected] =>
    [reportQuery:protected] => Google\AdsApi\AdManager\v202411\ReportQuery Object
        (
            [dimensions:protected] => Array
                (
                    [0] => DATE
                    [1] => AD_UNIT_ID
                    [2] => AD_UNIT_NAME
                )

            [adUnitView:protected] =>
            [columns:protected] => Array
                (
                    [0] => AD_EXCHANGE_TOTAL_REQUEST_CTR
                    [1] => AD_EXCHANGE_TOTAL_REQUEST_ECPM
                )

            [dimensionAttributes:protected] =>
            [customFieldIds:protected] =>
            [cmsMetadataKeyIds:protected] =>
            [customDimensionKeyIds:protected] =>
            [startDate:protected] => DateTime Object
                (
                    [date] => 2025-01-21 00:00:00.000000
                    [timezone_type] => 3
                    [timezone] => America/Sao_Paulo
                )

            [endDate:protected] => DateTime Object
                (
                    [date] => 2025-02-20 00:00:00.000000
                    [timezone_type] => 3
                    [timezone] => America/Sao_Paulo
                )

            [dateRangeType:protected] => CUSTOM_DATE
            [statement:protected] =>
            [reportCurrency:protected] =>
            [timeZoneType:protected] =>
        )

)

ERROR - 2025-02-20 13:12:08 --> [GoogleAdManagerService] Erro ao gerar relatório: LINE=148 FILE=/home/u419194274/domains/vipcellcelulares.com/public_html/dash/app/Services/GoogleAdManagerService.php MSG=[ServerError.SERVER_ERROR @ ]
ERROR - 2025-02-20 13:12:08 --> [ADMANAGER] Erro: Erro ao gerar relatório (Line=149, File=/home/u419194274/domains/vipcellcelulares.com/public_html/dash/app/Services/GoogleAdManagerService.php): [ServerError.SERVER_ERROR @ ], thank you
Screenshot 2025-02-20 at 13-07-36 Google Ad Manager Página inicial.png

Ad Manager API Forum Advisor

unread,
Feb 21, 2025, 12:19:57 AMFeb 21
to raul.ferre...@gmail.com, google-doubleclick...@googlegroups.com

Hi,

Thank you for contacting the Ad Manager API support team.

On assessing your query, I understand you encountered a ServerError.SERVER_ERROR when using the Google Ad Manager API. It  indicates that an unexpected error occurs. Hence, I would recommend you wait for sometime and try again for the same request. 

To get the “Ad Exchange Revenue” you can use AD_EXCHANGE_LINE_ITEM_LEVEL_REVENUE  metric. I would suggest you check  Column[] to get more information about metric.

If you are still facing issues, please provide the UserService.getCurrentUser (or email if unable) and complete SOAP response logs (SOAP logging must be enabled).

You can send the details via Reply privately to the author option, or direct private reply to this email.

Thanks,
 
Google Logo Ad Manager API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-02-21 05:19:42Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH2ze:ref" (ADR-00289094)


 


Reply all
Reply to author
Forward
0 new messages