StatsRecord in v200909

2 views
Skip to first unread message

samar...@yahoo.com

unread,
Dec 30, 2009, 6:37:52 AM12/30/09
to AdWords API Forum
Hi All,
Please help me to know that how we can get the StatsRecord in v200909.
In v13 we have it like

CampaignInterface service = Helper.createCampaignService(
accountID, isUseEndPointForEnv() );

StatsRecord[] statsRecords = service.getCampaignStats(
campaignIDs, dateFrom, dateTo );

But in v200909 we have the return type as CampaignPage

CampaignServiceInterface campaignService =
Helper.createCampaignService(accountID, isUseEndPointForEnv());

CampaignPage campaignPage = campaignService.get(selector);

So what we need to pass in selector and how to get the StatsRecord.
it will be very helpful if the code snippet will be provided.

Thanks in advance.

AdWords API Advisor

unread,
Dec 30, 2009, 10:11:35 AM12/30/09
to AdWords API Forum
Hi,

To get the campaign stats you need to set the CampaignSelector field
statsSelector to an instance of StatsSelector:

http://code.google.com/apis/adwords/v2009/docs/reference/CampaignService.StatsSelector.html

Best,
- Eric Koleda, AdWords API Team

On Dec 30, 6:37 am, "samarsoo...@yahoo.com" <samarsoo...@yahoo.com>
wrote:

Reply all
Reply to author
Forward
0 new messages