Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Latest commit

 

History

History
34 lines (25 loc) · 1.02 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.02 KB

ad-code-gen

DFP Third Party Ad Code Generator

The code-generating script is ad-gen.coffee

Examples of use are:

To Install Coffeescript

sudo npm install -g coffee-script

To Generate JS

coffee -c ad-gen.coffee

To Test

  1. Generate JS
  2. ./startServer.sh
  3. http://localhost:8000/client.html

To Deploy

  1. Generate JS
  2. 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
  3. Make script public

TODO

See https://support.google.com/dfp_premium/answer/2811375 for a better way of doing this