Hello,

I am trying to store 1 years worth of data into my database. Now I have a 
test account and no actual data, so I can't really test this well.

I want to retrieve the last years data even if there is no actual changes 
in data.

    $reportQuery = 'SELECT Date, CampaignId, CampaignName, Impressions, 
Clicks, Cost, Conversions, CostPerConversion FROM 
CAMPAIGN_PERFORMANCE_REPORT DURING 20160101, 20160707';


    $reportUtils = new ReportUtils();
    $data = $reportUtils->DownloadReportWithAwql($reportQuery, null, $user, 
"CSV");

I get the following as a result

CAMPAIGN_PERFORMANCE_REPORT (Jan 1, 2016-Jul 7, 2016)
Day,Campaign ID,Campaign,Impressions,Clicks,Cost,Conversions,Cost / conv.
Total, --, --,0,0,0,0.0,0


As you can see no data, I wanted this to be filled with --, --,0,0,0,0.0,0 for 
each day.



Any idea on how to achieve this?


Also setting these header values don't seem to work as I am getting it in the 
response anyway.


 $user = new AdWordsUser();
 $user->SetClientCustomerId("token");
 $user->SetDeveloperToken($devToken);
 $user->setUserAgent($userAgent);
 $user->SetHeaderValue("includeZeroImpressions", true);
 $user->SetHeaderValue("skipColumnHeader", true);
 $user->SetHeaderValue("skipReportHeader", true);
 $user->SetHeaderValue("skipReportSummary", true);



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/18cebef9-0efa-4845-a4f7-aa6268379acc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to