InvalidCredentials 105 on SOAP request though auth token is successfully got

Deanna Power 1 Reputation point
2021-05-18T14:22:25.93+00:00

Hi. I am setting up a BingAds app on our server. After successfully receiving the auth and refresh token as the guide says, I try to make a test request. But my request is always rejected with an 105 error (as the code below).

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
        <s:Fault>
            <faultcode>s:Server</faultcode>
            <faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information. TrackingId: 1c2ac59d-fa99-41af-9806-a6aefe0460d4.</faultstring>
            <detail>
                <AdApiFaultDetail xmlns="https://adapi.microsoft.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                    <TrackingId>1c2ac59d-fa99-41af-9806-a6aefe0460d4</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>

I have tried to make request both with Postman manually and with PHP SDK, and both get the same 105 error. I checked the developer token and tried developer token of other accounts, but no developer token did work. I also try to reget the auth token by refresh token, and tried the new auth token, but it does not work either.

Can I know what shall I do about it?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,721 Reputation points
    2021-05-31T06:44:41.51+00:00

    Hello @Deanna Power ,

    Thanks for reaching out and sorry for delayed response.

    I hope you pass the access token in the Authorization header using the Bearer scheme as shown below:

    Authorization: Bearer eyJ0eXAiOnJKV1...Xd6j

    Could you please try with different account and see if that resolve the issue? Here are some similar forum threads. Hope this helps.

    https://stackoverflow.com/a/53342862

    https://social.msdn.microsoft.com/Forums/en-US/d5dd478d-3fc2-4491-9438-bb98eb72dbde/105invalidcredentials-authentication-failed-either-supplied-credentials-are-invalid-or-the?forum=BingAds

    if non of them resolve the issue, then I would recommend you to contact Bing Ads support.

    Regards,
    Siva
    ------
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.