Bing Ads API Authentication code 105 when credentials are correct

Data Management 1 Reputation point
2022-06-16T02:07:00.447+00:00

We use the Python SDK for the Bing Ads API to pull data from our managed accounts daily. However, on June 10th, we began to receive a 105 error code from the SOAP response even though our credentials have not changed. We have double and triple checked our credentials and even updated our refresh token, to no avail. Has there been a change in how the authentication works within the Python SDK or the Bing Ads API? Attached is the error message from the xml.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,247 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Shweta Mathur 30,276 Reputation points Microsoft Employee
    2022-06-16T06:56:42.763+00:00

    Hi @Data Management ,

    Thanks for reaching out.

    I understand your application was working fine earlier and suddenly starts giving error 105.

    This error usually indicates usage of an incorrect access token (AuthenticationToken header element) or developer token for the target environment. For example, your credentials may be valid in production; however, when targeting sandbox you would observe code 105. Are you running in different environment now?

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

    Hope this will help.

    Thanks,
    Shweta

    ------------------------------------

    Please remember to "Accept Answer" if answer helped you.


  2. Artyom Kitnar 1 Reputation point
    2022-06-17T09:05:27.24+00:00

    Hello,

    Since yesterday we have same issue. Our app was working fine, no changes made, but we started to get this error.

    How is possible to check if our developer token is still active?

    Thanks in advance!
    Have a nice day!

    0 comments No comments

  3. Artyom Kitnar 1 Reputation point
    2022-06-17T09:56:18.533+00:00

    Hello again,

    We have fixed this issue. For someone who still struggle, problem is in OAuth scope. Based on this doc: https://learn.microsoft.com/en-us/advertising/guides/authentication-oauth?view=bingads-13

    Starting from June 1, 2022 Bing API gradually migrating to a new scope msads.manage. After regenerating refresh token using this scope and using it later to get auth token from refresh, everything start to work properly.

    @Data Management

    Hope it helps!
    Have a great day!

    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.