การยืนยันแบบ 2 ขั้นตอน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การให้สิทธิ์ Google Ads รองรับการเปิดใช้การยืนยันแบบ 2 ขั้นตอนในบัญชี Google Ads ตารางต่อไปนี้
แสดงสถานการณ์ 3 แบบสำหรับการเปิดใช้การยืนยันแบบ 2 ขั้นตอน
ผู้ใช้เปิดการยืนยันแบบ 2 ขั้นตอนในบัญชี Google ของตนเอง
|
ผู้ใช้อาจเลือกเปิดการยืนยันแบบ 2 ขั้นตอนสำหรับบัญชี Google ของตนเอง
หลังจากเปิดใช้การยืนยันแบบ 2 ขั้นตอน
ในระหว่างขั้นตอนการตรวจสอบสิทธิ์ OAuth2
Google จะแจ้งให้ผู้ใช้ทำการยืนยันแบบ 2 ขั้นตอนก่อนออกโทเค็นการรีเฟรช
เมื่อออกแล้ว คุณจะใช้โทเค็นการรีเฟรชเพื่อสร้างโทเค็นเพื่อการเข้าถึงที่จำเป็น
ในการเรียก API ได้
โทเค็นการรีเฟรชก่อนหน้า
โทเค็นการรีเฟรชที่ออกก่อนที่ผู้ใช้จะเปิดใช้การยืนยันแบบ 2 ขั้นตอน
จะยังคงใช้งานได้หลังจากที่ผู้ใช้เปิดใช้การยืนยันแบบ 2 ขั้นตอน คุณใช้โทเค็นการรีเฟรชเพื่อออกโทเค็นเพื่อการเข้าถึงที่ถูกต้องได้ตามปกติ
|
ผู้ดูแลระบบกำหนดให้ผู้ใช้บัญชี Google Ads ต้องเปิดใช้การยืนยันแบบ 2 ขั้นตอนในบัญชี Google
|
ผู้ดูแลบัญชีสามารถกำหนดให้ผู้ใช้บัญชี Google Ads ทุกคน
เปิดใช้การยืนยันแบบ 2 ขั้นตอน
ในบัญชี Google ของตนได้
ผู้ใช้เปิดใช้การยืนยันแบบ 2 ขั้นตอน
ในระหว่างขั้นตอนการตรวจสอบสิทธิ์ OAuth2
Google จะแจ้งให้ผู้ใช้ทำการยืนยันแบบ 2 ขั้นตอนก่อนออกโทเค็นการรีเฟรช
เมื่อออกแล้ว คุณจะใช้โทเค็นการรีเฟรชเพื่อสร้างโทเค็นเพื่อการเข้าถึงที่จำเป็น
ในการเรียก API ได้
ผู้ใช้ไม่ได้เปิดใช้การยืนยันแบบ 2 ขั้นตอน
ในระหว่างขั้นตอนการตรวจสอบสิทธิ์ ผู้ใช้จะไม่เห็นข้อความแจ้งการยืนยันแบบ 2 ขั้นตอน
ประสบการณ์การใช้งานนี้ไม่ขึ้นอยู่กับการตั้งค่าใดๆ ในบัญชี Google Ads
เมื่อออกแล้ว คุณจะใช้โทเค็นการรีเฟรชเพื่อออกโทเค็นเพื่อการเข้าถึงได้ อย่างไรก็ตาม
การเรียก API ที่ทำโดยใช้โทเค็นเพื่อการเข้าถึงนี้จะล้มเหลวพร้อมข้อผิดพลาด
TWO_STEP_VERIFICATION_NOT_ENROLLED จนกว่าผู้ใช้จะเปิดใช้
การยืนยันแบบ 2 ขั้นตอนในบัญชี Google
โทเค็นการรีเฟรชก่อนหน้า
กฎนี้ใช้กับโทเค็นการรีเฟรชที่ออกก่อนข้อกำหนดการยืนยันแบบ 2 ขั้นตอนด้วยเช่นกัน กล่าวคือ โทเค็นการรีเฟรชสามารถใช้เพื่อสร้างโทเค็นเพื่อการเข้าถึงได้ แต่การเรียก API ที่ทำด้วยโทเค็นเพื่อการเข้าถึงเหล่านี้จะล้มเหลวพร้อมข้อผิดพลาด
TWO_STEP_VERIFICATION_NOT_ENROLLED
จนกว่าผู้ใช้จะเปิดใช้การยืนยันแบบ 2 ขั้นตอนในบัญชี Google
|
Google กำหนดให้ผู้ใช้บัญชี Google Ads ทุกคนเลือกใช้การยืนยันแบบ 2 ขั้นตอนในบัญชี Google {:#require-2-step}
|
ในบางกรณี Google อาจกำหนดให้ผู้ใช้บัญชี Google Ads ทุกคนเปิดใช้การยืนยันแบบ 2 ขั้นตอนในบัญชี Google
หลังจากเปิดใช้การยืนยันแบบ 2 ขั้นตอน
ในระหว่างขั้นตอนการตรวจสอบสิทธิ์ OAuth2
Google จะแจ้งให้ผู้ใช้ทำการยืนยันแบบ 2 ขั้นตอนก่อนออกโทเค็นการรีเฟรช
ประสบการณ์การใช้งานนี้ไม่เกี่ยวข้องกับว่า Google เลือกใช้บัญชี Google Ads เพื่อ
กำหนดให้ผู้ใช้ทุกคนเปิดใช้การยืนยันแบบ 2 ปัจจัยหรือไม่
เมื่อออกแล้ว คุณจะใช้โทเค็นการรีเฟรชเพื่อสร้างโทเค็นเพื่อการเข้าถึง
ที่จำเป็นในการเรียก API ได้ตามปกติ
โทเค็นการรีเฟรชก่อนหน้า
โทเค็นการรีเฟรชที่ออกก่อนที่ผู้ใช้จะเปิดใช้การยืนยันแบบ 2 ขั้นตอน
จะยังคงใช้งานได้หลังจากที่ผู้ใช้เปิดใช้การยืนยันแบบ 2 ขั้นตอน คุณสามารถใช้โทเค็นการรีเฟรช
เพื่อออกโทเค็นเพื่อการเข้าถึงที่ถูกต้องได้ตามปกติ
การเรียก API ที่ทำโดยใช้โทเค็นการเข้าถึงนี้จะไม่พบข้อผิดพลาด TWO_STEP_VERIFICATION_NOT_ENROLLED
เนื่องจาก Google เป็นผู้เริ่มการเลือกใช้การยืนยันแบบ 2 ขั้นตอน ไม่ใช่ผู้ดูแลบัญชี Google Ads
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-27 UTC
[null,null,["อัปเดตล่าสุด 2025-08-27 UTC"],[[["\u003cp\u003eGoogle Ads authorization supports enabling 2-Step Verification for enhanced security, impacting how refresh and access tokens function.\u003c/p\u003e\n"],["\u003cp\u003eUsers voluntarily enabling 2-Step Verification or being required to by administrators or Google will encounter a 2-Step Verification prompt during authentication.\u003c/p\u003e\n"],["\u003cp\u003eIf an administrator requires 2-Step Verification, API calls will fail with an error until it's enabled, even with existing refresh tokens.\u003c/p\u003e\n"],["\u003cp\u003eRefresh tokens issued before enabling 2-Step Verification generally remain valid but may be subject to the specific scenario and enforcement level.\u003c/p\u003e\n"],["\u003cp\u003eGoogle enforcing 2-Step Verification differs from administrator enforcement, as API calls with existing refresh tokens won't encounter the \u003ccode\u003eTWO_STEP_VERIFICATION_NOT_ENROLLED\u003c/code\u003e error.\u003c/p\u003e\n"]]],[],null,["# 2-Step Verification\n\nGoogle Ads authorization supports enabling [2-Step Verification on your Google Ads\naccount](//support.google.com/google-ads/answer/12864186). The following table\npresents the three scenarios for enabling 2-Step Verification.\n\n|-----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### User turns on 2-Step Verification on their own Google Account | *A user might decide on their own to turn on 2-Step Verification for their Google Account.* #### After 2-Step Verification is enabled During the [OAuth2 authentication flow](/google-ads/api/docs/oauth/client-library), Google prompts the user for 2-Step Verification before issuing a refresh token. Once issued, the refresh token can be used to generate the access token needed in API calls. #### Previous refresh tokens A refresh token that was issued before the user enabled 2-Step Verification remains valid after the user enables 2-Step Verification. The refresh token can be used to issue valid access tokens as usual. |\n| ### Administrator requires users of a Google Ads account to enable 2-Step Verification on their Google Account | *An account administrator can require all users of a Google Ads account to [enable 2-Step Verification](https://support.google.com/google-ads/answer/12865295) on their Google Account.* #### User enables 2-Step Verification During the [OAuth2 authentication flow](/google-ads/api/docs/oauth/client-library), Google prompts the user for 2-Step Verification before issuing a refresh token. Once issued, the refresh token can be used to generate the access token needed in API calls. #### User doesn't enable 2-Step Verification During the authentication flow, the user won't see the 2-Step Verification prompt. This experience is independent of any settings on 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 a [`TWO_STEP_VERIFICATION_NOT_ENROLLED`](/google-ads/api/reference/rpc/v21/AuthenticationErrorEnum.AuthenticationError#two_step_verification_not_enrolled) error until the user enables 2-Step Verification in their Google Account. ##### Previous refresh tokens This rule applies to refresh tokens issued prior to the 2-Step Verification requirement as well---the refresh token can be used to generate access tokens, but API calls made with these access tokens will fail with a [`TWO_STEP_VERIFICATION_NOT_ENROLLED`](/google-ads/api/reference/rpc/v21/AuthenticationErrorEnum.AuthenticationError#two_step_verification_not_enrolled) error until the user enables 2-Step Verification in their Google Account. |\n| ### Google requires all users of a Google Ads account to opt in to 2-step verification on their Google Account {:#require-2-step} | *In some cases, Google might require all users of a Google Ads account to enable 2-step verification on their Google Account.* #### After 2-Step Verification is enabled During the [OAuth2 authentication flow](/google-ads/api/docs/oauth/client-library), Google prompts the user for 2-Step Verification before issuing a refresh token. This experience is independent of whether Google opted in the Google Ads account to require all its users to enable 2-factor verification. Once issued, the refresh token can be used to generate the access token needed in API calls as usual. #### Previous refresh tokens A refresh token that was issued before the user enabled 2-Step Verification remains valid after the user enables 2-Step Verification. The refresh token can be used to issue a valid access token as usual. API calls made using this access token won't encounter the `TWO_STEP_VERIFICATION_NOT_ENROLLED` error because the 2-Step Verification opt-in was initiated by Google and not by the Google Ads account administrator. |"]]