More Web Service code examples

Posted by Sebastian Wallroth in HowTo, March 13th, 2009

zxwsproductcarrouselA lot of ideas whir around here for Web Service code examples. But we have to focus on the development of the Web Services. Nevertheless some nitty gritty pieces of software are to be found in the zanox Web Services Wiki. There is a special section “Quick-Start Tutorials” growing day by day. We would like to encourage you to provide some code examples to the zanox Web Service Developer community. Today we picked these three examples.

Best of all: these examples are fully functional. Download them, modify the code and bring your monetization 2.0 ideas into being.

AddThis Social Bookmark Button
Permalink

How to create dynamic ads using zanox contextual product search

Posted by Daniel Neubauer in HowTo, February 27th, 2009

This article shows how to create dynamic admedia based on the contextual product search, which is part of the zanox Web Services. In general you can follow a  server-side or client-side approach.  Here we will do this client-side using JS, so all API calls are done by the visitors browser and you don’t need any serious code running on a web-server. This way it’s easy to adopt and integrate it into your next webpage-, blog- or widgets-project.

To develop a dynamic ad, we will take the following steps:

  1. Creating zanox Web Services credentials

  2. RESTful products resource & contextual product search

  3. Crossdomain: Calling zanox Web Services using JSONP

  4. Parse response data

1. Creating zanox Web Services credentials

Login to zanox, click on the new tab “Web Services BETA”. At  the Web Services tab, create a new applicationId or grab an existing one. In this article, we just need the applicationId. The applicationId is responsible to get your tracking codes into the dynamic ads. You can make it public but don’t do this with your sharedKey, it’s nearly as mighty as your password.

Please note: If you don’t have an account yet, you have to register to continue. The first time using the Web Services tab, you have to press an apply for “zanox Web Services”-button and to re-enter the Web Services tab again.

2. RESTful products resource & contextual product search

zanox Web Services offer the same functionality for SOAP, REST-XML and REST-JSON, so you can choose case by case what’s matching your requirements.  We’re going to use Java Script in our case, so we take the REST-JSON API. The products resource supports the simple URL parameter authentification, which allows to append the applicationId as a URL parameter. To give it a try, just type the following into your browser and replace ABC123 with your applicationId:

http://api.zanox.com/json/products?applicationid=ABC123&q=jeans

The response contains then number of products matching the query and by default shows the first 10 items.  For each item there is at least name, price, description, up to three images available.  In addition category and EAN if available.

The parameter “q” defines the search query. You can search for products by using a short string or a name of a product, or by using a longer text phrase for contextual matching. To specify the search, there are some more parameters like region, minPrice, maxPrice, category and programs and adspace.

Read more about the products resource in the zanox wiki:

http://wiki.zanox.com/en/Products_Resource#GET:_Contextual_product_search

3. Crossdomain: Calling zanox Web Services using JSONP

In our client-side scenario, the API calls to api.zanox.com are done by the browser of the visitors of your website.  To support this scenario,  zanox Web Services support JSONP. You just pass the name of a Java Script callback handler function as a parameter when calling the zanox Web Services. The JSON result is wrapped into a Java Script function call.

The idas is to implement the handler function and perform the API-call as a script refenrence from your web page:

< script src="http://api.zanox.com/json/products?applicationid=ABC123&q=jeans&callback=handler" > < / script >

The response will be a call of a function name “handler” and look like this:
handler(...json result of the query…);

To make it more dynamically, you can use the following helper function to add a script reference to your website:
function addScript(url) {
var script = document.createElement(“script”);
script.src = url + ‘&t=’+new Date().getMinutes();
script.type = “text/javascript”;
document.getElementsByTagName(“head”)[0].appendChild(script);
}

Using this helper function, all the functionality of the contextual product search is already implemented in JS:
function productSearch(version, applicationid, adspace, region, programs, minPrice, maxPrice, category, page, items, q, callback) {
var url = ‘http://api.zanox.com/json/’ + version + ‘/products?applicationid=’ + applicationid;
if (adspace) url += ‘&adspace=’ + adspace;
if (region) url += ‘&region=’ + region;
if (programs) url += ‘&programs=’ + programs;
if (category) url += ‘&category=’ + category;
if (page) url += ‘&page=’ + page;
if (items) url += ‘&items=’ + items;
if (minPrice) url += ‘&minPrice=’ + minPrice;
if (maxPrice) url += ‘&maxPrice=’ + maxPrice;
if (callback) url += ‘&callback=’ + callback;
if (q) url += ‘&q=’ + q; addScript(url);
}

Read more about the Java Script helper functions and examples at: http://wiki.zanox.com/en/JavaScript_Client_Library

4. Parse response data

In order to render the product search response, we have to access the product Items inside of the JSON response. You can just use the following lines of code:

function handler(data) {
if (data.productsResult) {
var productItems = data.productsResult.productItem;

for (var i = 0; i < productItems.length; i++) {
var productItem = productItems[i];
//..do something with productItem
}

}
}


So have fun with this code snippets,  I hope this helps you creating widgets and gives you some ideas of integrating our contextual product search into your websites. Feel free to comment some of your implementations in our blog.

AddThis Social Bookmark Button
Permalink

zanox Web Services launched: build revenue from your creativity

Posted by valerie.ponell in Announcement, February 3rd, 2009

Our Web Services team has worked really hard over the last couple of months and finally THE day has come: Today we launched the open beta of zanox Web Services! Some of you might be wondering what you can do with zanox Web Services and how you can benefit from the new features. So here you go: First of all zanox Web Services are an innovative solution for both, web developers and our professional publishers. Web Services offer you access to a wide variety of new functions within our affiliate network and our infrastructure. Have a look at our Web Services video to learn more:

With zanox Web Services, you will now benefit from three key advantages when it comes to monetising your business ideas: a new automated process for managing your interaction with zanox, specific targeting opportunities including product search, geo targeting and contextual product matching, and the freedom to create your own innovative monetising models such as mobile applications or widgets. If you want to learn more about Web Services in practice, have a look at our showcases.

The fully automated interaction process will save you a lot of time and effort in your daily work: A wide number of new functionalities allow customised statistics, programme applications, payments and most recent product data to be retrieved automatically several times per day. Your direct access to our infrastructure includes profiles, adspaces, programmes, products, admedia, reports, payment details and ready-to-use applications. You will also be able to specifically target your customers with our features such as product search, geo targeting and contextual product matching. And last but not least you are now free to use your own creativity to develop, distribute and monetise your own business model. This could be an internet or mobile application, widgets, gadgets or even video or in-game advertising. And by the way, our technology supports two Web Services APIs: SOAP API and RESTful API, which also supports XML and JSON.

Two of our German closed beta testers, the team Karsten Windfelder and Frank Schulze, already published a detailed review on their blog 100partnerprogramme.de. “It’s a pleasant development that more and and more affiliate networks offer Web Services. They allow useful applications to be developed, updating one’s website in real time and the external evaluation of statistics,” Frank writes. “For the open beta launch, zanox Web Services look really good.”   Read the full test review here (in German).

Important Links:

AddThis Social Bookmark Button
Permalink

insight e-commerce in Jena

Posted by Sebastian Wallroth in Events, November 7th, 2008

Second time the international e-commerce congress insight e-commerce took place in the heart of Germany – Jena, Thuringia. In the 27th floor of the Intershop Tower professionals came together to talk about the various facettes of e-commerce. This years focus where e-commerce in Eastern Europe with detailed reports from Russia, Slovakia, and others.

zanox had the pleasure to support this event as a sponsor, and Sebastian Wallroth, Director Innovation led a workshop entitled „Monetization Models with Performance based Affiliate Marketing for the Web 2.0“.

AddThis Social Bookmark Button
Permalink

1 Mio EUR Contest Finalists: barracuda.cc

Posted by Sebastian Wallroth in Web Services Contest, November 7th, 2008

We want to introduce the finalists of the 1 Million Euro zanox Web Services Contest 2008 to the public. They made it out of ca. 150 to be invited to present their business model at the Finale of the 1 Mio EUR zanox Web Services Contest 2008.

Barracuda Affiliate Mail is a free email service for Affiliate Networks, Publishers and advertisers. Adapting the revenue share model to the email software tool they provide a global network marketing service. With their high capacity email software they can help customers who want to make their own newsletter. Sell your products and make the company more successful through email campaigns and enter new markets at a very low risk.

You are welcome to join the email network!

http://www.barracuda.cc

AddThis Social Bookmark Button
Permalink

1 Mio EUR Contest Finalists: iliketotallyloveit.com

Posted by Sebastian Wallroth in Web Services Contest, October 30th, 2008

We want to introduce the finalists of the 1 Million Euro zanox Web Services Contest 2008 to the public. They made it out of ca. 150 to be invited to present their business model at the Finale of the 1 Mio EUR zanox Web Services Contest 2008.


iliketotallyloveit.com is an online social shopping community where users submit and vote for products that they ‘like totally love’ while simultaneously helping people discover exceptional stuff. Included with every item is a link to an online shop where it can be purchased. The more people vote for a product, the greater opportunity it has to advance to the homepage and be exposed to even more visitors. It is a popularity contest within the community.

Consumers want an entertaining online equivalent to recreate their offline shopping experience of window shopping, relaxed browsing, and discovery. Consumers want to know what real people love, not what marketers want them to love. That is exactly what they try to offer. They let the people vote!

What makes them better than the competition?

They don’t follow trends or let marketers fool our users—they showcase trends live as they happen and are very transparent. Many other services are cluttered with useless features that have nothing to do with shopping. They try to be everything for everyone while iliketotallyloveit.com comes in a clean, no-frills, no-brainer package. Our site is straight to the point and very easy to understand. It’s social voting for products.

In one sentence: iliketotallyloveit.com – Extraordinary propaganda for extraordinary products.

AddThis Social Bookmark Button
Permalink

1 Mio EUR Contest Finalists: MindMeister

Posted by Sebastian Wallroth in Web Services Contest, October 29th, 2008

We want to introduce the finalists of the 1 Million Euro zanox Web Services Contest 2008 to the public. They made it out of ca. 150 to be invited to present their business model at the Finale of the 1 Mio EUR zanox Web Services Contest 2008.

mindmeister.com

MindMeister – Online Collaborative Mind Mapping

MindMeister (http://www.mindmeister.com) is the market-leading collaborative online mind mapping and ideation tool. Launched in May 2007, the site
had attracted more than 140,000 subscribed users since going live and won several prestigious awards.
MindMeister is at the forefront of Office 2.0, a trend of moving productivity tools online, which was initiated by Google with its well-established “Docs” suite. Such applications take advantage of the
possibilities of the Internet to allow for real-time collaboration of globally distributed users, just through a standard web browser.

MindMeister achieves this for the world of mind mapping, a fast-growing structural thinking and brainstorming technique even better fitted for collaborative use. MindMeisters benefits comprise
easy of use, online and offline availability, real-time-collaboration, and sharing. It innovates the way you take notes, brainstorm, or plan your projects. MindMeister – a solely browser-based software service – takes out the hassle of maintaining software installs for usage in organizations like schools or enterprises.

With its latest v3 release MindMeister introduces the concept of WikiMaps (a super-easy collaboration mode), an animated History View, much improved Task-Management, and its own file format.

AddThis Social Bookmark Button
Permalink

Big Finale of the 1 Mio EUR zanox Web Services Contest 2008

Posted by Sebastian Wallroth in Events, Web Services Contest, October 28th, 2008

More than 200 entrepreneurs, venture capitalists, programmers, bloggers, and Web 2.0 geeks met at the zanox GAP campus and made the zanox Web Services Contest Finale Night of Innovations 2008 a huge event on Friday, October 24th, 2008. The zanox Monetization 2.0 team of Mario Brockmann, Hoon Cho, Francesco Votta, and Sebastian Wallroth along with the zanox Web Services Team of Thomas Nicolai, Daniel Neubauer, Mira Gressard, Frank Ittermann, and Harro Harten giving a big thank to the zanox Marketing team of Uwe Bormann, Alexandra Lilienthal, and David Fauck for organising this great final event of the Berlin Web Week 2008.

Over the day the finalists of the 1,000,000 Euro zanox Web Services Contest 2008 presented to the jury consisting of the professionals Andreas Thümmler (Corporate Finance Partners) , Dr. Cornelius Boersch and Sebastian Kübler (Mountain Partners), and Thomas Hessler and Jens Hewald (zanox). The finalist where (in sort of presenting time):


Japarking.com, Italy, TRIBOO S.P.A., http://www.japarking.com


Communipedia, Germany, ekaabo GmbH, http://www.communipedia.com/


Mindmeister.com, Germany, mindmeister GmbH, http://www.mindmeister.com


Kingtonez, Sverige, Gordon Media, http://www.kingtonez.com/


iliketotallyloveit, Germany, iliketotallyloveit GmbH, http://www.iliketotallyloveit.com/


Beschenkmich.de, Germany, beschenk mich GmbH, http://www.beschenkmich.de/


neodiffusion / buyit, France, NeoDiffusion, SAR, http://www.codepromo.com/bon_plan_reduction_bebe.html


servtag, Germany, Servtag GmbH, http://servtag.com/


webtrekk.de, Germany, Webtrekk GmbH, http://www.webtrekk.de/

At 8:30pm the exitingly awaited announcement of the winners was celebrated by the jury: japarking.com, servtag, and webtrekk.de got a big hand from the audience. Now they are heading close conversions with Corporate Fincance Partners and Mountain Partners.

Thanks to enough wine, soft drinks, and cocktails the faux pas with the beer – off 6 minutes after opening the bar – was not that big topic of conversation as the twitter wall suggests than Web 2.0 business and strategy and the cute soccer playing robots presented by the innovative team FUmanoids of the Free University Berlin.

Thanks to all guests for coming, we hope to see you again soon.

AddThis Social Bookmark Button
Permalink

Beschenkmich.de is on the right track

Posted by Sebastian Wallroth in Web Services Contest, October 15th, 2008

Yesterday Benjamin Rohé visited us at the zanox GAP Campus. Representing beschenkmich.de he took the opportunity to meet the zanox Monetization team and the zanox Web Services team. Good luck to Benjamin for the presentation at the zanox Web Services Contest Finale 2008!

AddThis Social Bookmark Button
Permalink

Shopotainment in close contact providing beer

Posted by Sebastian Wallroth in Announcement, October 15th, 2008

Shoptainment did it right. Inviting the zanox Monetization team to the FU Berlin profund Business & Beer get together helps to get immediate personal support. Finally they made it into the TOP 20 of the 1 Mio EUR zanox Web Services Contest 2008.

AddThis Social Bookmark Button
Permalink