Re: AdWords API Getting Campaign statistics with the 200909 API

2010-03-19 Thread AdWords API Advisor
Hi Joshua,

The behavior you are noticing is as it was designed.  Selectors in
v2009 filter the result set, and passing in an invalid id will not
return an error.

Best,
- Eric

On Mar 18, 1:49 pm, "Joshua J. Kugler"  wrote:
> On Thursday 18 March 2010, AdWords API Advisor elucidated thus:
>
> > Hi Joshua,
>
> > It seems you've found answers to many of your questions.  Which ones
> > are outstanding?
>
> Thanks for replying.  The one outstanding is the response I'm getting
> when I don't have access to the queried campaign.  With the v13 API, if
> I queried a campaign I didn't have access to (maybe because I didn't
> supply the correct account e-mail), I got:
>
> 'This campaign is accessible to the user, but does not belong to the
> current customer.  If you wish to access this campaign, you must set
> the clientEmail header to an appropriate login.'
>
> With 200909, I simply get:
>
> (CampaignPage){
>    totalNumEntries = 0
>    Page.Type = "CampaignPage"
>    totalBudget =
>       (Budget){
>          period = "DAILY"
>           amount =
>              (Money){
>                 ComparableValue.Type = "Money"
>                 microAmount = 0
>             }
>          deliveryMethod = "STANDARD"
>       }
>
> }
>
> with no indication if it is a valid campaign ID, or whether or not I
> have access to the ID I queried.  The distinction between "not
> existing" and "insufficient permissions" seems to have been removed
> with no way (I can see) to tell the difference.
>
> Thanks!
>
> j
>
>
>
>
>
>
>
> > Best,
> > - Eric Koleda, AdWords API Team
>
> > On Mar 17, 10:13 pm, "Joshua J. Kugler"  wrote:
> > > On Wednesday 17 March 2010, Joshua J. Kugler elucidated thus:
> > > > All I get from the campaign_service.Get(selector) call (this is
> > > > using suds in Python):
>
> > > > (CampaignPage){
> > > > totalNumEntries = 0
> > > > Page.Type = "CampaignPage"
> > > > totalBudget =
> > > > (Budget){
> > > > period = "DAILY"
> > > > amount =
> > > > (Money){
> > > > ComparableValue.Type = "Money"
> > > > microAmount = 0
> > > > }
> > > > deliveryMethod = "STANDARD"
> > > > }
> > > > }
>
> > > OK, I from a v13 API call that I don't have any campaigns available
> > > to me...so, that answers part of my question, BUT when I specify an
> > > id in getCampaign (v13) it tells me I can't access that campaign.
> > > When I do that for v200909, it just returns zero records and
> > > doesn't tell me why. Not very friendly. :)
>
> > > > I see that the CampaignService has an object named "Stats" which
> > > > has all the aforementioned fields, but there is no indication on
> > > > how to retrieve that object for a campaign. How do I do a call
> > > > that will retrieve a Stats object, and thus the information I
> > > > need?
>
> > > OK, so I understand now that if results are returned, they'll
> > > include a "Stats" object...got it.
>
> > > > In fact, in the wsdl file, on line 3352 (CampaignService.wsdl for
> > > > 200909), the operation is defined as:
>
> > > > 
>
> > > > (lower case 'G'). Same for 'mutate.' It would seem the
> > > > documentation is incorrect in this case.
>
> > > Sigh...I could have sworn the docs were saying "Get," but I guess
> > > not. They are saying GetSomething for the old calls when the
> > > correct call is getSomething, though. :)
>
> > > So, a couple of questions answered, one still outstanding. :)
>
> > > j
>
> > > --
> > > Joshua Kugler
> > > Part-Time System Admin/Programmerhttp://www.eeinternet.com
> > > PGP Key:http://pgp.mit.edu/ID0x73B13B6A
>
> --
> Joshua Kugler
> Part-Time System Admin/Programmerhttp://www.eeinternet.com
> PGP Key:http://pgp.mit.edu/ID 0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


Re: AdWords API Getting Campaign statistics with the 200909 API

2010-03-18 Thread Joshua J. Kugler
On Thursday 18 March 2010, AdWords API Advisor elucidated thus:
> Hi Joshua,
>
> It seems you've found answers to many of your questions.  Which ones
> are outstanding?

Thanks for replying.  The one outstanding is the response I'm getting 
when I don't have access to the queried campaign.  With the v13 API, if 
I queried a campaign I didn't have access to (maybe because I didn't 
supply the correct account e-mail), I got:

'This campaign is accessible to the user, but does not belong to the
current customer.  If you wish to access this campaign, you must set
the clientEmail header to an appropriate login.'

With 200909, I simply get:

(CampaignPage){
   totalNumEntries = 0
   Page.Type = "CampaignPage"
   totalBudget =
  (Budget){
 period = "DAILY"
  amount =
 (Money){
ComparableValue.Type = "Money"
microAmount = 0
}
 deliveryMethod = "STANDARD"
  }
}

with no indication if it is a valid campaign ID, or whether or not I 
have access to the ID I queried.  The distinction between "not 
existing" and "insufficient permissions" seems to have been removed 
with no way (I can see) to tell the difference.

Thanks!

j

>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Mar 17, 10:13 pm, "Joshua J. Kugler"  wrote:
> > On Wednesday 17 March 2010, Joshua J. Kugler elucidated thus:
> > > All I get from the campaign_service.Get(selector) call (this is
> > > using suds in Python):
> > >
> > > (CampaignPage){
> > >    totalNumEntries = 0
> > >    Page.Type = "CampaignPage"
> > >    totalBudget =
> > >       (Budget){
> > >          period = "DAILY"
> > >          amount =
> > >             (Money){
> > >                ComparableValue.Type = "Money"
> > >                microAmount = 0
> > >             }
> > >          deliveryMethod = "STANDARD"
> > >       }
> > >  }
> >
> > OK, I from a v13 API call that I don't have any campaigns available
> > to me...so, that answers part of my question, BUT when I specify an
> > id in getCampaign (v13) it tells me I can't access that campaign.
> >  When I do that for v200909, it just returns zero records and
> > doesn't tell me why. Not very friendly. :)
> >
> > > I see that the CampaignService has an object named "Stats" which
> > > has all the aforementioned fields, but there is no indication on
> > > how to retrieve that object for a campaign.  How do I do a call
> > > that will retrieve a Stats object, and thus the information I
> > > need?
> >
> > OK, so I understand now that if results are returned, they'll
> > include a "Stats" object...got it.
> >
> > > In fact, in the wsdl file, on line 3352 (CampaignService.wsdl for
> > > 200909), the operation is defined as:
> > >
> > > 
> > >
> > > (lower case 'G'). Same for 'mutate.'  It would seem the
> > > documentation is incorrect in this case.
> >
> > Sigh...I could have sworn the docs were saying "Get," but I guess
> > not.   They are saying GetSomething for the old calls when the
> > correct call is getSomething, though. :)
> >
> > So, a couple of questions answered, one still outstanding. :)
> >
> > j
> >
> > --
> > Joshua Kugler
> > Part-Time System Admin/Programmerhttp://www.eeinternet.com
> > PGP Key:http://pgp.mit.edu/ID 0x73B13B6A



-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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


Re: AdWords API Getting Campaign statistics with the 200909 API

2010-03-18 Thread AdWords API Advisor
Hi Joshua,

It seems you've found answers to many of your questions.  Which ones
are outstanding?

Best,
- Eric Koleda, AdWords API Team

On Mar 17, 10:13 pm, "Joshua J. Kugler"  wrote:
> On Wednesday 17 March 2010, Joshua J. Kugler elucidated thus:
>
>
>
>
>
> > All I get from the campaign_service.Get(selector) call (this is using
> > suds in Python):
>
> > (CampaignPage){
> >    totalNumEntries = 0
> >    Page.Type = "CampaignPage"
> >    totalBudget =
> >       (Budget){
> >          period = "DAILY"
> >          amount =
> >             (Money){
> >                ComparableValue.Type = "Money"
> >                microAmount = 0
> >             }
> >          deliveryMethod = "STANDARD"
> >       }
> >  }
>
> OK, I from a v13 API call that I don't have any campaigns available to
> me...so, that answers part of my question, BUT when I specify an id in
> getCampaign (v13) it tells me I can't access that campaign.  When I do
> that for v200909, it just returns zero records and doesn't tell me why.  
> Not very friendly. :)
>
> > I see that the CampaignService has an object named "Stats" which has
> > all the aforementioned fields, but there is no indication on how to
> > retrieve that object for a campaign.  How do I do a call that will
> > retrieve a Stats object, and thus the information I need?
>
> OK, so I understand now that if results are returned, they'll include
> a "Stats" object...got it.
>
> > In fact, in the wsdl file, on line 3352 (CampaignService.wsdl for
> > 200909), the operation is defined as:
>
> > 
>
> > (lower case 'G'). Same for 'mutate.'  It would seem the documentation
> > is incorrect in this case.
>
> Sigh...I could have sworn the docs were saying "Get," but I guess not.  
> They are saying GetSomething for the old calls when the correct call is
> getSomething, though. :)
>
> So, a couple of questions answered, one still outstanding. :)
>
> j
>
> --
> Joshua Kugler
> Part-Time System Admin/Programmerhttp://www.eeinternet.com
> PGP Key:http://pgp.mit.edu/ID 0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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


Re: AdWords API Getting Campaign statistics with the 200909 API

2010-03-17 Thread Joshua J. Kugler
On Wednesday 17 March 2010, Joshua J. Kugler elucidated thus:
> All I get from the campaign_service.Get(selector) call (this is using
> suds in Python):
>
> (CampaignPage){
>totalNumEntries = 0
>Page.Type = "CampaignPage"
>totalBudget =
>   (Budget){
>  period = "DAILY"
>  amount =
> (Money){
>ComparableValue.Type = "Money"
>microAmount = 0
> }
>  deliveryMethod = "STANDARD"
>   }
>  }

OK, I from a v13 API call that I don't have any campaigns available to 
me...so, that answers part of my question, BUT when I specify an id in 
getCampaign (v13) it tells me I can't access that campaign.  When I do 
that for v200909, it just returns zero records and doesn't tell me why.  
Not very friendly. :)

> I see that the CampaignService has an object named "Stats" which has
> all the aforementioned fields, but there is no indication on how to
> retrieve that object for a campaign.  How do I do a call that will
> retrieve a Stats object, and thus the information I need?

OK, so I understand now that if results are returned, they'll include 
a "Stats" object...got it.

> In fact, in the wsdl file, on line 3352 (CampaignService.wsdl for
> 200909), the operation is defined as:
>
> 
>
> (lower case 'G'). Same for 'mutate.'  It would seem the documentation
> is incorrect in this case.

Sigh...I could have sworn the docs were saying "Get," but I guess not.  
They are saying GetSomething for the old calls when the correct call is 
getSomething, though. :)

So, a couple of questions answered, one still outstanding. :)

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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


AdWords API Getting Campaign statistics with the 200909 API

2010-03-17 Thread Joshua J. Kugler
So, the migration guide for the 200909 API says to replace this call:

campaign_service.GetCampaignStats(campaign_id, '2009-01-01', '2009-01-31')

use this:

selector = {
'ids': [campaign_id],
'statsSelector': {
'dateRange': {
 'max': '20090131',
 'min': '20090101'
 }
}
}
campaign_service.Get(selector)

GetCampaignStats used to return a StatsRecord with these fields:

averagePosition, clicks, conversionRate, conversions, cost, id, and 
impressions

All I get from the campaign_service.Get(selector) call (this is using 
suds in Python):

selector = ga.factory.create('CampaignSelector')
selector.ids.append(campagain[])
selector.statsSelector.dateRange.min = '20100301'
selector.statsSelector.dateRange.max = '20100331'

print ga.service.get(selector)

is:

(CampaignPage){
   totalNumEntries = 0
   Page.Type = "CampaignPage"
   totalBudget = 
  (Budget){
 period = "DAILY"
 amount = 
(Money){
   ComparableValue.Type = "Money"
   microAmount = 0
}
 deliveryMethod = "STANDARD"
  }
 }

I see that the CampaignService has an object named "Stats" which has all 
the aforementioned fields, but there is no indication on how to 
retrieve that object for a campaign.  How do I do a call that will 
retrieve a Stats object, and thus the information I need?

The documentation is very unclear here.

By the way, if I try to use ga.service.Get(...), suds reports:

Method not found: 'CampaignService.CampaignServiceInterfacePort.Get'

In fact, in the wsdl file, on line 3352 (CampaignService.wsdl for 
200909), the operation is defined as:



(lower case 'G'). Same for 'mutate.'  It would seem the documentation is 
incorrect in this case.

Thanks!

j


-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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