OAuth2 ใน Google Ads API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ondemand_video
วิดีโอ: ดูการพูดคุยเกี่ยวกับ OAuth2 จากเวิร์กช็อปปี 2019
การเรียก Google Ads API ทั้งหมดต้องได้รับอนุญาตผ่าน OAuth2
OAuth2 ช่วยให้แอปไคลเอ็นต์ Google Ads API เข้าถึงบัญชี Google Ads ของผู้ใช้ได้โดยไม่ต้องจัดการหรือจัดเก็บข้อมูลการเข้าสู่ระบบของผู้ใช้
ต้องทําตามขั้นตอนต่อไปนี้เพื่อให้สิทธิ์คําขอไปยัง Google Ads API
กําหนดค่าโปรเจ็กต์ที่อยู่ในระบบคลาวด์สําหรับ Google Ads API
กําหนดค่าไลบรารีของไคลเอ็นต์สําหรับ OAuth ใน Google Ads API
นอกจากนี้ยังมีเนื้อหาสนับสนุนสําหรับหัวข้อที่เกี่ยวข้องอีกด้วย
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-27 UTC
[null,null,["อัปเดตล่าสุด 2025-08-27 UTC"],[[["\u003cp\u003eAll Google Ads API calls require authorization through OAuth2, safeguarding user login information.\u003c/p\u003e\n"],["\u003cp\u003eAuthorizing requests involves configuring a Cloud project and a client library for OAuth in the Google Ads API.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize service accounts, delve into OAuth2 internals, and employ the OAuth Playground for advanced functionalities.\u003c/p\u003e\n"]]],[],null,["# OAuth2 in the Google Ads API\n\nondemand_video\n[Video: Check out the OAuth2 talk from the 2019 workshop](https://www.youtube.com/watch?v=2GWx6jI7Ib4&list=None&start=124)\n\nAll Google Ads API calls must be authorized through [OAuth2](http://oauth.net/2/).\nOAuth2 enables your Google Ads API client app to access a user's Google Ads account\nwithout having to handle or store the user's login info.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThe following steps must be completed to authorize requests to the Google Ads API.\n\n1. [Configure a Cloud project for the Google Ads API](/google-ads/api/docs/oauth/cloud-project)\n\n2. [Configure a client library for OAuth in the Google Ads API](/google-ads/api/docs/oauth/client-library)\n\nSupporting materials are also available for related topics.\n\n- [Using Service Accounts](/google-ads/api/docs/oauth/service-accounts).\n\n- Getting familiar with [OAuth2 internals for the Google Ads API](/google-ads/api/docs/oauth/internals).\n\n- Using the [OAuth Playground](/google-ads/api/docs/oauth/playground) to generate refresh\n and access tokens."]]