Thank a lot for answer. I have already found the solution. Here is the
source:
function DownloadAdPerformanceReport(AdWordsUser $user, $filePath,
$reportFormat) {
// Prepare a date range for the last week. Instead you can use
'LAST_7_DAYS'.
$dateRange = sprintf('%d,%d',
date('Ymd', strtotime('-1 hour')), date('Ymd', strtotime('now')));
// Create report query.
$reportQuery = 'SELECT Id, Clicks, Impressions FROM AD_PERFORMANCE_REPORT
'
. 'WHERE Status IN [ENABLED, PAUSED] DURING ' . $dateRange;
// Set additional options.
$options = array('version' => ADWORDS_VERSION);
// Download report.
$result=ReportUtils::DownloadReportWithAwql($reportQuery, $filePath,
$user,
$reportFormat, $options);
return $result;
}
On Monday, May 11, 2015 at 12:53:41 PM UTC+4, [email protected] wrote:
>
> Hi. Can you tell me how to get the number of clicks on the specified ad,
> by using it's id. And how to get the number of clicks realized during the
> last hour?
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/770f5aca-bd8b-40b9-a259-a11020b7b5e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.