CampaignStats not returning network type.

26 views
Skip to first unread message

Andy

unread,
Sep 11, 2010, 5:03:37 PM9/11/10
to AdWords API Forum
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']

AdWords API Advisor

unread,
Sep 15, 2010, 3:06:17 PM9/15/10
to AdWords API Forum
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

Andy

unread,
Sep 19, 2010, 4:33:55 AM9/19/10
to AdWords API Forum
Is there an example of how to create a rport definition in Python at
all? Using the adspygoogle.adwords module? All I can find is a Java
example here: http://adwordsapi.blogspot.com/2010/07/introduction-to-reportdefinitionservice.html
and it is rather difficult to translate.

Also, if I want to run the report daily, am I required to report a new
definition daily? I notice some definitions I create are available to
use when I search for previously defined definitions. Also, if I don't
need to create new definitions, just query existing ones, how long do
the existing definitions last? Is time a factor or is it until they're
pushed off the bottom of the stack by other new definitions?

Thanks,
Andy.

On Sep 15, 8:06 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

AdWords API Advisor

unread,
Sep 21, 2010, 4:54:25 PM9/21/10
to AdWords API Forum
Hi Andy,

An example of creating a v201003 keyword report in Python is available
here:

http://code.google.com/p/google-api-adwords-python-lib/source/browse/trunk/examples/v201003/add_keywords_performance_report_definition.py

There is no need to create a new ReportDefinition every time you want
to run a report. There are dateRangeTypes like YESTERDAY and
LAST_WEEK that you can use to create reusable report definitions.

http://code.google.com/apis/adwords/docs/reference/latest/ReportDefinitionService.ReportDefinition.DateRangeType.html

The get() method will return the last 100 ReportDefinitions that were
created, but if you know the ID you can still run an older report
definition.

Best,
- Eric Koleda, AdWords API Team

On Sep 19, 4:33 am, Andy <wanabewi...@googlemail.com> wrote:
> Is there an example of how to create a rport definition in Python at
> all? Using the adspygoogle.adwords module? All I can find is a Java
> example here:http://adwordsapi.blogspot.com/2010/07/introduction-to-reportdefiniti...

Andy

unread,
Oct 21, 2010, 3:04:54 PM10/21/10
to AdWords API Forum
I was wondering after reading this:

http://code.google.com/apis/adwords/docs/appendix/reports.html

Is it no longer possible to report on impression share? We have an
internal tool which is kind of dependant on this metric.

Thanks

AdWords API Advisor

unread,
Oct 27, 2010, 3:51:41 PM10/27/10
to AdWords API Forum
Hi Andy,

Unfortunately impression share isn't available in v2010* reports yet,
but I'll talk to the core engineering team about exposing it.

Best,
- Eric

dkasak

unread,
Nov 16, 2010, 7:40:58 PM11/16/10
to AdWords API Forum
Our users are also asking for this metric. Any word on future
availability?

Dan

On Oct 28, 6:51 am, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

AdWords API Advisor

unread,
Nov 18, 2010, 8:20:56 PM11/18/10
to AdWords API Forum
Hi Dan,

Thank you for the feedback. I don't have any new information
regarding that field, but I'll let the core engineering team know that
there is additional interest in exposing it via the API.

Best,
- Eric
Reply all
Reply to author
Forward
0 new messages