🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-19 14:25:12 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
thedasstores.com
/
wp-content
/
plugins
/
google-listings-and-ads
/
src
/
Google
/
Ads
📍 /home/therahul/thedasstores.com/wp-content/plugins/google-listings-and-ads/src/Google/Ads
🔄 Refresh
✏️
Editing: GoogleAdsClient.php
Writable
<?php declare( strict_types=1 ); /** * Overrides vendor/googleads/google-ads-php/src/Google/Ads/GoogleAds/Lib/V18/GoogleAdsClient.php * * phpcs:disable WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid * phpcs:disable WordPress.NamingConventions.ValidVariableName */ namespace Automattic\WooCommerce\GoogleListingsAndAds\Google\Ads; use Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Auth\Credentials\InsecureCredentials; use Automattic\WooCommerce\GoogleListingsAndAds\Vendor\Google\Auth\HttpHandler\HttpHandlerFactory; use Automattic\WooCommerce\GoogleListingsAndAds\Vendor\GuzzleHttp\Client; /** * A Google Ads API client for handling common configuration and OAuth2 settings. */ class GoogleAdsClient { use ServiceClientFactoryTrait; /** @var Client $httpClient */ private $httpClient = null; /** * GoogleAdsClient constructor * * @param string $endpoint Endpoint URL to send requests to. */ public function __construct( string $endpoint ) { $this->oAuth2Credential = new InsecureCredentials(); $this->endpoint = $endpoint; } /** * Set a guzzle client to use for requests. * * @param Client $client Guzzle client. */ public function setHttpClient( Client $client ) { $this->httpClient = $client; } /** * Build a HTTP Handler to handle the requests. */ protected function buildHttpHandler() { return [ HttpHandlerFactory::build( $this->httpClient ), 'async' ]; } }
💾 Save Changes
❌ Cancel