Thanks so much for your reply, Jeff! We do not use the getAdStats()
call.
This is what we use:
DefinedReportJob report = new DefinedReportJob();
//KeywordReportJob report = new KeywordReportJob();
report.startDay = DateTime.Now.AddHours(-4);
report.endDay = DateTime.Now.AddHours(-4);
report.name = "CReport " +
bigholder.CurrentCrawlRecords[0].CrawlRecordID.ToString();
report.aggregationTypes = new string[] { "Daily" };
report.selectedReportType = "Keyword";
//report.includeZeroImpression = true;
//report.includeZeroImpressionSpecified = true;
report.adWordsTypeSpecified = false;
report.keywordTypeSpecified = false;
report.statusSpecified = false;
report.selectedColumns = new string[] { "Keyword",
"KeywordId", "AdGroup", "AdGroupId", "AveragePosition", "CampaignId",
"Campaign", "Clicks", "CPC", "Cost", "Impressions",
"KeywordDestUrlDisplay", "MaximumCPC", "AveragePosition" };
So the DateTime.Now part seems to work for rest of the items; ie.
clicks. we can separate out "yesterday's" and "today's" clicks. But I
am at a loss as to how/where we get the AvgPosition info from. And I
checked out the Google discrepancy for one of our major clients. The
UI for a certain group says the avg. position for 3/1 - 3/11 is 1.2.
However, I run a report and the same group says 2.3 in the report. And
our API brought in 1.71 for the same date range :)
On Mar 12, 3:07 pm, AdWords API Advisor <[email protected]>
wrote:
> Hello,
>
> First off, when you say you're getting this information in part from
> API calls, are you referring to the average position information
> returned via the getAdStats() call?
>
> http://code.google.com/apis/adwords/docs/developer/AdService.html#get...
>
> If so, there's a note in that documentation saying "Note that the
> AveragePosition field is not used." I wouldn't put faith in any value
> returned there.
>
> As for the values pulled from reports, what I can tell you is that
> the AveragePosition column is documented as being a "measure" rather
> than an "attribute", which means that its value is calculated based on
> the date range and aggregation spans you provide
> (seehttp://code.google.com/apis/adwords/docs/developer/adwords_api_report...).
> So if you have an aggregation of Daily and you take a look at the
> average position value for yesterday, it should be the average
> calculated based on all impressions that took place yesterday, and not
> include anything from today. If you have an aggregation of Summary and
> your date range includes both yesterday and today, then chances are
> that some of today's impressions will skew the average position value
> a bit. (And of course it takes time for all impressions from the
> previous day to register in the reporting backend, but running your
> reports at 7am should be enough time to cover most of them.)
>
> That's about as much as I know about how the report backend
> calculates things. The portions of the question that are more about
> reports in general and less about specific API functionality might
> find better responses in the general AdWords discussion center:
>
> http://www.google.com/support/forum/p/AdWords?hl=en
>
> Cheers,
> -Jeff Posnick, AdWords API Team
>
> On Mar 12, 2:44 pm, aknoch <[email protected]> wrote:
>
> > HI,
> > I have had numerous questions from clients regarding "where Average
> > Rank" numbers come from. There seems to be no constancy between the
> > Adwords interface, Adwords reports, and what we pull through our API
> > calls.
>
> > My question is, if we make our reporting call, what number is
> > represented for average rank? I know that we get some intraday data
> > (we make the calls around 7-8 am...), soI have poited the following
> > theory:
>
> > When we bring in the data at 7am, we know which clicks(impressions,
> > etc.) happened “yesterday” and which happened “today.” But we only
> > know the Avg. Rank as of 7 am. So Google’s interface has a time-frame
> > accurate number for Avg. Rank, but we just have a static number as of
> > 7 am (and NOT 11:59 yesterday).
>
> > So Google can an Avg. Rank of 2.0 for “yesterday” b/c it can cut off
> > that data at 11:59 pm. But we show 3.45 b/c that was the number as of
> > 7 am when we made the reporting call.
>
> > Is this a valid theory?
>
> > Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---