บทนำ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
Google Ads API ใช้สําหรับการจัดการบัญชีและแคมเปญ Google Ads ขนาดใหญ่หรือซับซ้อน คุณสามารถสร้างซอฟต์แวร์ที่จัดการบัญชีตั้งแต่ระดับลูกค้า
ไปจนถึงระดับคีย์เวิร์ด กรณีการใช้งานทั่วไปบางส่วนมีดังนี้
- การจัดการบัญชีอัตโนมัติ
- การรายงานที่กำหนดเอง
- การจัดการโฆษณาตามพื้นที่โฆษณา
- จัดการกลยุทธ์ Smart Bidding
Google Ads API เป็นผลิตภัณฑ์ที่เหมาะกับฉันไหม
Google มีผลิตภัณฑ์หลายอย่างที่จะช่วยทำให้บัญชี Google Ads เป็นแบบอัตโนมัติ ต่อไปนี้คือ
สถานการณ์ที่พบบ่อยและรายการผลิตภัณฑ์ของ Google ที่อาจตอบโจทย์
ความต้องการของคุณได้ดีที่สุด
สถานการณ์ |
คำแนะนำ |
ฉันเป็นนักพัฒนาซอฟต์แวร์ที่ต้องการสร้างผลิตภัณฑ์ซอฟต์แวร์ของตนเอง หรือ
ผสานรวมกับ Google Ads API ฉันเขียนโค้ดและจัดการโครงสร้างพื้นฐานของซอฟต์แวร์ รวมถึงเซิร์ฟเวอร์และฐานข้อมูล ได้อย่างคล่องแคล่ว
|
ใช้ Google Ads API |
ฉันเป็นนักพัฒนาแอปที่เขียนโค้ดได้ แต่ไม่ต้องการ
จัดการโครงสร้างพื้นฐานของซอฟต์แวร์ด้วยตนเอง |
ใช้สคริปต์ Google Ads |
ฉันไม่ใช่ผู้พัฒนา แต่ยินดีที่จะใช้เวลาเรียนรู้การเขียนโปรแกรมเพื่อทำให้ Google Ads ทำงานโดยอัตโนมัติ
|
ใช้สคริปต์ Google Ads |
ฉันเป็นนักวิเคราะห์ข้อมูล (หรือมีบทบาทคล้ายกัน) ที่ต้องการดาวน์โหลดรายงาน Google Ads เพื่อวิเคราะห์เพิ่มเติม |
ใช้
บริการโอนข้อมูล BigQuery การสนับสนุนพร้อมให้บริการสำหรับ
การโอน Google Ads |
ฉันต้องการจัดการ Google Ads แบบกลุ่ม แต่ไม่ต้องการเขียนโค้ด |
ใช้กฎอัตโนมัติ
การอัปโหลดแบบกลุ่ม
หรือ Google
Ads Editor
|
ข้อกำหนดเบื้องต้น
หากต้องการทำการเรียก Google Ads API คุณควรมีรายละเอียดต่อไปนี้ ส่วนที่เหลือของ
บทแนะนำนี้จะสอนวิธีขอรับแต่ละรายการ
- บัญชีดูแลจัดการ Google Ads: คุณต้องมีบัญชีดูแลจัดการ Google Ads
จึงจะสมัครใช้ Google Ads API ได้
โทเค็นนักพัฒนาซอฟต์แวร์: โทเค็นนี้ช่วยให้แอปเชื่อมต่อกับ
Google Ads API ได้ โทเค็นของนักพัฒนาซอฟต์แวร์แต่ละรายการจะได้รับการกำหนดระดับการเข้าถึง API ซึ่ง
ควบคุมจำนวนการเรียก API ที่คุณทำได้ต่อวัน รวมถึง
สภาพแวดล้อมที่คุณสามารถทำการเรียกได้
โปรเจ็กต์คอนโซล Google API: โปรเจ็กต์คอนโซล Google API ใช้สำหรับสร้างข้อมูลเข้าสู่ระบบ OAuth 2.0 สำหรับแอป จากนั้นแอปจะใช้ข้อมูลเข้าสู่ระบบเหล่านี้เพื่อตรวจสอบสิทธิ์ผู้ใช้และขอรับการให้สิทธิ์จากผู้ใช้เพื่อจัดการบัญชี Google Ads แอปของคุณจะใช้การให้สิทธิ์นี้ในภายหลัง
เพื่อทำการเรียก API ไปยังบัญชี Google Ads โปรเจ็กต์ยังเปิดใช้ API
เพื่อรับสายเรียกด้วย
บัญชีลูกค้า Google Ads: นี่คือบัญชีที่คุณใช้เรียก API
คุณต้องมีสิทธิ์ที่จำเป็นในการดำเนินการในบัญชีนี้
เช่น การดึงข้อมูลรายงานหรือการเปลี่ยนแปลงแคมเปญ
นอกจากนี้ คุณยังต้องมีหมายเลขบัญชี 10 หลักของบัญชีที่คุณจะเรียกใช้ API
ด้วย ซึ่งจะแสดงในอินเทอร์เฟซเว็บของ Google Ads ในรูปแบบ
123-456-7890
ระบบจะส่งหมายเลขบัญชีนี้เป็นพารามิเตอร์ไปยังการเรียก Google Ads API
โดยไม่มีขีดกลาง: 1234567890
เครื่องมือสนับสนุนและไลบรารีของไคลเอ็นต์: ชุดเครื่องมือนี้จะช่วยให้คุณผสานรวมกับ API ได้เร็วขึ้น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eThe Google Ads API is designed for managing large or complex Google Ads accounts programmatically, enabling tasks like automated account management, custom reporting, and inventory-based ad management.\u003c/p\u003e\n"],["\u003cp\u003eGoogle offers alternative solutions like Google Ads scripts, BigQuery Data Transfer service, automated rules, bulk uploads, and Google Ads Editor depending on user technical expertise and needs.\u003c/p\u003e\n"],["\u003cp\u003eTo use the Google Ads API, you'll need a Google Ads manager account, a developer token, a Google API Console project, and access to a Google Ads client account with necessary permissions.\u003c/p\u003e\n"],["\u003cp\u003eBefore making API calls, ensure you have the required details, including the 10-digit Google Ads client account number (without hyphens) and support tools or client libraries.\u003c/p\u003e\n"]]],[],null,["# Introduction\n\nThe Google Ads API is used for managing large or complex Google Ads accounts and\ncampaigns. You can build software that manages accounts from the customer level\ndown to the keyword level. Some typical use cases include:\n\n- Automated account management\n- Custom reporting\n- Ad management based on inventory\n- Manage smart bidding strategies\n\nIs the Google Ads API the right product for me?\n-----------------------------------------------\n\nGoogle provides multiple products to help automate Google Ads accounts. Here are\nsome common scenarios and the list of Google products that might best\nfit your needs.\n\n| Scenario | Recommendation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| I am a developer who wishes to build my own software product, or integrate with Google Ads API. I am comfortable writing code, managing software infrastructure including servers and database. | Use the Google Ads API. |\n| I am a developer who is comfortable writing code, but prefer not to manage my own software infrastructure. | Use [Google Ads scripts](/google-ads/scripts). |\n| I am not a developer, but am willing to invest some time learning programming to automate Google Ads. | Use [Google Ads scripts](/google-ads/scripts). |\n| I am a data analyst (or similar role) who wants to download Google Ads reports for further analysis. | Use [BigQuery Data Transfer service](//cloud.google.com/bigquery/docs/dts-introduction). Support is available for [Google Ads transfers](//cloud.google.com/bigquery/docs/google-ads-transfer). |\n| I want to manage Google Ads in bulk, but don't want to write any code. | Use [automated rules](//support.google.com/google-ads/answer/2472779), [bulk uploads](//support.google.com/google-ads/answer/10702932), or [Google Ads Editor](//support.google.com/google-ads/editor/answer/2484521). |\n\nPrerequisites\n-------------\n\nTo make a Google Ads API call, you should have the following details. The rest of this\ntutorial teaches you how to obtain each of these items.\n\n- [**Google Ads manager account**](//support.google.com/google-ads/answer/7459399): You need a Google Ads manager account to apply for the Google Ads API.\n- [**Developer token**](/google-ads/api/docs/get-started/dev-token): This token lets your app connect to the\n Google Ads API. Each developer token is assigned an API access level which\n controls the number of API calls you can make per day with as well as the\n environment to which you can make calls.\n\n- [**Google API Console project**](/google-ads/api/docs/get-started/oauth-cloud-project): The Google API Console project is used\n for generating OAuth 2.0 credentials for your app. The app will then use\n these credentials to authenticate the user and obtain user authorization to\n manage their Google Ads accounts. This authorization is later used by your app\n to make API calls to the Google Ads account. The project also enables the API\n to accept calls.\n\n- [**Google Ads client account**](/google-ads/api/docs/get-started/select-account): This is the account you're making API\n calls against. You need necessary permissions to operate on this account,\n such as fetching reports or making changes to campaigns.\n\n You also need the 10-digit account number of the account you're making API\n calls to. This is displayed in the Google Ads web interface in the form\n `123-456-7890`. This account number is passed as a parameter to the Google Ads API\n call without the hyphens: `1234567890`.\n- [**Support tools and client libraries**](/google-ads/api/docs/get-started/download-tools-libraries): This set of tools can help\n you integrate with the API more quickly."]]