PHP code example of kubrey / apple-search-ad
1. Go to this page and download the library: Download kubrey/apple-search-ad library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kubrey / apple-search-ad example snippets
$campaign = new \searchad\campaign\CampaignRequest();
$campaign->loadCertificates(__DIR__ . '/test.pem', __DIR__ . '/test.key')
->queryCampaigns();
var_dump($campaign->getRawResponse());
$response = new \searchad\ApiResponse();
$response->loadResponse($campaign->getRawResponse(),$campaign->getCurlInfo());
$response->isHttpCodeOk();