คุณต้องมีโปรเจ็กต์คอนโซล Google API เพื่อสร้างข้อมูลเข้าสู่ระบบ OAuth 2.0 และเปิดใช้ Google Ads API สําหรับแอป
เซิร์ฟเวอร์ของ Google ต้องใช้ข้อมูลเข้าสู่ระบบเพื่อตรวจสอบสิทธิ์และให้สิทธิ์ผู้ใช้ Google Ads ข้อมูลเข้าสู่ระบบเหล่านี้ช่วยให้คุณสร้างโทเค็น OAuth เพื่อใช้ในการเรียก API ได้
ทำตามวิธีการเพื่อสร้างโปรเจ็กต์ การเปิดใช้การเรียกเก็บเงินสำหรับโปรเจ็กต์เป็นตัวเลือกที่ไม่บังคับ หากเปิดใช้การเรียกเก็บเงิน ให้เลือกบัญชีสำหรับการเรียกเก็บเงินของโปรเจ็กต์ใหม่ การใช้ Google Ads API ไม่มีค่าใช้จ่าย แต่จะมีโควต้าสำหรับจํานวนโปรเจ็กต์ Cloud โดยรวม
เปิดใช้ Google Ads API ในโปรเจ็กต์
หากต้องการเปิดใช้ Google Ads API ในโปรเจ็กต์ ให้ทําตามขั้นตอนต่อไปนี้
เปิดไลบรารี API ในคอนโซล Google API เมื่อได้รับข้อความแจ้ง ให้เลือกโปรเจ็กต์หรือสร้างโปรเจ็กต์ใหม่ คลัง API จะแสดงรายการ API ทั้งหมดที่ใช้ได้ โดยจัดกลุ่มตามตระกูลผลิตภัณฑ์และความนิยม
ใช้การค้นหาเพื่อค้นหา Google Ads API หากไม่ปรากฏในรายการ
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-02-12 UTC"],[[["Before making API calls, you must create an OAuth 2.0 client ID and client secret within a Google API Console project and note their values."],["You need to configure an OAuth consent screen to define what users see regarding your project's access and data usage."],["To use the Google Ads API, you must enable it within your Google API Console project using the API Library."],["Creating a client ID and client secret requires selecting an application type (Desktop app or Web application) and saving the generated credentials."]]],[]]