I following way to get records from ad words
startdate = 2012-11-01
endDate = 2017-06-06
while (startDate < endDate)
{
reportDate = startDate.tostring("yyyyMMdd");
string query = "SELECT " +
"CampaignName, AdGroupName, Criteria, CpcBid, Impressions, Clicks,Conversions,Cost " +
"FROM PLACEMENT_PERFORMANCE_REPORT " +
"WHERE AdNetworkType1 = 'CONTENT' " + // 'CONTENT' indicated only Display Networks
"DURING " + reportDate + ", " + reportDate ;
//perform some logic
startDate.AddDays(-1);
}
above code is now creating issue like report request exceeded
-----------------------------------------------------------------------------------------------------------------------------------------------------------
i want to do is perform above code like this
if(startDate<EndDate)
{
reportStartDate = startDate.tostring("yyyyMMdd");
reportEndDate = startDate.tostring("yyyyMMdd");
string query = "SELECT " +
"CampaignName, AdGroupName, Criteria, CpcBid, Impressions, Clicks,Conversions,Cost " +
"FROM PLACEMENT_PERFORMANCE_REPORT " +
"WHERE AdNetworkType1 = 'CONTENT' " + // 'CONTENT' indicated only Display Networks
"DURING " + reportStartDate + ", " + reportEndDate ;
//perform some logic
}
code sample 1 gives no of record 101841
code sample 2 gives no of record 11181
how can i achieve data accuracy in 2nd sample
Regards,
Jaydeep More