croudtech / bing-wrapper
1.2.2
2018-04-16 14:36 UTC
Requires
- league/csv: ^9.1
- microsoft/bingads: ^0.11.5
- nesbot/carbon: ^1.22
Requires (Dev)
- larapack/dd: ^1.1
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2021-05-10 20:41:23 UTC
README
一些辅助类,围绕Bing API,使生活更加轻松。
用法
Bing报告辅助类
BingReportHelper 包含许多方法,使报告检索变得更加容易。
getReportingClient
这只是检索 Bing 客户端的一种简化方式
$bingReportHelper = new \BingWrapper\ReportHelper\ReportHelper(); // use $client = $this->bingReportHelper->getReportingClient( 'bingUserName', 'bingPassword', 'bingApiKey' );
downloadKeywordPerformanceReportCsv
$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. );
downloadAdPerformanceReportCsv
$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. );
工作站设置
一个标准的 composer 应用。
先决条件
- PHP
- Composer
版本控制
所有者
Rob Sills