croudtech / bingads-wrapper
该软件包最新版本(1.2.2)没有可用的许可信息。
Bing 的包装器。
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: 2024-09-11 03:37:44 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