Closed dominikraff closed 4 years ago
Hey @dominikraff
Can you share some of your code and what you're pulling from the API, this way I can investigate the error a bit further? I know BingAds has changed their API version, maybe you're receiving the error since they did that, but I've been running reports and haven't come across that yet, so I'm curious what you're pulling.
I do run this code, i would get a FinalUrlReport:
$bingAds = LaravelAds::bingAds()->with($client_customer_id); $adgroupReport = $bingAds->reports($this->fromDate, $this->toDate)->getFinalUrlReport();
Thats the whole error: `Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Microsoft\BingAds\Auth\ServiceClient::__getLastRequest() in /root/akoro/vendor/tmarois/laravel-ads-sdk/src/Services/BingAds/Reports.php:325 Stack trace:
@dominikraff Thanks, I will look into this today and see if I can find a solution, at least I can catch those errors so it ends gracefully.
Hey @dominikraff
I released a new update 1.2.14, it cleans up the BingAds errors. I did run a test on that specific report getFinalUrlReport
and it has successfully ran on my end (returning results).
BingAds has made an update to their API a few months back, make sure you run composer update
to be sure. My fix should prevent you from getting the undefined error message, and hopefully, it tells you exactly why Bing is throwing an error.
Now i geht this error:
`ErrorException: Undefined variable: reportRequestId in /root/akoro/vendor/tmarois/laravel-ads-sdk/src/Services/BingAds/Reports.php:333 Stack trace:
Hey, @dominikraff I have released another quick patch for looking at these bing errors. Run composer again to update and you should now see an output of why the response is failing for you.
Improving the Bing error messages is on my list to do.
Thats now the output:
SoapFault exception: [s:Server] Invalid client data. Check the SOAP fault details for more information in /root/akoro/vendor/tmarois/laravel-ads-sdk/src/Services/BingAds/ReportDownload.php:161
Hello,
im always getting this Error since some time: Call to undefined method Microsoft\BingAds\Auth\ServiceClient::__getLastRequest() in /root/akoro/vendor/tmarois/laravel-ads-sdk/src/Services/BingAds/Reports.php:325
Do you have a solution for this?