|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace CloudyCity\KuaishouMarketingSDK\Report; |
|
4
|
|
|
|
|
5
|
|
|
use CloudyCity\KuaishouMarketingSDK\Kernel\BaseClient; |
|
6
|
|
|
|
|
7
|
|
|
class Client extends BaseClient |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* 获取广告主报表. |
|
11
|
|
|
* |
|
12
|
|
|
* @link https://yiqixie.com/d/home/fcAC2OzurfmGRLHLJsNRz_wIX |
|
13
|
|
|
* |
|
14
|
|
|
* @param array $params |
|
15
|
|
|
* |
|
16
|
|
|
* @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException |
|
17
|
|
|
* @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException |
|
18
|
|
|
* @throws \GuzzleHttp\Exception\GuzzleException |
|
19
|
|
|
* |
|
20
|
|
|
* @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
|
21
|
|
|
*/ |
|
22
|
|
|
public function getAdvertiserReports(array $params) |
|
23
|
|
|
{ |
|
24
|
|
|
return $this->httpPostJson('v1/report/account_report', $params); |
|
25
|
|
|
} |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* 获取广告计划报表. |
|
29
|
|
|
* |
|
30
|
|
|
* @link https://yiqixie.com/d/home/fcAC2OzurfmGRLHLJsNRz_wIX |
|
31
|
|
|
* |
|
32
|
|
|
* @param array $params |
|
33
|
|
|
* |
|
34
|
|
|
* @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException |
|
35
|
|
|
* @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException |
|
36
|
|
|
* @throws \GuzzleHttp\Exception\GuzzleException |
|
37
|
|
|
* |
|
38
|
|
|
* @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
|
39
|
|
|
*/ |
|
40
|
|
|
public function getCampaignReports(array $params) |
|
41
|
|
|
{ |
|
42
|
|
|
return $this->httpPostJson('v1/report/campaign_report', $params); |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* 获取广告组报表. |
|
47
|
|
|
* |
|
48
|
|
|
* @link https://yiqixie.com/d/home/fcAC2OzurfmGRLHLJsNRz_wIX |
|
49
|
|
|
* |
|
50
|
|
|
* @param array $params |
|
51
|
|
|
* |
|
52
|
|
|
* @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException |
|
53
|
|
|
* @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException |
|
54
|
|
|
* @throws \GuzzleHttp\Exception\GuzzleException |
|
55
|
|
|
* |
|
56
|
|
|
* @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
|
57
|
|
|
*/ |
|
58
|
|
|
public function getUnitReports(array $params) |
|
59
|
|
|
{ |
|
60
|
|
|
return $this->httpPostJson('v1/report/unit_report', $params); |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* 获取广告创意报表. |
|
65
|
|
|
* |
|
66
|
|
|
* @link https://yiqixie.com/d/home/fcAC2OzurfmGRLHLJsNRz_wIX |
|
67
|
|
|
* |
|
68
|
|
|
* @param array $params |
|
69
|
|
|
* |
|
70
|
|
|
* @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\ApiException |
|
71
|
|
|
* @throws \CloudyCity\KuaishouMarketingSDK\Kernel\Exceptions\InvalidArgumentException |
|
72
|
|
|
* @throws \GuzzleHttp\Exception\GuzzleException |
|
73
|
|
|
* |
|
74
|
|
|
* @return array|\CloudyCity\KuaishouMarketingSDK\Kernel\Support\Collection|object|\Psr\Http\Message\ResponseInterface|string |
|
75
|
|
|
*/ |
|
76
|
|
|
public function getCreativeReports(array $params) |
|
77
|
|
|
{ |
|
78
|
|
|
return $this->httpPostJson('v1/report/creative_report', $params); |
|
79
|
|
|
} |
|
80
|
|
|
} |
|
81
|
|
|
|