SAPO::Widget.Adwords->printAdwords

This method will render a box with AdWords based on a JSON object

Syntax

var ads = new SAPO.Widget.Adwords();
ads.printAdwords(feed,{type: 'vertical','align':'right'});

Input Parameters

  • (object) feed : JSON object coming from  http://adw.sapo.pt/json.html?word=KEY&c=NNN
  • (object) option : Method options
    • (string) type : 'vertical' or 'horizontal' (default is vertical)
    • (string) align : Box alignment for text wrapping
    • (string) adstitle : Optional title text.
    • (string) divid : Optional DIV id for rendering.

Compatibility

All browsersYes

Depends

Sample

 http://js.sapo.pt/SAPO/Widget/Adwords/sample/adwords.html

Other methods from this class

Error: Failed to load processor ListTagged
No macro or processor named 'ListTagged' found


Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found