البديل المستخدَم عندما لا يكون gRPC متاحًا:
REST. ولا يتطلب
تثبيت أيّ إضافة PHP، ويستند إلى HTTP/1.1.
إذا كنت تفضّل تحديد نوع النقل بنفسك بدلاً من الاعتماد على
القواعد التلقائية الموضّحة أعلاه، يمكنك ضبط الخاصية transport في القسم
CONNECTION منملف
google_ads_php.ini:
[CONNECTION]; Optional transport settings.; By default, "grpc" is used if available otherwise "rest".transport = "grpc"
بدلاً من ذلك، يمكنك ضبط إعداد النقل آليًا مثل
جميع الإعدادات الأخرى:
$googleAdsClient = (new GoogleAdsClientBuilder()) ... ->withTransport('grpc') ->build();
تاريخ التعديل الأخير: 2025-02-28 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-02-28 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The Google Ads API client library supports two transport types: gRPC (preferred) and REST (fallback)."],["gRPC offers better performance but requires the gRPC PHP extension, while REST is based on HTTP/1.1 and doesn't require any specific extension."],["You can manually specify your preferred transport type through the `google_ads_php.ini` configuration file or programmatically within your code."],["The gRPC version utilized by the library is usually managed through dependencies, primarily `google/gax`, and occasionally directly within the library's own `composer.json` for optimization or compatibility."]]],[]]