Thank you Wilrik for the quick response.

If I have following report fields for adgroup report, I get some data
back (empty rows per adgroupid specified for the whole date range). I
am using last thirty days for the date range.

public string[] adGroupReportFields = new string[] { "CampaignId",
"CampaignName", "CampaignStatus", "Id", "Status", "AdGroupName",
"Impressions", "Clicks", "Ctr", "CostPerConversion",
"AveragePosition" };

Changing this to include both the fields you mentioned earlier doesn't
yield any results returned at all.  It just returns the columns but no
rows.

either this:
public string[] adGroupReportFields = new string[] { "CampaignId",
"CampaignName", "CampaignStatus", "Id", "Status", "AdGroupName",
"Impressions", "Clicks", "Ctr", "CostPerConversion",
"AveragePosition", "Date", "DayOfWeek" };

or this:
public string[] adGroupReportFields = new string[] { "CampaignId",
"CampaignName", "CampaignStatus", "Id", "Status", "AdGroupName",
"Impressions", "Clicks", "Ctr", "CostPerConversion",
"AveragePosition", "DayOfWeek" };

or this:
public string[] adGroupReportFields = new string[] { "CampaignId",
"CampaignName", "CampaignStatus", "Id", "Status", "AdGroupName",
"Impressions", "Clicks", "Ctr", "CostPerConversion",
"AveragePosition", "DayOfWeek" };

Does not return any rows with stats.  Please shed some light.  If it
helps, here is my code:

public List<ReportDefinition> GenerateReport(string minDate, string
maxDate, string[] fields, string reportName, string folderPath,
ReportDefinitionReportType reportType, XmlDocument reportXml,
List<Predicate> predicates)
        {
            Selector selector = GetReportSelector(minDate, maxDate,
fields, predicates.ToArray());
            ReportDefinition reportDefinition =
GetReportDefinition(selector, reportName, reportType, true,
ReportDefinitionDateRangeType.CUSTOM_DATE, DownloadFormat.XML);
            ReportDefinitionOperation reportOperation =
GetOperation(reportDefinition, Operator.ADD);

            List<ReportDefinitionOperation> defList = new
List<ReportDefinitionOperation>();
            defList.Add(reportOperation);

            List<ReportDefinition> mutatedDefinitions =
Mutate(defList);

            if (mutatedDefinitions.Count >= 1)
            {
                ReportUtilities utility = new ReportUtilities(user);
                string reportFile = folderPath + reportName + ".xml";
 
utility.DownloadReportDefinition(mutatedDefinitions[0].id,
reportFile);
                reportXml.Load(reportFile);
            }
            return mutatedDefinitions;
        }

On Oct 28, 11:17 am, Wilrik Mook <wil...@gmail.com> wrote:
> Sorry if I wasn't clear enough, I meant to say: if you include those
> fields (though only Date should do the trick), it will show statistics
> for each day separately.
> The same kind of thing happened to me when including the
> AdNetworkType1 field in a report: a row was given for each separate
> value of that field. Since the Date field will 'give' you multiple
> dates in that period, a row for each date will be added. This is what
> I observed, but I could be wrong.
> I hope this clarifies things a bit!
>
> Regards,
>
> Wilrik
> 050media
>
> On Oct 28, 5:03 pm, SW <ga...@structuredweb.com> wrote:
>
>
>
>
>
>
>
> > If I omit the Date or DayOfWeek, will it get me statistics for days
> > separately?
>
> > On Oct 28, 10:58 am, Wilrik Mook <wil...@gmail.com> wrote:
>
> > > Hi SW,
>
> > > When you include the Date or DayOfWeek field in the selector, I think
> > > this automatically happens.
>
> > > Regards,
>
> > > Wilrik
> > > 050media
>
> > > On Oct 28, 4:35 pm, SW <ga...@structuredweb.com> wrote:
>
> > > > Hi,
>
> > > > We are using ReportDefinitionService of v201008 version. The version
> > > > v200909 allowed us to get the report data to include the daily
> > > > aggregation.  If we specify two date range, the report would include
> > > > statistics data separately for single day within the date range.
>
> > > > However, new service aggregates all the days within the date range.
> > > > It doesn't break down the statistics data for each separate day.  I
> > > > was wondering how can we do that using new v201008 report definition
> > > > service.
>
> > > > Thanks

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to