Skip to content

Commit

Permalink
A new beginning
Browse files Browse the repository at this point in the history
  • Loading branch information
debedb committed Mar 14, 2015
0 parents commit 3605ad3
Show file tree
Hide file tree
Showing 625 changed files with 181,710 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src/it/java"/>
<classpathentry kind="src" path="src/it/resources"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/bin/
/target/
/.idea/
config/lot49.json
*~
**/*~
log
dump.rdb
nohup.out
/Lot49.iml
23 changes: 23 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Lot49</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
7 changes: 7 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8
encoding/src=UTF-8
310 changes: 310 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .settings/org.eclipse.jdt.launching.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning
5 changes: 5 additions & 0 deletions .settings/org.eclipse.jdt.ui.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
eclipse.preferences.version=1
formatter_profile=_OpenDSPStyle
formatter_settings_version=12
org.eclipse.jdt.ui.javadoc=false
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="false" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * \n *\n * @author Gregory Golberg (&lt;a href\="mailto\:[email protected]"&gt;[email protected]&lt;/a&gt;)\n * &lt;p&gt;&lt;/p&gt;\n * Copyright \u00A9 &lt;a href\="http\://www.enremmeta.com"&gt;Enremmeta LLC&lt;/a&gt;\n * 2015. All Rights Reserved. This code is licensed under &lt;a\n * href\="http\://www.gnu.org/licenses/agpl-3.0.html"&gt;Alfero GPL 3.0&lt;/a&gt;\n * \n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
4 changes: 4 additions & 0 deletions .settings/org.eclipse.m2e.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
5 changes: 5 additions & 0 deletions .settings/org.testng.eclipse.maven.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
eclipse.preferences.version=1
org.testng.eclipse.maven.argline=true
org.testng.eclipse.maven.environ=false
org.testng.eclipse.maven.sysproperties=false
userprojectsettings=false
3 changes: 3 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This software is available for purposes of reviewing, education, and
evaluation. For production use, whether commercial or non-profit,
contact [[email protected]](mailto:[email protected]).
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Lot49

RTB bidder (with apologies to [Thomas Pynchon](https://en.wikipedia.org/wiki/The_Crying_of_Lot_49)).

This is part of [OpenCMO stack](https://github.com/opencmo).

Copyright 2014-2015 Enremmeta LLC.

## Licensing

See [License](LICENSE.md).




27 changes: 27 additions & 0 deletions WML/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
i-309051b6

http://ui.opendsp.com/clients/136/advertisers/236/campaigns/313/targeting-strategies/1818

http://ui.opendsp.com/clients/136/advertisers/236/campaigns/313/creatives/2184

9F001EAC46E4F555591B21910234E1EA
9F001EAC54BF3F56F90B705D026D4177

zcard archived:segment:386:fp:236
203556
zcard archived:segment:387:fp:236
144568



echo SET startsOn_1818 2016-06-10T00:00 | redis-cli -h pace.va.opendsp.com
echo SET endsOn_1818 2016-06-28T00:00 | redis-cli -h pace.va.opendsp.com
echo SET bidPrice_1818 2000 | redis-cli -h pace.va.opendsp.com
echo SET budget_1818 100000000 | redis-cli -h pace.va.opendsp.com

echo SET startsOn_1818 2016-06-10T00:00 | redis-cli -h localhost
echo SET endsOn_1818 2016-06-28T00:00 | redis-cli -h localhost
echo SET bidPrice_1818 2000 | redis-cli -h localhost
echo SET budget_1818 100000000 | redis-cli -h localhost

curl -H 'content-type: application/json' -d @/Users/grisha/mygit/Lot49/WML/pubmatic.json http://local.host:10000/auction/pubmatic
9 changes: 9 additions & 0 deletions WML/pubmatic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{"id":"40A7559F-0476-4CD3-98AF-AF4081CB6D0F",
"tmax" : 600000,
"imp":[{"id":"1","tagid":"25613",
"banner":{"w":300,"h":250,
"topframe":0}}],
"site":{"id":"29490","domain":"http://photobucket.com","page":"http://s1010.photobucket.com/user/jeet_020/media/madhuri-dix.jpg.html","mobile":0,"publisher":{"id":"29489"}},"device":{"ip":"18.18.18.18","ua":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36","carrier":"Virgin Media","language":"en","geo":{"country":"GBR","region":"H4","city":"Leicester","lat":52.6021996,"lon":-1.14919996,"type":2,"zip":"LE2","utcoffset":6},"ext":{"res":"-1x-1","freq":0,"pf":1}},
"user":{"id":"CEC169B2-A1E1-483E-AED6-F2652AD34457",
"buyeruid":"9F001EAC46E4F555591B21910234E1EA",
"geo":{"utcoffset":6}}}
15 changes: 15 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Logic flows

* [Bidder startup](./bidder-startup.png)
* [Bid request](./bid-request.png)
* [Ad eligibility, first pass](./ad-eligibility-first-pass.png)
* [Get bid subflow](./get-bid-subflow.png)
* [Tag eligibility subflow](./tag-eligibility-subflow.png)
* [Ad cache refresh](./ad-cache-run.png) - runs on schedule, every minute usually (configurable).
* [Bid candidate manager run](./bid-candidate-manager-run.png) - recurs until all bid candidates either pass, all fail, or timeout occurs.
* [Lost auction task](./lost-auction-task.png) - scheduled to run a configurable amount of time after bid has been submitted. Will be canceled if a win/loss/error received from the exchange. Otherwise will run.
* Flow if [NUrl required](./nurl-required.png). For discussion of NUrl, see:
* TBD Javadoc
* TBD OpenRTB
* [Impression received](./impression.png)
* []()
Binary file added doc/ad-cache-run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/ad-eligibility-first-pass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/bid-candidate-manager-run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/bid-request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/bidder-startup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/get-bid-subflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/impression.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/lost-auction-task.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/nurl-required.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/tag-eligibility-subflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3605ad3

Please sign in to comment.