I don't know even where to start. The documentation have no head no feet. There is no proper example. Everywhere there is same copy and paste of samples. I just want to retrieve otal clicks, total impressions, total cost for a customer for all campaings but I can't find any option. you have to include 100 classes in order to retrieve one thing. Now I tried:
$reportQuery = 'SELECT CampaignId, AdGroupId, Id, Criteria, CriteriaType, ' . 'Impressions, Clicks, Cost FROM CRITERIA_PERFORMANCE_REPORT ' . 'WHERE Status IN [ENABLED, PAUSED] DURING LAST_7_DAYS'; $reportDownloader = new \Google\AdsApi\AdWords\Reporting\v201710\ReportDownloader($session); $reportSettingsOverride = (new \Google\AdsApi\AdWords\ReportSettingsBuilder()) ->includeZeroImpressions(false) ->build(); $reportDownloadResult = $reportDownloader->downloadReportWithAwql( $reportQuery, \Google\AdsApi\AdWords\Reporting\v201710\DownloadFormat::XML, $reportSettingsOverride); print_r($reportDownloadResult);And I have follwing setting added for $session $soapSettings = (new \Google\AdsApi\Common\SoapSettingsBuilder())
->disableSslVerify() ->build();
And getting following error:
Error creating resource: [message] fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [file]