All Google logins fail now on TWO_STEP_VERIFICATION_NOT_ENROLLED

223 views
Skip to first unread message

Ales Sturala

unread,
Sep 7, 2022, 5:13:10 AM9/7/22
to Google Ads API and AdWords API Forum
Hello,

Is there an issue with the Google Ads API at the moment. We can see that all our customers' Google logins (>600) fail on:

TWO_STEP_VERIFICATION_NOT_ENROLLED
An account administrator changed this account's authentication settings. To access this Google Ads account, enable 2-Step Verification in your Google account at https://www.google.com/landing/2step (edited) 

This wasn't the case yesterday.


Best,
 Ales
Message has been deleted

Google Ads API Forum Advisor

unread,
Sep 7, 2022, 9:22:49 AM9/7/22
to al...@trueclicks.com, adwor...@googlegroups.com

Hi Ales,

Thanks for reaching out to the Google Ads API Forum.

I had removed your second post as I can see that sensitive complete logs posted on the forum thread. You may avoid posting on forums but you may send to our team using reply privately to author option. For your reference, you may refer below redacted post:

“I just noticed that this problem is only related to our production clientId. Other applications work fine.

---------------BEGIN API CALL---------------

Request

-------

Method Name: /google.ads.googleads.v10.services.GoogleAdsService/Search

 

{ "customerId": "8849681417", "query": "SELECT\r\n                                    customer_client.client_customer,\r\n                                    customer_client.level,\r\n                                    customer_client.manager,\r\n                                    customer_client.descriptive_name,\r\n                                    customer_client.currency_code,\r\n                                    customer_client.time_zone,\r\n                                    customer_client.id\r\n                                FROM customer_client\r\n                                WHERE\r\n                                    customer_client.level = 1" }

 

Response

--------

 

Fault: {

  "StatusCode": 16,

  "Details": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",

  "RequestId": "zFBevSFWmBN5c6GMEyWDzw",

  "Failure": {

    "errors": [

      {

        "errorCode": {

          "authenticationError": "TWO_STEP_VERIFICATION_NOT_ENROLLED"

        },

        "message": "An account administrator changed this account's authentication settings. To access this Google Ads account, enable 2-Step Verification in your Google account at https://www.google.com/landing/2step."

      }

    ],

    "requestId": "zFBevSFWmBN5c6GMEyWDzw"

  }

}

----------------END API CALL----------------

​​”

Moving forward, kindly note that the account administrators can require all users of a Google Ads account to enable 2-Step Verification in order to access the Google Ads account. This appears to be happening in your case as mentioned in this document.

If the user enabled 2-step verification, then during the OAuth2 authentication flow, Google prompts the user for 2-step verification before issuing a refresh token. If they didn't enable 2-step verification, then they won't see the 2-step verification prompt. This experience is independent of the setting that the administrator enabled for the Google Ads account.

Once issued, the refresh token can be used to issue access tokens. However, the API calls made using this access token will fail with an AuthenticationError.TWO_STEP_VERIFICATION_NOT_ENROLLED in the Google Ads API until the user enables 2-step verification in their Google account.

Also, an existing refresh token that was issued before the user enabled 2-step verification remains unaffected after the user enables 2-step verification. It can be used to issue access tokens as usual. However, the API calls made using this access token will continue to fail with an AuthorizationError.TWO_STEP_VERIFICATION_NOT_ENROLLED error in the AdWords API and AuthenticationError.TWO_STEP_VERIFICATION_NOT_ENROLLED in the Google Ads API until the user enables 2-step verification in their Google account.

Let us know if you have any questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dwCXT:ref

Ales Sturala

unread,
Sep 7, 2022, 9:51:52 AM9/7/22
to Google Ads API and AdWords API Forum
Hi Yasar,

It happened at the same time across all our clients' 600 different Google logins. We "probably" found the reason for the issue - after switching from .NET 5 to .NET 6 it worked again. I am suspecting that it is actually a Google Ads .NET library issue.



Best,
 Ales

Google Ads API Forum Advisor

unread,
Sep 7, 2022, 11:53:31 AM9/7/22
to al...@trueclicks.com, adwor...@googlegroups.com
Hi Ales,

Thank you for sending updates, it appears that you already found an answer to your issue. If you have any additional questions feel free to send those over to our team and we would be happy to assist you further.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dwCXT:ref
Reply all
Reply to author
Forward
0 new messages