กำหนดค่าไลบรารีของไคลเอ็นต์สำหรับ OAuth ใน Google Ads API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หลังจากได้รับข้อกำหนด
การกำหนดค่าแล้ว คุณก็พร้อมที่จะตั้งค่า
ไลบรารีของไคลเอ็นต์เพื่อจัดการการเรียก Google Ads API เนื่องจากไลบรารีของไคลเอ็นต์แต่ละรายการได้รับการกำหนดค่า
แตกต่างกัน ให้ทำตามวิธีการที่ลิงก์ไว้สำหรับภาษาโปรแกรม
เฉพาะของคุณ
ตรวจสอบการกำหนดค่า
เมื่อตั้งค่า OAuth เสร็จแล้ว ให้เรียกใช้ Google Ads API โดยใช้ตัวอย่างโค้ดที่ระบุไว้ในไลบรารีของไคลเอ็นต์ เลือกตัวอย่างที่เรียบง่าย เช่น
GetCampaigns
เพื่อยืนยันการตั้งค่า
หากพบปัญหา โปรดดูคำแนะนำในการแก้ปัญหาเพื่อดูเคล็ดลับในการแก้ไขข้อบกพร่องที่พบบ่อย
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-27 UTC
[null,null,["อัปเดตล่าสุด 2025-08-27 UTC"],[[["\u003cp\u003eThis page provides instructions for setting up a client library to interact with the Google Ads API after completing configuration requirements.\u003c/p\u003e\n"],["\u003cp\u003eClient library setup varies depending on the programming language, with links provided for Java, .NET, PHP, Python, Ruby, and Perl.\u003c/p\u003e\n"],["\u003cp\u003eUsers should verify their setup by making a simple API call, such as GetCampaigns, and refer to the troubleshooting guide if any issues arise.\u003c/p\u003e\n"]]],[],null,["# Configure a Client Library for OAuth in the Google Ads API\n\nAfter you've obtained the [configuration\nrequirements](/google-ads/api/docs/get-started/introduction), you're ready to set up a\nclient library to handle Google Ads API calls. Since each client library is configured\ndifferently, follow the linked instructions for your particular programming\nlanguage. \n\n### Java\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/java/oauth-web)\n\n### .NET\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/dotnet/oauth-web)\n\n### PHP\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/php/oauth-web)\n\n### Python\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/python/oauth-web)\n\n### Ruby\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/ruby/oauth-web)\n\n### Perl\n\n- [Desktop and Web app flows](/google-ads/api/docs/client-libs/perl/oauth-web)\n\nVerify your configuration\n-------------------------\n\nWhen you've completed setting up OAuth, make a call to the Google Ads API using one of\nthe provided code examples in the client library. Choose a simple example, like\n[`GetCampaigns`](/google-ads/api/docs/get-started/make-first-call), to verify your setup.\n\nIf you encounter issues, consult the [troubleshooting\nguide](/google-ads/api/docs/best-practices/troubleshooting) for tips on debugging common\nissues."]]