জিআরপিসি উপলব্ধ না থাকলে বিকল্প ব্যবহার করা হয়: REST । এটির জন্য কোন PHP এক্সটেনশন ইনস্টল করার প্রয়োজন নেই এবং এটি HTTP/1.1 এর উপর ভিত্তি করে তৈরি।
যদি আপনি উপরে বর্ণিত ডিফল্ট নিয়মের উপর নির্ভর না করে নিজের পরিবহনের ধরনটি নির্দিষ্ট করতে পছন্দ করেন, তাহলে আপনি আপনার google_ads_php.ini ফাইলের CONNECTION বিভাগে transport সম্পত্তি সেট করতে পারেন:
[CONNECTION]; Optional transport settings.; By default, "grpc" is used if available otherwise "rest".transport = "grpc"
বিকল্পভাবে, আপনি ট্রান্সপোর্ট সেটিংটি অন্য প্রত্যেকটির মতো প্রোগ্রাম্যাটিকভাবে কনফিগার করতে পারেন:
$googleAdsClient = (new GoogleAdsClientBuilder()) ... ->withTransport('grpc') ->build();
[null,null,["2025-03-04 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["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."]]],[]]