CodeFund can provide ethical advertising without having to use JavaScript.
The flow looks like this:
-
Ping the API for an available ad. The request should contain the browser width and height. For example:
curl 'https://codefund.io/t/s/[YOUR_PROPERTY_ID]/details.json?ip=[IPV4]&width=1750&height=825'
The API will respond with the ad details:
{
"small_image_url":"https://d2nhukomolqgak.cloudfront.net/ce2c0f1f-dae7-4c2a-8233-759bd75d1c4f_rollbar-100x100.png",
"poweredByLink":"https://codefund.io?utm_content=8b15c523-cdb5-468d-8daf-243ca12977d6",
"pixel":"//codefund.io/p/90fb691c-f199-4a99-bb03-b4bb1315209c/pixel.png",
"link":"https://codefund.io/c/90fb691c-f199-4a99-bb03-b4bb1315209c",
"large_image_url":"https://d2nhukomolqgak.cloudfront.net/6f8a74dd-f990-49aa-89b6-7f36fb9d0f83_rollbar-130x100.png",
"image":"https://s3.us-west-2.amazonaws.com/codefund.io/prod/6f8a74dd-f990-49aa-89b6-7f36fb9d0f83_rollbar-130x100.png",
"headline":"Rollbar",
"description":"Real-time error monitoring, alerting, and analytics for JavaScript developers 🚀"
}
It is required to place a pixel image on the page with the pixel
url provided in the response. This will update CodeFund with the browser information.