This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add initial filtering This allows strict host filtering based on a config setting `--adm_settings` / `CONTILE_ADM_SETTINGS` accepts a JSON formatted hash of values. The argument should be flattened, but it is expanded below for legibility: ```javascript CONTILE_ADM_SETTINGS='{ "Example": { /* The partner name (while case insensitive, it should match the 'name' field response */ "advertiser_hosts": ["example.com", "www.example.com"], /* Allowed host names for `advertiser_url` */ "position": 0, /* The tile position suggestion */ "include_regions": ["en", "en-US/TX"], /* valid region codes for this tile. */ }, "Default": { /* A default set of values. These are used if no value is specified for an individual partner */ "impression_hosts": ["example.org", "www.example.org"], /* valid hosts for the `impression_url` */ "click_hosts": ["example.net", "click.foo.example.net"], /* valid hosts for `click_url` */ }} ``` This PR also: * wires up location information * Tracks anominal partner info Closes #18, #50 Issue #36, #22
- Loading branch information
Showing
9 changed files
with
552 additions
and
83 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.