| Version 2 (modified by celso, 6 years ago) |
|---|
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: Adwords,type: 'vertical','align':'right'});
Input Parameters
- (object) feed : JSON object coming from http://adw.sapo.pt/json.html?word=KEY&c=NNN
- (string) type : 'vertical' or 'horizontal' (default is vertical)
- (string) align : Box alignment for text wrapping
- (string) adstitle : Optional title text.
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