Tip: Spaces around credentials cause adCenter API errors


I’m continuing with our posts on some of the tips shared by our support engineers. These are overlooked steps or easy-to-correct errors that sometimes prompt support questions. As always, if you have followup questions, let us know and I’ll research it with the engineering team and report back.

Be sure to remove the spaces around the credentials in the API calls. Sometimes a space goes unnoticed and this can be a cause for the error: Authentication failed. Either supplied credentials are invalid or the account is inactive.

Sometimes you may see some calls succeed and others fail with the exact same credentials. If you’ve inadvertently left a space around the credentials in one call but not the other, this can be the cause.

For example, check for spaces around the credentials you use in place of the 111…s below:

<?xml version=”1.0″ encoding=”UTF-8″?><soapenv:Envelope xmlns:soapenv=“http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>
<soapenv:Header>
    <ns1:ApplicationToken soapenv:actor=“http://schemas.xmlsoap.org/soap/actor/next” soapenv:mustUnderstand=”0″ xmlns:ns1=“https://adcenter.microsoft.com/v6”>
11111111
    </ns1:ApplicationToken>
    <ns2:CustomerAccountId soapenv:actor=“http://schemas.xmlsoap.org/soap/actor/next” soapenv:mustUnderstand=”0″ xmlns:ns2=“https://adcenter.microsoft.com/v6”>
111
    </ns2:CustomerAccountId>
    <ns3:CustomerId soapenv:actor=“http://schemas.xmlsoap.org/soap/actor/next” soapenv:mustUnderstand=”0″ xmlns:ns3=“https://adcenter.microsoft.com/v6”>

1111
    </ns3:CustomerId>
    <ns4:DeveloperToken soapenv:actor=“http://schemas.xmlsoap.org/soap/actor/next” soapenv:mustUnderstand=”0″ xmlns:ns4=“https://adcenter.microsoft.com/v6”>
11111111
    </ns4:DeveloperToken>
    <ns5:Password soapenv:actor=“http://schemas.xmlsoap.org/soap/actor/next” soapenv:mustUnderstand=”0″ xmlns:ns5=“https://adcenter.microsoft.com/v6”>
11111111
    </ns5:Password>
    <ns6:UserName soapenv:actor=“http://schemas.xmlsoap.org/soap/actor/next” soapenv:mustUnderstand=”0″ xmlns:ns6=“https://adcenter.microsoft.com/v6”>
111_11111
    </ns6:UserName>

 

-Chris

Comments (0)

Skip to main content