Upgrading to v201206

Showing 1-7 of 7 messages
Upgrading to v201206 Simon Day 7/13/12 5:16 AM

We have developed a number of custom VB functions to enable reporting on and managing Adwords accounts. I'm trying to upgrade from v201109 to v201206 but seem to be having issues straight away!

The first thing I need to do is list the client accounts under a given MCC account. I can see the service I need to use has changed from ServicedAccountService to ManagedCustomerService, so having updated to this and swapped the 'Selector' to 'serviceSelector', and specified valid fields but am getting the error "[SelectorError.MISSING_FIELDS @ serviceSelector]" when posting to the production environment, and "InternalApiError.UNEXPECTED_INTERNAL_API_ERROR" when posting to the sandbox.

My XML looks like this:
<?xml version='1.0' encoding='utf-8'?>
<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'
    <get xmlns='https://adwords.google.com/api/adwords/mcm/v201206'>

Can anyone point me in the right direction?

Re: Upgrading to v201206 Kevin Winter 7/24/12 12:28 PM
Hi Simon,
  The ManagedCustomerService uses a Generic Selector (unlike the ServicedAccountService, which used it's own).  This selector is shared from the CM namespace: https://developers.google.com/adwords/api/docs/reference/latest/ManagedCustomerService.Selector

You will need an xmlns='https://adwords.google.com/api/adwords/cm/v201206' on the serviceSelector element (I believe) - just like how you specify the cm namespace for the RequestHeader elements.

Might I recommend the VB.net client library that handles this for you?

- Kevin Winter
AdWords API Team
Re: Upgrading to v201206 David Lin 10/25/12 6:06 AM
Hi Kevin,

We tried to upgrade to v201209 and we have the same problem. I have tried to add xmlns='https://adwords.google.com/api/adwords/cm/v201209' on the serviceSelector element. but we still receive the same error message. Could you please more specify exactly how the XML will look like?

Many thanks.

Re: Upgrading to v201206 David Lin 10/25/12 6:09 AM
Hi Simon,

we have the problem when upgrade to v201209, we also use vb, did you fix this problem? if so, could you pleaase share your answer on how to fix this problem?

Many thanks.

Re: Upgrading to v201206 Kevin Winter 10/25/12 8:08 AM
Hi David,
  Here's an example of an MCS.get call from the Java Library:

        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/mcm/v201209" soapenv:mustUnderstand="0">
            <ns2:authToken xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201209">...</ns2:authToken>
            <ns3:developerToken xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201209">...</ns3:developerToken>
            <ns4:userAgent xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201209">FooBar (AwApi-Java, AdWords-Axis/internal, Common-Java/1.10.1, Axis/1.4, Java/1.7.0-google-v5, internal)</ns4:userAgent>
            <ns5:validateOnly xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201209">false</ns5:validateOnly>
            <ns6:partialFailure xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201209">false</ns6:partialFailure>
                <ns7:fields xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201209">Login</ns7:fields>
                <ns8:fields xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201209">CustomerId</ns8:fields>
                <ns9:fields xmlns:ns9="https://adwords.google.com/api/adwords/cm/v201209">Name</ns9:fields>

We strongly recommend that you use one of our client libraries as they handle these namespace issues for you.  Our DotNet client library supports VB DotNet.

- Kevin Winter
AdWords API Team

David Lin 10/28/12 4:14 AM <This message has been deleted.>
Re: Upgrading to v201206 Kevin Winter (AdWords API Team) 1/23/13 6:28 AM
Hi Bernardo,
  Could you post a sanitized (blank out developer and auth tokens) sample request?  Are you authenticating with an MCC account?  Are you targeting an MCC account or a client account (or no target, which effectively uses the account you authenticate with).

- Kevin Winter
AdWords API Team

On Friday, January 4, 2013 7:55:33 AM UTC-5, Bernardo Alves wrote:
Hi Kevin,

I tried this example to request information from ManagedCustomerService but I keep getting "internal server error". Any ideas of what might be going wrong?