1. Go to this page and download the library: Download albafo/google-connector-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
albafo / google-connector-php example snippets
use Zeus\GoogleConnector\Api\AdsApi;
$adsApi = AdsApi::fromConfig([
'clientId' => $config['clientId'],
'clientSecret' => $config['clientSecret'],
'refreshToken' => $config['refreshToken'],
'developerToken' => $config['developerToken'],
'customerId' => $config['customerId'],
'loginCustomerId' => $config['loginCustomerId']
]);
$reportObject = $adsApi->searchStream("
SELECT campaign.id, campaign.name, campaign.status
FROM campaign
ORDER BY campaign.id
");
$ composer
console
php vendor/bin/refresh-token.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.