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 browsers | Yes |
Depends
- http://js.sapo.pt/SAPO/
- http://js.sapo.pt/SAPO/Exception
- http://js.sapo.pt/SAPO/Utility/CSS
- http://js.sapo.pt/SAPO/Utility/Variable
- http://js.sapo.pt/SAPO/Utility/String
- http://js.sapo.pt/SAPO/Widget/Adwords
Sample
http://js.sapo.pt/SAPO/Widget/Adwords/sample/adwords.html
Other methods from this class
Community feedback