biologed / revive-ad-server-api
Package for access to Api V2 Revive Ad Server
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/biologed/revive-ad-server-api
Requires
- php: ^8.3
- illuminate/support: 11.*
- nesbot/carbon: ^3.8
- phpxmlrpc/phpxmlrpc: 4.*
This package is auto-updated.
Last update: 2025-12-14 12:47:41 UTC
README
Uses
Laravel config/env
php artisan vendor:publish --provider="Biologed\Revive\ReviveServiceProvider"
If you want to edit the config, use the ENV constants in the .env file
REVIVE_HOST=example.com REVIVE_BASEPATH=/www/api/v2/xmlrpc/ REVIVE_USERNAME=admin REVIVE_PASSWORD=password REVIVE_PORT=0 REVIVE_SSL=1 REVIVE_TIMEOUT=15
Examples
use Biologed\Revive\Revive; use Biologed\Revive\Entities\Advertiser; use Biologed\Revive\Entities\Agency; //get agency entity from Revive Ad Server $agencyEntity = Revive::API()->setAgencyId(1)->getAgency(); //create Advertiser Entity $advertiserEntity = new Advertiser(); $createdAdvertiser = $advertiserEntity->readDataFromArray([ 'advertiserId' => 0, 'accountId' => 1, 'agencyId' => 1, 'advertiserName' => 'Advertiser', 'contactName' => 'Contact', 'emailAddress' => 'password', 'comments' => 'comment', ]); //modify Agency to Revive Ad Server $agencyEntity->setParam('contactName', 'new contact name'); Revive::API()->setAgencyEntity($agencyEntity)->modifyAgency(); //get list of Agencies $agencyList = Revive::API()->getAgencyList(); //get statistics $advertiserCampaignStatistics = Revive::API() ->setAdvertiserId(5) ->setStartDate(CarbonImmutable::yesterday()) ->setEndDate(CarbonImmutable::today()) ->advertiserCampaignStatistics() ->get();