gRPC kullanılamadığında kullanılan alternatif:
REST. Herhangi bir PHP uzantısının yüklenmesi gerekmez ve HTTP/1.1'e dayanır.
Yukarıda açıklanan varsayılan kurallara güvenmek yerine aktarım türünü kendiniz belirtmeyi tercih ederseniz google_ads_php.ini dosyanızı CONNECTION bölümünde transport mülkünü ayarlayabilirsiniz:
[CONNECTION]; Optional transport settings.; By default, "grpc" is used if available otherwise "rest".transport = "grpc"
Alternatif olarak, diğer tüm ayarlar gibi aktarım ayarını da programatik olarak yapılandırabilirsiniz:
$googleAdsClient = (new GoogleAdsClientBuilder()) ... ->withTransport('grpc') ->build();
[null,null,["Son güncelleme tarihi: 2025-02-28 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."]]],[]]