Hi, You have to explicitly request stats to get stats from campaign service. The code would look something like follows:
CampaignSelector selector = new CampaignSelector(); selector.statsSelector = new StatsSelector(); selector.statsSelector.dateRange = new DateRange(); selector.statsSelector.dateRange.min = "20100101"; selector.statsSelector.dateRange.max = "20100131"; CampaignPage page = campaignService.get(selector); Cheers, Anash P. Oommen, AdWords API Advisor. On Sep 22, 1:49 am, notalian <p...@esided.com> wrote: > We are trying utilize the latest version of Adwords API. We are able > to get campain names, ID, status etc. but the following values are > being returned as null or zero: > [averageCpc] > [averageCpm] > [averagePosition] > [conversionRate] > etc. > > We are using C# client library that has been provided by > Google:http://code.google.com/p/google-api-adwords-dotnet/source/browse/#svn... > > If there any additional resources, please let us where they are on the > web or provide some guidance. > Thanks > > Here is a partial snippet of the code, in case that's helpful: > > AdWordsUser user = new AdWordsUser(); > CampaignService campaignService = > > (CampaignService)user.GetService(AdWordsService.v200909.CampaignService); > > try { > // Get all campaigns. > CampaignPage page = campaignService.get(new CampaignSelector()); > > // Display campaigns. > if (page != null && page.entries != null) { > if (page.entries.Length > 0) { > foreach (Campaign campaign in page.entries) { > Response.Write("<br>Campaign with id = '" + campaign.id + "', > name = '" + campaign.name + "' and status = '" + campaign.status + > "'"); > > > > } -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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