חלופה שמשמשת כש-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();
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2024-11-24 (שעון 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."]]],[]]