For some reason when I download an AdWords report, such as the campaign
summary report I am missing the total row.
I looked around the internet and saw in 201409 version there is a new
parameter called skipReportSummary that can be used to hide the summary, so
I tried setting this to "false" because I want it there. But this did
nothing.
I am confused because I thought the default behavior was for the summary to
be there. The report header is there by default and for testing I have
tried setting skipReportHeader to "true". This works and removes it, while
setting it to "false" keeps it. Setting skipReportSummary to "false" does
nothing however.
Any reason why this would be?
I can calculate the totals myself, problem is I don't know how some of the
totals in AdWords are calculated. EG I need to get the total for Cost /
conv. I thought it was just total cost divided by total converted clicks
but this is not the case. The value I get is about 20% higher than AdWords,
and this is using the AdWords interface to get the totals for the division.
Same result via the API. This is when I looked into seeing if i could pull
the value that AdWords lists in the total row.
My code for a report request is below but I'm doubtful the code has a
problem since it works for the skipReportHeader and I am getting the
individual rows exactly as requested. I am using the PHP library latest
version.
$user = new AdWordsUser();
$user->SetClientCustomerId($clientCustomerId);
// Load the service, so that the required classes are available.
$user->LoadService('ReportDefinitionService', "v201409");
// Create selector.
$selector = new Selector();
$selector->fields =array("Cost", "Conversions");
$selector->dateRange = new DateRange($dateFrom, $dateTo);
// Create report definition.
$reportDefinition = new ReportDefinition();
$reportDefinition->selector = $selector;
$reportDefinition->reportName = 'Criteria performance report #'
. uniqid();
$reportDefinition->dateRangeType = "CUSTOM_DATE";
$reportDefinition->reportType = "CAMPAIGN_PERFORMANCE_REPORT";
$reportDefinition->downloadFormat = 'XML';
// Set additional options.
$options = array('version' => "v201409");
$options['skipReportHeader'] = false;
$options['skipReportSummary'] = false;
// Download report.
ReportUtils::DownloadReport($reportDefinition, $filePath,
$user, $options);
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2cd990d1-ce11-4784-874f-0caa828b516c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.