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]
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f870b947-2adc-492f-b317-98fb53007c55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.