Ask a questionAsk a question
 

AnswerWhat's wrong with this SOAP header?

  • Thursday, July 30, 2009 12:43 AMdkasak Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Greetings. I'm trying to update our application to support the v6 API, but I'm getting authentication errors ( when using credentials that work fine with v5.1 API ).

    Our SOAP header looks like this ( with credentials and stuff removed ):

    <SOAP-ENV:Header>
        <DeveloperToken xmlns="https://adcenter.microsoft.com/api/advertiser/v6">xxxxx</DeveloperToken>
        <CustomerAccountID xmlns="https://adcenter.microsoft.com/api/advertiser/v6">666</CustomerAccountID>
        <CustomerID xmlns="https://adcenter.microsoft.com/api/advertiser/v6">666</CustomerID>
        <ApplicationToken xmlns="https://adcenter.microsoft.com/api/advertiser/v6" xsi:nil="true"/>
        <Password xmlns="https://adcenter.microsoft.com/api/advertiser/v6">xxxxx</Password>
        <UserName xmlns="https://adcenter.microsoft.com/api/advertiser/v6">xxxxx</UserName>
    </SOAP-ENV:Header>
    
    
    
    We're getting the error:
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:l
    ang="en-US">The creator of this fault did not specify a Reason.</faultstring><detail><AdApiFaultDetail xmlns="https://adapi.micros
    oft.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><TrackingId>6e939b54-1f28-4917-a2a7-6e0513735284</TrackingId><Errors>
    <AdApiError><Code>105</Code><Detail i:nil="true"/><ErrorCode>InvalidCredentials</ErrorCode><Message>Authentication failed. Either 
    supplied credentials are invalid or the account is inactive</Message></AdApiError></Errors></AdApiFaultDetail></detail></s:Fault><
    /s:Body></s:Envelope>
    
    Any ideas?

Answers

All Replies