หากต้องการพูดคุยและแสดงความคิดเห็นเกี่ยวกับผลิตภัณฑ์ของเรา โปรดเข้าร่วมช่อง Discord อย่างเป็นทางการของ Google Ads ในเซิร์ฟเวอร์ชุมชนการโฆษณาและการวัดผลของ Google
ตอนนี้เราจะอธิบายเกี่ยวกับ OAuth ด้วย Google Ads API และสาธิตวิธีทําให้กระบวนการ OAuth ทั้งหมดเสร็จสมบูรณ์และส่งคําขอ API โดยใช้โฟลว์แอปบนเดสก์ท็อปด้วย REST API ภายใน 20 วินาที เราจะแชร์สคริปต์ที่เป็นประโยชน์เพื่อสร้างโทเค็นเพื่อการเข้าถึงและดําเนินการตามคําขอสตรีม Search อย่างรวดเร็ว
[null,null,["อัปเดตล่าสุด 2025-08-26 UTC"],[[["\u003cp\u003eThe manual copy/paste method for authorization codes is deprecated and will stop working for existing clients on October 3, 2022.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should transition to using a loopback IP address for a more secure and user-friendly authorization process.\u003c/p\u003e\n"],["\u003cp\u003eThis guide provides a quick demonstration of the OAuth process using the Desktop App flow with the Google Ads API, enabling users to make API requests in under 20 seconds.\u003c/p\u003e\n"],["\u003cp\u003eThe guide includes helpful scripts for generating access tokens and executing searchStream requests.\u003c/p\u003e\n"]]],[],null,["# Desktop Flow with the REST API\n\n| **Warning:** The option to manually copy/paste authorization codes described in this guide has been deprecated. New OAuth clients can no longer use this flow.\n|\n|\n| Existing OAuth clients that already use the manual copy/paste flow described below will continue\n| to work until Oct 3, 2022. See the [Google\n| Developers blog post](//developers.googleblog.com/2022/02/making-oauth-flows-safer.html#disallowed-oob) for more details.\n|\n| Use a [loopback\n| IP address](/identity/protocols/oauth2/native-app#redirect-uri_loopback) for a more reliable, secure, and user-friendly way to obtain\n| user authorization.\n\n\u003cbr /\u003e\n\nIn this episode, we'll demystify OAuth with the Google Ads API and demonstrate how you can complete the entire OAuth process and make an API request using the Desktop App flow with the REST API in under 20 seconds. We'll also share some useful scripts to quickly generate access tokens and perform searchStream requests.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]