1. Go to this page and download the library: Download croudtech/bing-wrapper 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/ */
croudtech / bing-wrapper example snippets
$bingReportHelper = new \BingWrapper\ReportHelper\ReportHelper();
// use
$client = $this->bingReportHelper->getReportingClient(
'bingUserName',
'bingPassword',
'bingApiKey'
);
$bingReportHelper = new \BingWrapper\ReportHelper\ReportHelper();
$bingAccountId = 123;
$startDate = carbon::now()->subDay();
$endDate = carbon::now();
return $this->bingReportHelper->downloadKeywordPerformanceReportCsv(
$client,
$startDate,
$endDate,
[$bingAccountId],
'/location/on/fileSytem/to/store/csv',
[] // arrray of colunm names to exclude.
);
$bingReportHelper = new \BingWrapper\ReportHelper\ReportHelper();
$bingAccountId = 123;
$startDate = carbon::now()->subDay();
$endDate = carbon::now();
return $this->bingReportHelper->downloadAdPerformanceReportCsv(
$client,
$startDate,
$endDate,
[$bingAccountId],
'/location/on/fileSytem/to/store/csv',
[] // arrray of colunm names to exclude.
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.