Skip to content

Instantly share code, notes, and snippets.

View davidwasamrf's full-sized avatar

David Wasa davidwasamrf

  • Marfeel
  • Barcelona
View GitHub Profile
"!inline_2": {
"adServer": "marfeel",
"params": {
"WIDTH": "..",
"HEIGHT": ".."
}
}
public void setTargeting(DoubleclickTargeting targeting) {
for (Map.Entry<String, Object> entry : targeting.getAttributes().entrySet()) {
this.targeting.addAttribute(entry.getKey(), entry.getValue());
}
}
//instead of
<?php
/**
* Copyright (c) 2017 Marfeel Solutions (https://www.marfeel.com)
* All Rights Reserved.*
* NOTICE: All information contained herein is, and remains
* the property of Marfeel Solutions S.L and its suppliers,
* if any. The intellectual and technical concepts contained
* herein are proprietary to Marfeel Solutions S.L and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Car News, Car Reviews, Racing and Auto Show Stories | Autoweek</title>
<link>http://autoweek.com</link>
<language>en</language>
<lastBuildDate>Mon, 31 Jul 2017 14:31:13 +0000</lastBuildDate>
<description>Car News, Car Reviews, Racing and Auto Show Stories | Autoweek</description>
<item>
<rss version="2.0"
xmlns:content="http://video.search.yahoo.com/mrss">
<channel>
<title>Car News, Car Reviews, Racing and Auto Show Stories | Autoweek</title>
<link>http://autoweek.com</link>
<language>en</language>
<lastBuildDate>Fri, 28 Jul 2017 15:21:22 +0000</lastBuildDate>
<description>Car News, Car Reviews, Racing and Auto Show Stories | Autoweek</description>
<item>
<title>This is me working on newsstand</title>
#!/usr/bin/env bash
watch " cp -r ~/Gutenberg/MarfeelAlibaba/src/main/resources/* ~/Gutenberg/MarfeelAlibaba/target/classes && \
cp -r ~/Gutenberg/MarfeelAlibaba/src/main/resources/* ~/Gutenberg/MarfeelHub/target/classes && \
cp -r ~/Gutenberg/MarfeelAlibaba/src/main/resources/* ~/Gutenberg/MarfeelHub/target/webapp/WEB-INF/classes"

Use cases

  • miss behaving ad network : blacklist in emergency
  • overcome server side issue : Override configuration
  • replacing an adNetwork with another
  • on the fly revenue optimization testing : order, append, prepend

JSON solution

Blacklist a set of ad networks

  • cache adNetwork results (maybe keep cache life longer because will not change && small because 1 per tenant < 400) SEE WITH TOMAS

  • unify AdConfiguration with TwisterAdNetwork

  • see how to create a twister.json that could be merged with our twisterConfig.json -> empty twister.json in marfeel tenant as default -> if one adNetwork screw up, we put a twister.json in tenant directory; it can overwrite stuff so one adNetwork is removed or replaced

@davidwasamrf
davidwasamrf / providerBadCredentialsCriteria.md
Last active October 28, 2016 16:39
Ins 1666/show proper error to user when registering fails - Testing critera

Here are the criterias used in order to identify a bad credentials over an error, for each data provider.

Google

Adsense and Ga

401

Adx

401 or 404

Facebook