क्या आपको Google Ads API के बारे में सुझाव/राय देनी है या शिकायत करनी है? उपयोगकर्ताओं पर की जाने वाली रिसर्च में हिस्सा लेने का न्योता पाने के लिए, साइन अप करें!
gRPC उपलब्ध न होने पर इस्तेमाल किया जाने वाला विकल्प:
REST. इसके लिए, किसी PHP एक्सटेंशन को इंस्टॉल करने की ज़रूरत नहीं होती. यह एचटीटीपी/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."]]],[]]