Created
October 14, 2013 17:46
-
-
Save AndrejAndb/6979310 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if(!defined('__SCRIPT_START_TIME')) { | |
| trigger_error('No direct access', E_USER_ERROR); | |
| } | |
| $config = array( | |
| // ------------------------- | |
| // system config - RTB v 0.3.0 | |
| // ------------------------- | |
| 'is_active' => true, // set false to respond every bidRequest with zero bids | |
| 'is_develop' => FALSE, // develop mode -> more logs | |
| 'requester_mode' => FALSE, // requester mode for development => overwriting params, autofill, ... | |
| // usefull for development | |
| 'save_all_bids_to_db' => FALSE, // save all bids (inclusive invalids) to database | |
| 'save_valid_bids_as_mock' => FALSE, // creating mocks files for valid bids | |
| 'save_all_bids_as_mock' => FALSE, // creating mocks for all bids (careful: can fill server disk) | |
| 'max_active_bids' => 15, //parallel requests for each php process, that send to the SDE | |
| 'email_reports' => 'marc.siebeneicher@smartstream.tv', // email reports for error logs | |
| // ------------------------- | |
| // black- and white list config | |
| // first lvl will only check the referer network by strpos | |
| // second lvl will use regEx preg_match() | |
| // ------------------------- | |
| 'whitelist' => array( | |
| 'eql' => array( | |
| 'youtube.com' => null, | |
| /*'nytimes.com' => array( | |
| 'eql' => array( // pregmatch must be true | |
| '/technology/', | |
| ), | |
| 'noeql' => array( // pregmatch must be false | |
| '^https', | |
| 'darfNichtDrinSein', | |
| ) | |
| ), | |
| 'google.de' => null, | |
| 'google.com' => null,*/ | |
| // rtb channels | |
| 'auto.de' => null, | |
| 'auto.co.uk' => null, | |
| 'chip.de' => null, | |
| 'nwzonline.de' => null, | |
| 'autozeitung.de' => null, | |
| 'kfz-tech.de' => null, | |
| 'pcwelt.de' => null, | |
| 'zeit.de' => null, | |
| 'mz-web.de' => null, | |
| 'derwesten.de' => null, | |
| 'news.de' => null, | |
| 'mopo.de' => null, | |
| 'stern.de' => null, | |
| 'rp-online.de' => null, | |
| 'lokalkompass.de' => null, | |
| 'auto-presse.de' => null, | |
| 'newcarz.de' => null, | |
| 'auto-geil.de' => null, | |
| 'shortnews.de' => null, | |
| 'augsburger-allgemeine.de' => null, | |
| 'netzwelt.de' => null, | |
| 'spox.com' => null, | |
| 'channelpartner.de' => null, | |
| 'sueddeutsche.de' => null, | |
| 'golem.de' => null, | |
| 'general-anzeiger-bonn.de' => null, | |
| 'comunio.de' => null, | |
| 'apfeltalk.de' => null, | |
| 'bild.de' => null, | |
| 'pcgames.de' => null, | |
| 'computerbase.de' => null, | |
| 'areamobile.de' => null, | |
| 'nickles.de' => null, | |
| 'macerkopf.de' => null, | |
| 'morgenpost.de' => null, | |
| 'swp.de' => null, | |
| 'ksta.de' => null, | |
| 'lvz-online.de' => null, | |
| 'volksstimme.de' => null, | |
| 'wn.de' => null, | |
| 'berliner-zeitung.de' => null, | |
| 'pc-magazin.de' => null, | |
| 'rhein-zeitung.de' => null, | |
| 'tz-online.de' => null, | |
| 'nordbayern.de' => null, | |
| 'giga.de' => null, | |
| 'suedkurier.de' => null, | |
| 'chiemgau24.de' => null, | |
| 'op-online.de' => null, | |
| 'merkur-online.de' => null, | |
| 'apfeltech.net' => null, | |
| 'heise.de' => null, | |
| 'mobile.de' => null, | |
| 'autoscout24.de' => null, | |
| 'autobild.de' => null, | |
| 'auto-motor-und-sport.de' => null, | |
| 'focus.de' => null, | |
| ), | |
| ), | |
| // ------------------------- | |
| // network configs | |
| // ------------------------- | |
| // clientID config and mapping | |
| 'clients' => array( | |
| // CLIENT_ID => NETWORK MAIN CLASS | |
| 'adx' => 'Adx', | |
| 'lr' => 'LiveRail', | |
| 123 => 'Demo', | |
| ), | |
| 'default_client_id' => 'adx', // default id for empty _cid param | |
| // ------------------------- | |
| // google adx configs | |
| // ------------------------- | |
| // comment out adx_valid_seller_networks to validate networks ids | |
| // check https://commondatastorage.googleapis.com/adx-rtb-dictionaries/seller-network-ids.txt | |
| /** | |
| * 679 You Tube | |
| * 1582 You Tube | |
| * 2690 www.youtube.com/profile?user=golocalTeam - AdX EMEA | |
| */ | |
| #'adx_valid_seller_networks' => array(679,1582,2690), | |
| // invalid sensitive categories -> smartstream can't guarantee for it | |
| // check https://commondatastorage.googleapis.com/adx-rtb-dictionaries/ad-sensitive-categories.txt | |
| 'adx_invalid_sensitive_categories' => array(7, 19, 23), | |
| /** | |
| * 0 Ad has no sensitive categories | |
| 3 Politics | |
| 4 Dating | |
| 5 Religion | |
| 7 Video Games (Casual & Online) + | |
| 8 Ringtones & Downloadables | |
| 10 Get Rich Quick | |
| 18 Weight Loss | |
| 19 Cosmetic Procedures & Body Modification + | |
| 23 Drugs & Supplements + | |
| 24 Sexual & Reproductive Health | |
| 27 Consumer Loans | |
| 28 Free Gifts, Quizzes, & Surveys | |
| 29 Misleading Claims | |
| 30 Black Magic, Astrology, & Esoteric | |
| 31 References to Sex & Sexuality | |
| */ | |
| /** // valid countries, which be accepted for bids | |
| * https://developers.google.com/ad-exchange/rtb/geotargeting#browse | |
| * https://developers.google.com/adwords/api/docs/appendix/geotargeting#browse | |
| */ | |
| 'adx_valid_countries' => array('DE', 'AT'), /* array('DE', 'AT', 'CH', [...]) */ | |
| 'adx_mapping_country_mode' => 'adWords', // [adWords, DEFAULT adx] | |
| // placement data for matching | |
| 'adx_valid_ad_types' => array('prer'), /* array('prer', 'midr', 'postr') || null for all */ | |
| /** | |
| prer7-0%3D703 youtube.com - female g_f | |
| prer7-0%3D701 youtube.com - male g_m | |
| prer7-0%3D683 youtube.com - mix default/fallback | |
| prer7-0%3D761 yt female skippable g_f | |
| prer7-0%3D763 yt male skippable g_m | |
| */ | |
| 'adx_placement_id_prefix' => '7-0=', | |
| 'adx_placement_id_arr' => array( | |
| 'DEFAULT' => array( // DE | |
| 7701908103 => array( // rtb_gf | |
| 'placement_nonskip' => '703', | |
| 'placement_skip' => '761', /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 - 100 or null for disabled | |
| 'targeting' => 'g_f' | |
| ), | |
| 7701925143 => array( // rtb_gm | |
| 'placement_nonskip' => '701', | |
| 'placement_skip' => '763', /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 - 100 or null for disabled | |
| 'targeting' => 'g_m' | |
| ), | |
| 7001844063 => array( // DEFAULT rtb_all (inactiv in adx ui) | |
| 'placement_nonskip' => '683', | |
| 'placement_skip' => null, /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 to 100 or null for disabled | |
| 'targeting' => null | |
| ), | |
| // RTB Channels | |
| 8612472543 => array( // rtb_tech | |
| 'placement_nonskip' => '823', | |
| 'placement_skip' => '821', /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 to 100 or null for disabled | |
| 'targeting' => null | |
| ), | |
| 8612472063 => array( // rtb_sport | |
| 'placement_nonskip' => '827', | |
| 'placement_skip' => '825', /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 to 100 or null for disabled | |
| 'targeting' => null | |
| ), | |
| 8612471583 => array( // rtb_news | |
| 'placement_nonskip' => '831', | |
| 'placement_skip' => '829', /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 to 100 or null for disabled | |
| 'targeting' => null | |
| ), | |
| 8612442783 => array( // rtb_auto | |
| 'placement_nonskip' => '835', | |
| 'placement_skip' => '833', /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 to 100 or null for disabled | |
| 'targeting' => null | |
| ), | |
| ), | |
| 'AT' => array( | |
| 8646187263 => array( // rtb_gf_at | |
| 'placement_nonskip' => '843', | |
| 'placement_skip' => '839', /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 - 100 or null for disabled | |
| 'targeting' => 'g_f' | |
| ), | |
| 8646187743 => array( // rtb_gm_at | |
| 'placement_nonskip' => '841', | |
| 'placement_skip' => '837', /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 - 100 or null for disabled | |
| 'targeting' => 'g_m' | |
| ), | |
| 8652046263 => array( // rtb_all_at | |
| 'placement_nonskip' => '683', | |
| 'placement_skip' => null, /* null for blocking skippable ads */ | |
| 'nonskip_probability' => null, // probability 1 to 100 or null for disabled | |
| 'targeting' => null | |
| ), | |
| ), | |
| ), | |
| 'adx_placement_id_arr_default' => 7001844063, | |
| // ------------------------- | |
| // SDE (smartstream decision engine) config | |
| // ------------------------- | |
| #'sde_host' => 'http://127.0.0.1/_tools/adx/Mock_Requests/?simulateResponseTime=0&desiredStatus=accepted', | |
| 'sde_host' => 'http://ads.smartstream.tv/rtb/', // LIVE | |
| 'sde_timeout' => 50, // timeout for the curl request to the sde | |
| // ------------------------- | |
| // db config | |
| // ------------------------- | |
| 'db_mongo_host' => 'mongodb://localhost:27017', | |
| /*'db_mongo_options' => array( | |
| 'timeout' => 300, | |
| #'username' => '', | |
| #'password' => '', | |
| #'w' => 1 | |
| ),*/ | |
| 'db_mongo_db' => 'rtb_01', | |
| // ------------------------- | |
| // Maintenance config | |
| // ------------------------- | |
| 'db_clean_up_min_date' => "-3 day", // time string for strtotime() function || null for no clean up | |
| 'path_to_access_log' => '/var/log/nginx/access.log.1', // LIVE RTB 01 | |
| #'path_to_access_log' => BP . DS . 'var' . DS . 'temp' . DS . 'access.log.1', // DEVELOP | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment