Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thông thường, cách dễ nhất để tìm hiểu cách sử dụng API là xem mã mẫu. Trang này cung cấp đường liên kết đến các mẫu và một số cách thuận tiện để truy cập vào API AdMob.
Tuy nhiên, thay vì tạo yêu cầu HTTP và phân tích cú pháp phản hồi theo cách thủ công, bạn nên sử dụng Thư viện ứng dụng API của Google. Thư viện ứng dụng cung cấp tính năng tích hợp ngôn ngữ tốt hơn, có mức độ bảo mật cao hơn và hỗ trợ thực hiện các lệnh gọi yêu cầu người dùng phải uỷ quyền.
Trong các bảng dưới đây, cột đầu tiên cho biết giai đoạn phát triển của từng thư viện; xin lưu ý rằng một số thư viện vẫn đang ở giai đoạn đầu. Cột thứ hai liên kết đến trang chính của từng thư viện.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-03-18 UTC."],[[["This page offers various ways to access the AdMob API, including sample code and client libraries."],["Client libraries provide advantages like better language integration, improved security, and user authorization support."],["Sample code is available for Java, PHP, and Python, and can be adapted for other libraries."],["You can find documentation and samples for various client libraries including Java, JavaScript, Objective-C, PHP, and Python."]]],["The AdMob API can be learned through sample code, accessible via provided links. Instead of manual HTTP requests, utilizing Google APIs Client Libraries is recommended for better language integration and security. The document lists available client libraries for Java, JavaScript, Objective-C, PHP, and Python, noting their development stage. Direct links to documentation and samples for Java, PHP, and Python are provided, with the guidance that existing library samples can be adapted for unsupported APIs.\n"]]