Getting a list of Client Account CID's
Hi, This is my first post here, but hopefully not my last. I'm writing a series of Classic ASP pages to create a report that mimics functionality from the v13 API which is being sunsetted shortly. Because of the Classic ASP requirement I can't use any of the Client Librarys so I'm having to do things manually I have no issue creating the report, but I am having some issues getting a list of Client Account CID's using the ServicedAccountService. (as suggested in the Java code that makes use of AdHoc reporting for multiple clients.) https://adwords.google.com/api/adwords/mcm/v201109/ServicedAccountService Posting this : Gives me this response: http://schemas.xmlsoap.org/soap/envelope/";> https://adwords.google.com/api/adwords/cm/ v201109" xmlns="https://adwords.google.com/api/adwords/mcm/v201109";> 0004b62c21ba5b000aecb0aa30d0 ServicedAccountService get 0 17 0 soap:Server LoasAuthenticationError.ADS_USER_NOT_FOUND @ Service[ServicedAccountService.get] https://adwords.google.com/api/adwords/ mcm/v201109" xmlns:ns2="https://adwords.google.com/api/adwords/cm/ v201109"> LoasAuthenticationError.ADS_USER_NOT_FOUND @ Service[ServicedAccountService.get] ApiException >From what I can see, this specific error "LoasAuthenticationError.ADS_USER_NOT_FOUND" relates to an older version of the API. Is there something obvious I'm missing here? -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Getting a list of Client Account CID's
Hi Simon, I'm not sure we document it clearly, but if look at the WSDL closely you'll notice that the RequestHeader element should always be in the /cm namespace, regardless if the service is in another namespace (such as /mcm in this case). The error is misleading in this case, but changing the namespace should allow the server to read your credentials correctly. Best, - Eric Koleda, AdWords API Team -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Getting a list of Client Account CID's
Hi Eric, Thanks for the reply. I'm still unbale to get this working correctly by changing the RequestHeader namespace. My updated is: (Most of this is taken from the Make a raw API call NoClientLibrary guide for .net (http://code.google.com/p/google-api-adwords-dotnet/ wiki/NoClientLibrary#Option_1:_Make_a_raw_API_call) so should be correct? The response is now: http://schemas.xmlsoap.org/soap/envelope/";> soap:Server Unmarshalling Error: unexpected element (uri:"https:// adwords.google.com/api/adwords/cm/v201109", local:"RequestHeader"). Expected elements are <{https://adwords.google.com/api/adwords/mcm/ v201109}ApiExceptionFault>,<{https://adwords.google.com/api/adwords/ mcm/v201109}RequestHeader>,<{https://adwords.google.com/api/adwords/ mcm/v201109}ResponseHeader>,<{https://adwords.google.com/api/adwords/ mcm/v201109}get>,<{https://adwords.google.com/api/adwords/mcm/v201109} getResponse> I'm sure there is something stupid I've missed here, but I'm not sure what that is! Thanks again. Simon -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Getting a list of Client Account CID's
Hi Simon, That was my mistake, I described the solution incorrectly. The SoapHeader element should be in the service's namespace, but it's contents should be in the cm namespace. Essentially the SOAP header should be in mcm, but the object contained within it should be in the cm namespace. Best, - Eric -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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: Getting a list of Client Account CID's
That's worked great, Thanks Eric. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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