Re: V2010 API SOPA/XML Examples?
The problem was that I wasn't including the "service" argument in the ClientLogin request. It needed to be set to "adwords". Thanks for all the help Reed. Mike On Jun 9, 11:05 am, Mike Keen wrote: > Hey Reed, > > I took the emails and the password out, and no luck. Same > GOOGLE_ACCOUNT_COOKIE_INVALID error. I do check for the captcha token > response and haven't gotten one yet. I know it's got to be some small > detail that is causing this, but I can't seem to pinpoint it. > > I'll keep digging and report back here if I figure out the issue. > > Mike > > On Jun 9, 10:58 am, Reed wrote: > > > > > Mike: Too much stuff in your header! Take out the emails and > > passwords, in V2009+ you use just the auth token for authentication: > > > > > > xyzzy > > plough > v20:developerToken> > > V2009 Getall Campaigns > v20:userAgent> > > > > > > > Just send the client email/password to the auth service to get the > > token, and then use that in the RequestHeader, and you should be good > > to go. If you're making lots of API calls for the same client > > account, then you'll want to do something like have a daily task that > > gets the current auth token and stores it for you to use in the API > > calls, otherwise the auth service will start sending back a captcha > > challange instead of the token if you call it too often. > > > Good luck, > > -reed -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Hey Reed, I took the emails and the password out, and no luck. Same GOOGLE_ACCOUNT_COOKIE_INVALID error. I do check for the captcha token response and haven't gotten one yet. I know it's got to be some small detail that is causing this, but I can't seem to pinpoint it. I'll keep digging and report back here if I figure out the issue. Mike On Jun 9, 10:58 am, Reed wrote: > Mike: Too much stuff in your header! Take out the emails and > passwords, in V2009+ you use just the auth token for authentication: > > > xyzzy > plough v20:developerToken> > V2009 Getall Campaigns v20:userAgent> > > > > Just send the client email/password to the auth service to get the > token, and then use that in the RequestHeader, and you should be good > to go. If you're making lots of API calls for the same client > account, then you'll want to do something like have a daily task that > gets the current auth token and stores it for you to use in the API > calls, otherwise the auth service will start sending back a captcha > challange instead of the token if you call it too often. > > Good luck, > -reed -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Mike: Too much stuff in your header! Take out the emails and passwords, in V2009+ you use just the auth token for authentication: xyzzy plough V2009 Getall Campaigns Just send the client email/password to the auth service to get the token, and then use that in the RequestHeader, and you should be good to go. If you're making lots of API calls for the same client account, then you'll want to do something like have a daily task that gets the current auth token and stores it for you to use in the API calls, otherwise the auth service will start sending back a captcha challange instead of the token if you call it too often. Good luck, -reed -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Maybe I am doing something really stupid, but I am getting a GOOGLE_ACCOUNT_COOKIE_INVALID error with the following request: http://schemas.xmlsoap.org/soap/ envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/ v201003"> my email my password my developer token my user agent client email (from MCC) and my auth token I have triple checked my routine that gets the authToken from ClientLogin, and am sure that I am grabbing that correctly. Another nudge in the right direction would be greatly appreciated :) Mike On Jun 9, 8:54 am, Reed wrote: > http://schemas.xmlsoap.org/soap/ > envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/ > v201003"> > > Also need to be sure to use this for the posting of the SOAP > request:https://adwords.google.com/api/adwords/cm/v201003/CampaignService -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
http://schemas.xmlsoap.org/soap/ envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/ v201003"> Also need to be sure to use this for the posting of the SOAP request: https://adwords.google.com/api/adwords/cm/v201003/CampaignService -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Hi All, As per your earlier question, all previous v200909 services are also available in v201003, in addition to the new services. Best, - Eric On Jun 8, 3:53 pm, AdWords API Advisor wrote: > Hi Yuuki, > > The XML samples have been deprecated and are no longer being > maintained. A good way of learning about the XML format is to use > soapUI or a similar program to load the WSDLs and send requests: > > http://soapui.org/ > > Best, > - Eric Koleda, AdWords API Team > > On Jun 3, 8:05 am, YuukiHayashi wrote: > > > > > I am very excited by v201003 beta with new ReportDefinitionService. > > But it looks like no XML examples of using ReportDefinitionService are > > in XML examples at following > > project.http://code.google.com/p/adwords-api-xml-samples/ > > > I am wondering if and when XML examples of using new > > ReportDefinitionService would be added in adwords-api-xml-samples. > > Otherwise there are any other way for getting sample XML of using > > ReportDefinitionService? > > Thanks, > > Yuuki -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Hi Yuuki, The XML samples have been deprecated and are no longer being maintained. A good way of learning about the XML format is to use soapUI or a similar program to load the WSDLs and send requests: http://soapui.org/ Best, - Eric Koleda, AdWords API Team On Jun 3, 8:05 am, YuukiHayashi wrote: > I am very excited by v201003 beta with new ReportDefinitionService. > But it looks like no XML examples of using ReportDefinitionService are > in XML examples at following > project.http://code.google.com/p/adwords-api-xml-samples/ > > I am wondering if and when XML examples of using new > ReportDefinitionService would be added in adwords-api-xml-samples. > Otherwise there are any other way for getting sample XML of using > ReportDefinitionService? > Thanks, > Yuuki -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Thanks Reed. You've been really helpful, and I appreciate it. One thing to clarify, do I change the ns reference to v2010? Mike On Jun 8, 1:52 pm, Reed wrote: > FYI, the XML that I showed works fine under V201003 - just change the > ns reference [and get the auth token :)] -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
FYI, the XML that I showed works fine under V201003 - just change the ns reference [and get the auth token :)] -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Reed, I think my problem with using your code was that I assumed I didn't need an auth token. That was my fault. I need to implement grabbing those first. Mike On Jun 8, 11:40 am, Reed wrote: > Correct, you must use auth tokens, not email/passwords. > > re V2010, I see that that are a couple of small changes to the > CampaignService in V2010 over V2009, but they don't look like they > would affect pulling the list of campaigns. I'll try upgrading my > script to V2010 and see if anything breaks. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
On Tuesday 08 June 2010, Mike Keen elucidated thus: > @Joshua > > It's similar if you use the Ruby client library, which I am very > against. I dislike the bulk of the library and I'd rather just make > the request with simple SOAP templates. I feel your pain. :) I took one look at the Python client and ran away...quickly. I created my own light-weight wrapper around the GA services uses Suds (https://fedorahosted.org/suds/) and it has proven to be very friendly to use. If you can find a good Ruby SOAP library, it might be worth creating your own wrapper...I just can't imagine dealing directly with XML. :) j -- Joshua Kugler Part-Time System Admin/Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Correct, you must use auth tokens, not email/passwords. re V2010, I see that that are a couple of small changes to the CampaignService in V2010 over V2009, but they don't look like they would affect pulling the list of campaigns. I'll try upgrading my script to V2010 and see if anything breaks. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
If Eric could confirm that would be great, but that would make sense. Also, I just noticed through some error messages that authToken seems to be required now. Is it no longer possible to query data under an MCC account using clientEmail alone? Mike On Jun 8, 11:28 am, Reed wrote: > Mike - Only the newly announced services (ReportingService mostly) are > V2010. The previously released, such as CampaignService, are V2009. > Maybe Eric can confirm this. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Mike - Only the newly announced services (ReportingService mostly) are V2010. The previously released, such as CampaignService, are V2009. Maybe Eric can confirm this. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
@Reed I appreciate the example, but it doesn't seem to translate well to v201003. @Joshua It's similar if you use the Ruby client library, which I am very against. I dislike the bulk of the library and I'd rather just make the request with simple SOAP templates. @Google, I'd really appreciate a solid SOAP request example for requesting all campaigns for a client in the new v201003 API. Best, Mike On Jun 7, 8:43 pm, "Joshua J. Kugler" wrote: > On Monday 07 June 2010, Reed elucidated thus: > > > > > > > Hope this helps, > > -reed > > > http://schemas.xmlsoap.org/soap/ > > envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/ > > v200909"> > > > > > > xyzzy > > plough > > V2009 Getall Campaigns > v20:userAgent> > > > > > > > > > > > > > > > > > > > > > > > > I use this in my Python code: > > resp = ga.Campaign.get(' ') > > And the empty string is translated into an empty selector. Of course, > that's my API implemented on top of Suds, that's not google's API. I > would assume passing an empty selector to the Ruby get() call would > return all your results. > > j > > -- > Joshua Kugler > Part-Time System Admin/Programmerhttp://www.eeinternet.com > PGP Key:http://pgp.mit.edu/ID 0x73B13B6A -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
On Monday 07 June 2010, Reed elucidated thus: > Hope this helps, > -reed > >xmlns:soapenv="http://schemas.xmlsoap.org/soap/ > envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/ > v200909"> > > >xyzzy >plough >V2009 Getall Campaigns v20:userAgent> > > > > > > > > > > > I use this in my Python code: resp = ga.Campaign.get(' ') And the empty string is translated into an empty selector. Of course, that's my API implemented on top of Suds, that's not google's API. I would assume passing an empty selector to the Ruby get() call would return all your results. j -- Joshua Kugler Part-Time System Admin/Programmer http://www.eeinternet.com PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
Hope this helps, -reed http://schemas.xmlsoap.org/soap/ envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/ v200909"> xyzzy plough V2009 Getall Campaigns -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: V2010 API SOPA/XML Examples?
I'd like to second this request. I haven't been able to figure out how to get a simple list of campaigns using CampaignService on 201003. I know Google is trying to encourage people to use the libraries instead of raw SOAP, but the Ruby library they have made available is way bulky for my taste. Can we get an answer on this? Mike On Jun 3, 8:05 am, YuukiHayashi wrote: > I am very excited by v201003 beta with new ReportDefinitionService. > But it looks like no XML examples of using ReportDefinitionService are > in XML examples at following > project.http://code.google.com/p/adwords-api-xml-samples/ > > I am wondering if and when XML examples of using new > ReportDefinitionService would be added in adwords-api-xml-samples. > Otherwise there are any other way for getting sample XML of using > ReportDefinitionService? > Thanks, > Yuuki -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
V2010 API SOPA/XML Examples?
I am very excited by v201003 beta with new ReportDefinitionService. But it looks like no XML examples of using ReportDefinitionService are in XML examples at following project. http://code.google.com/p/adwords-api-xml-samples/ I am wondering if and when XML examples of using new ReportDefinitionService would be added in adwords-api-xml-samples. Otherwise there are any other way for getting sample XML of using ReportDefinitionService? Thanks, Yuuki -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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