Hi Andy, Unfortunately this isn't possible using the statsSelector. The ReportDefinitionService has the fields AdNetwork1 (Ad Distribution) and AdNetwork2 (Network) that you can use to segment the data in reports.
Best, - Eric Koleda, AdWords API Team On Sep 11, 5:03 pm, Andy <a...@epiphanysolutions.co.uk> wrote: > Hi, > > I'm using a simple query to find out the stats across my campaigns and > it is working well. The code below gives me a dictionary of all the > stats I need _except_ the network type. I need to be able to > differentiate between the content network and the search network but > regardless of how I have the campaigns set up in the MCC, the network > type is coming out as ALL. > > Any advice on how to differentiate between the networks would be very > much appreciated. > > The code I have is: > > import os > import sys > > from adspygoogle.adwords.AdWordsClient import AdWordsClient > > sys.path.append(os.path.join('.')) > > client = AdWordsClient(path=os.path.join('.')) > > client.SetClientEmail('em...@address.com') > > selector = { > 'statsSelector': { > 'dateRange': { > 'max':"20100101", > 'min':"20100101" > } > } > > } > > cs = client.GetCampaignService('https://adwords.google.com', > 'v201003') > > campaigns = cs.Get(selector)[0] > > for entry in campaigns['entries']: > print entry['campaignStats'] -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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