Difference between revisions of "Vz.advertising"
From VZ Developer Wiki
Ckloeppner (talk | contribs) (→Methods) |
|||
Line 18: | Line 18: | ||
::;Parameters | ::;Parameters | ||
:::<code style="color:green">callback</code> - callback which is called with a boolean as first parameter to indicate if the user accepted the legal information or not | :::<code style="color:green">callback</code> - callback which is called with a boolean as first parameter to indicate if the user accepted the legal information or not | ||
+ | |||
+ | ===vz.advertising.postBadge=== | ||
+ | :;This feature will be available on 01.02.2011 | ||
+ | ::This feature has to be enabled by our support team. [mailto:opensocial_partner@vz.net] | ||
+ | :;<code style="color:green">vz.advertising.postBadge(badgeUri, badgeTitle, badgeDescription, link, callback)</code> | ||
+ | ::returns created badge id or false on error | ||
+ | ::;Parameters | ||
+ | :::<code style="color:green">String badgeUri</code> the full url to badge image (e.g. http://www.example.com/images/example.jpg) | ||
+ | :::<code style="color:green">String badgeTitle</code> a short badge title (optional) | ||
+ | :::<code style="color:green">String badgeDescription</code> a description (optional) | ||
+ | :::<code style="color:green">String link</code> a link to an external or internal resource (e.g. http://www.myhomepage.com), which will be called on a (badge)click on the users profile (optional) | ||
+ | :::<code style="color:green">callback</code> - callback which is called with an integer of the created badge id or boolean false on error | ||
== Examples == | == Examples == |
Revision as of 13:38, 26 January 2011
General Guidelines | XML Specification | Features | Views | JavaScript API | REST API | Tutorials | OAuth
vz.advertising
VZ specific methods get advertising tags. For further details please contact our partner support.
Methods
vz.advertising.getAdTag
vz.advertising.getAdTag(adCode, callback)
- returns full ad tag for a given ad code
- Parameters
Integer adCode
ad code which you got from our partner supportcallback
- callback which is called with the generated ad tag as parameter
vz.advertising.getPaymentInterstitial
vz.advertising.getPaymentInterstitial(callback)
- shows a payment interstitial with legal information
- Parameters
callback
- callback which is called with a boolean as first parameter to indicate if the user accepted the legal information or not
vz.advertising.postBadge
- This feature will be available on 01.02.2011
- This feature has to be enabled by our support team. [1]
vz.advertising.postBadge(badgeUri, badgeTitle, badgeDescription, link, callback)
- returns created badge id or false on error
- Parameters
String badgeUri
the full url to badge image (e.g. http://www.example.com/images/example.jpg)String badgeTitle
a short badge title (optional)String badgeDescription
a description (optional)String link
a link to an external or internal resource (e.g. http://www.myhomepage.com), which will be called on a (badge)click on the users profile (optional)callback
- callback which is called with an integer of the created badge id or boolean false on error
Examples
vz.advertising.getAdTag(YOUR_AD_CODE, function(tag) {
//do something with the returned tag
});
VZspecific APIs |
|||
vz.advertising |