rtbhouse/sdk
最新稳定版本:8.1.1
Composer 安装命令:
composer require rtbhouse/sdk
包简介
RTB House SDK
README 文档
README
Overview
This library provides an easy-to-use PHP interface to RTB House API. It allows you to read and manage you campaigns settings, browse offers, download statistics etc.
API docs: https://api.panel.rtbhouse.com/api/docs
Installation
RTB House SDK can be installed with composer:
$ composer require rtbhouse/sdk
Usage example
Let's write a script which fetches campaign stats (imps, clicks, postclicks) and shows the result.
First, create config.php file with your credentials:
define('USERNAME', 'jdoe'); define('PASSWORD', 'abcd1234');
Then create example.php with code:
require_once('vendor/autoload.php'); require_once('config.php'); $api = new \RTBHouse\ReportsApi\ReportsApiSession(USERNAME, PASSWORD); $advertisers = $api->getAdvertisers(); $stats = $api->getSummaryStats( $advertisers[0]['hash'], '2020-10-01', '2020-10-31', ['day'], ['impsCount', 'clicksCount', 'campaignCost', 'conversionsCount', 'ctr'], \RTBHouse\ReportsApi\Conversions::ATTRIBUTED_POST_CLICK ); print_r($stats);
License
统计信息
- 总下载量: 40.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04