You are here:  » Tradedoubler migrating to Products Open API


Tradedoubler migrating to Products Open API

Submitted by NiceGuyEddie on Thu, 2014-03-20 17:25 in

Hi,

I have been informed that Tradedoubler will be migrating all of their product feeds over to their new Products Open API: http://dev.tradedoubler.com/products/publisher/

Will Price tapestry be able to parse the new product feeds ok?

Cheers

Submitted by support on Thu, 2014-03-20 18:02

Hi Eddie,

No problem! Full product feeds are returned by the Unlimited Service of the API

http://dev.tradedoubler.com/products/publisher/#Unlimited_service

For each merchant, you need to know the feed ID, which is still accessed from the TradeDoubler affiliate interface via Tools > Product Feed, and your "PRODUCT" API token, also accessed from the TradeDoubler affiliate interface via Account > Manage Tokens.

The datafeed URL is then:

http://api.tradedoubler.com/1.0/productsUnlimited.xml;fid=YOUR_FEED_ID?token=YOUR_PRODUCT_API_TOKEN

The XML feed format auto-detects correctly as

xml|RESULT/PRODUCTS/PRODUCT/

And the mapping would then be as follows:

Product Name: NS2:NAME
Description: NS2:DESCRIPTION
Image URL: NS2:PRODUCTIMAGE
Buy URL: OFFERS/OFFER/NS2:PRODUCTURL
Price: OFFERS/OFFER/PRICEHISTORY/NS2:PRICE
Category: NS2:CATEGORIES/NS2:CATEGORY-NAME
Brand: NS2:BRAND

As there are many Price Tapestry users working with TradeDoubler feeds I will add these field names to the auto-selection array in config.advanced.php in the up coming 14/04A distribution. To add them to the auto-selection array for an existing installation, simply edit config.advanced.php and insert entries for each of the above into the appropriate $config_commonFields array, or if you're not sure of course, email me your existing config.advanced.php and I'll add them for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by NiceGuyEddie on Thu, 2014-03-20 18:24

Thanks for the reply David. Your explanation simplifies things a lot.