DFP Third Party Ad Code Generator
The code-generating script is ad-gen.coffee
Examples of use are:
sudo npm install -g coffee-script
coffee -c ad-gen.coffee
- Generate JS
- ./startServer.sh
- http://localhost:8000/client.html
- Generate JS
- Upload ad-gen.js to aws-frontend-store/PROD/commercial with: Encryption: AES-256 (Amazon S3 server-side encryption, aka Amazon S3 master-key) Permission: Public Read, Storage Class: Standard, Metadata: Content-Type application/x-javascript
- Make script public
See https://support.google.com/dfp_premium/answer/2811375 for a better way of doing this