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