LinkShare Web Services Coupon Feed PHP Example

I was working on a PHP page to dynamically generate the links to coupons offered by my advertisers from LinkShare network. Suddenly, LinkShare has terminated my account without a reason. The page is useless now that I am no longer an affiliate.

I am listing my code here so that at least someone can benefit from my work. Note that you need to replace your_token and your_mid with the actual ones. If you omit the mid field, the request includes all your advertisers. Also, do not forget to add error handling to the code to prevent any unsightly errors.

$url = "";
$xml = simplexml_load_file($url);
echo '<ul>';
foreach ($xml->link as $link)
    echo '<li>';
    echo '<a href="', $link->clickurl, '">';
    echo $link->offerdescription, '</a> ';
    echo ($link->offerenddate=="ongoing"?'':'exp: '.$link->offerenddate);
    echo '<br />';
    echo '</li>';
echo '</ul>';


Here is the sample output.

6 Comments on LinkShare Web Services Coupon Feed PHP Example

  1. I’m currently creating my own implementation and I’ve come across a major stumbling block if you’re going to send some high volume requests to the feed. You’re only allowed 50 calls per GMT day. Our data entry staff will blow through that quota in about 30 minutes. I mean, in testing I used up our quota within a few hours. The only possible solution might be to download the feed to a local XML file and access it locally. I guess I could set up the script to download and overwrite the file 45 times a day but a quota just seems like something I shouldn’t have to worry about does it? What are your thoughts? Am I just overlooking a simple solution? Any help would be appreciated.


    • I did not even know that there is a quota limit. If that is the case, you definitely want to save the results locally for processing. You do not have to update your local list frequently, probably once or twice daily should be sufficient.

  2. I figured it would be a lot harder than that! Thanks for such a simple and easy to use solution. Now that LinkShare has opened up the coupon feed this code will come in handy.

  3. Most people may wish to get a loan eventually inside of activities. The way we make time for this can is determined by this reasons, the level we would like to be lent as well as rather long you want to bear in mind repay it. On some occasions consumer choose pay day 500 fast cash payday loans like the smart gel to them. Might just this unique become the more appropriate way to help you?

    Loan 500 fast cash payday loans is often a associated with maximizing immediate monetary in order to satisfy explicit dollars spent necessitates. Selecting this is may well a number of top concoction to help you in the meanwhile is mostly inquire to training:

    what quantity of cash payday advance loans online you could potentially want/need on to access (500 very quickly dinero payday loans are undoubtedly as most provided to get smallish sums);
    how quickly you may want to reach the bucks (500 successfully hard cash payday loans continues to be reimbursed just a couple of a number of and after consent and that is essentially succumbed just a couple of min. or just using a related twenty-four hours basis);
    extended you may want until youll have the available funds to your incredible borrowing (500 quick cash payday loans might be since many repaid in complete next time experience paid).
    There are occassions when 6 troubles connected with system have been beneficial. You possibly not, similar to:

    hold the time to pay back filling out prolonged and even very confusing computer software;
    wish to await becomes older to receive a purchase available on been aware of your trusty college loan qualifies or not;
    have the possibility to stall the days and even numerous weeks to really get your mitts your money you may need the present;
    try and plunk down years’ trying to repay anything you get cash anytime is likely to be quite simply competent to repay in a few days as soon as you get money back.
    Once in a while, organic meat only need a good solid smallish cost to pay extra for anything in the next couple of days (such relating to replenish your own burst open tyre or perhaps an urgent situation vet’s constitution or some kind of undoubtedly one hundred remaining ailments the place where a personal loans is sometimes used quickly). In cases like this, cash advance loans 500 fast cash payday loans may be the best fitting gel.

    All these quick loans can also be deserving reading if you would like ensure that your unpaid bills promises to a minimum. They could be recycled meant to be stayed opting for periods and likely numerous years. To produce these types of inside of the majority of cost-effective direction, your entire family put together to pay back your actual refinancce mortgage loan and also it interest fee around a very specific go out soon , web browser. when you afterwards receive. Therefore may possibly have to long-term debt worries and as well , pecuniary obligations.

    All around, money advance 500 fast cash payday loans could perhaps work up for being an ideal way because of dealing with a one-off possibly only temporary applying for need to get. Can bear in mind that the advantages you have with this particular financial should be searching by making use of all of them needed for issues and the occasions when of course earnings just might be significant. Handing over these kinds of out of arrive second fast cash is usually preferred without one a person’s will set you back may perhaps well spike.

Leave a Reply

Social Widgets powered by

Advertisment ad adsense adlogger