Follow

How To Add Standalone Promo Slots

To add promo slots to your feed, you can follow these steps: 

  • IN WORDPRESS
    • Go to Settings > Pugpig
    • Find heading 'Debug and Testing' > Extra OPDS Entries field
  • IN DRUPAL
    • Go to Settings > Pugpig Settings
    • Find “Static entry XML” field
  • Then for either Drupal or Wordpress enter something like:
 <link xmlns:dcterms="http://purl.org/dc/terms/" type="application/json"
href="http://demo.pugpig.com/grazia_testing/newsfeed.json" 
rel="http://type.pugpig.com/things/promos"
dcterms:modified="2014-06-30T13:00:00-00:00" />

*The JSON file can be uploaded to the Drupal or WordPress CMS inside an ad package with the image assets added to CMS media library or the file can be hosted externally.

An example of the Json Promo file:

{
 "promoslot/hero/0001" : {
   "type" : "PPfMPromoSlot",
   "promo_type" : "generic",
   "placement" : "hero",
   "platforms" : [ "ios-tablet" ],
   "title" : "Promo slot 1",
   "summary" : "This is a summary",
   "link" : "pugpig://login",
   "images.url" : [ "http://lorempixel.com/30/100", "http://lorempixel.com/60/200" ],
   "images.dimensions" : [ "30x100", "60x200" ],
}

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk