Google Ads API را می توان با استفاده از gRPC یا REST فراخوانی کرد. هر دو اینترفیس یک طراحی منبع گرا را به اشتراک گذاشته شده با سایر APIهای Google Cloud نشان می دهند.
توصیه می کنیم تا جایی که ممکن است از کتابخانه های سرویس گیرنده رسمی Google استفاده کنید. آنها کد اصطلاحی و ایمن را در هر زبان پشتیبانی شده ارائه می کنند و بسیاری از جزئیات سطح پایین ارتباط با API را مدیریت می کنند (مانند تنظیمات زمان، صفحه بندی مجموعه نتایج و احراز هویت ). کتابخانههای مشتری ما همچنین شامل مجموعه گستردهای از نمونههای کد و ابزارهای کمکی است که به کارهای رایج مانند ساخت نام منابع و مدیریت ماسکهای فیلد کمک میکنند.
این راهنما جزئیات خاص REST را ارائه میکند و توضیح میدهد که برای تماس مستقیم با رابط REST، بدون استفاده از کتابخانه سرویس گیرنده پشتیبانی شده توسط Google، باید بدانید. اگر در حال نوشتن کد سفارشی خود برای استفاده مستقیم از REST یا استفاده از کتابخانه مشتری HTTP شخص ثالث هستید، این راهنما ممکن است مفید باشد.
تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-25 بهوقت ساعت هماهنگ جهانی."],[[["Google Ads API can be accessed using either gRPC or REST, with gRPC being the recommended method for interacting with the API."],["Official Google client libraries, built on gRPC (except for Perl which uses REST), are strongly encouraged for ease of use and handling low-level communication details."],["This guide focuses on using the REST interface directly, primarily for users building custom solutions or using third-party HTTP client libraries."],["Client libraries provide benefits like idiomatic code, type safety, pagination handling, authentication, and access to code examples and utilities for common tasks."]]],["The Google Ads API utilizes gRPC or REST interfaces, sharing a resource-oriented design. Using Google's client libraries is highly recommended for type-safe code, handling communication details like timeouts, pagination, and authentication. The official client libraries use gRPC, except for the Perl library, which uses REST. This guide details using REST directly without client libraries, useful for custom code or third-party HTTP clients. It focuses on information outside of what the official client libraries cover.\n"]]