PHP code example of brookin / marketing-api

1. Go to this page and download the library: Download brookin/marketing-api 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/ */

    

brookin / marketing-api example snippets


define('MARKETING_API_NAME', 'MarketingAPI');
define('MARKETING_API_APP_ID', '');
define('MARKETING_API_URL_PREFIX', 'https://sandbox-api.e.qq.com/v1.0');
define('MARKETING_API_ACCESS_TOKEN', '');
define('MARKETING_API_AGENCY_ID', 100000);
define('MARKETING_API_ADVERTISER_ID', 100000);
define('MARKETING_API_CAMPAIGN_ID', 100000);
define('MARKETING_API_TARGETING_ID', 100000);
define('MARKETING_API_ADGROUP_ID', 100000);
define('MARKETING_API_IMAGE_ID', '100000:b7f06a09a2c7fc0c8373a07510d11124');
define('MARKETING_API_IMAGE_ID_160x210', '100000:9b1d4cf867183e0a76c1996caaffd58f');
define('MARKETING_API_ADCREATIVE_ID', 100000);