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']