question

DeannaPower-8028 avatar image
0 Votes"
DeannaPower-8028 asked sikumars commented

InvalidCredentials 105 on SOAP request though auth token is successfully got

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?

azure-ad-authenticationazure-ad-app-development
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking in to see if the below answer helped. If this answers your query, please don’t forget to click "Accept the answer" and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
Thanks, Siva

0 Votes 0 ·

If this answers your query, please don’t forget to click Accept the answer and Up-Vote. Thanks

0 Votes 0 ·

1 Answer

sikumars avatar image
1 Vote"
sikumars answered

Hello @DeannaPower-8028,

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.