Parsing xml ppc search feed to display from keyword.

Discussion in 'XML & RSS' started by affycons, Oct 10, 2007.

  1. #1
    I have a ppc provider that gives me an xml feed which is designed to be used like a search engine where you submit the terms in a search box and the xml query returns results that look like search results but are in fact ppc ads.

    What I want to do is bypass the search box and display the results based on a keyword for that page.

    The xml querry string looks something like this:
    domain/cgi-bin/feed?par=9999&query=<query>&count=<numResults>&start=<resultIndex>&useragent=<XXXX>&ip=<ipAddr>

    I can pm the exact xml url to anyone who wants to try to assist.:)
     
    affycons, Oct 10, 2007 IP
  2. affycons

    affycons Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Here's what the feed returns. I don't know how to properly assign the fields to display properly. Any help much appreciated :D.

    <?xml version="1.0" encoding="iso-8859-1" ?>
    - <cpcFeed>
    - <results>
    <count>1</count>
    - <listing>
    <cpc>0.0054</cpc>
    <description>eBay has great deals on college! At eBay you can buy or sell electronics, cars, clothing, apparel, collectibles, sporting goods, digital cameras and more. Click here and sign up today for FREE!</description>
    <displayurl>ebay.com</displayurl>
    <rank>1</rank>
    <title>Try your search for college at eBay</title>
    <url>http://67.201.36.14/cgi-bin/feedred?f=1&q=college&c=2668&p=2359&u=1-G4dWf9WhW66EoghAYOX&a=&i=NzEuMTk4LjIxOC4yMDg&m=MC4wMDkwfDAuMDA1NHwwLjAwMzg&des=aHR0cDovL3d3dy5zZWFyY2hmZWVkLmNvbS9yZC9DbGsuanNwP3M9ZHAmaz1jb2xsZWdlJnNvdXJjZT01MTImaWQxPTU1OTYyNSZpZDI9MzMzOCZpZDM9JmxuazI9cmhoRSUzRi4ud0JBeWVreHByJTI3QnRnZWVsJTI3cERCLkV4ZXlpQWh5JTI3enlFJTNFRWt4aENleHNxJTNEOTk5OUc2JTI5amVDcUR4bXElM0RNTTE0R00lMjlrRUVzcSUzREgyRyUyOWh0RWUlM0RHJTI5cERxZSUzREdMODQySEdHJTI5eGtoZSUzRDhMTTEyNCUyOXB4JTNETEdHTDhISDRHJTI5cURCa3NDJTNEZW9rdCUyN3BEQiUyOTVpZXh0JTNEOTkxR0hMNjhMSEhNTCUyM0hLJTIzSEsyJTI3MiUyNzIlMjcyJTIzSEslMjNIS3BEQUFlZ2UlMjlnZURoa2dzcSUzREw5MkglMjlxa2hlJTNERzIyNjkyOUwlMjlpeEElM0RyaGhFJTIzSEslMjNHYyUyM0djeERqZXglMjdlb2t0JTI3cERCJTIzR2N4RGpleCUyM0djOSUyM0djNjk5LTk2TTktRzE2OC02OSUyM0djOSUyM0hjS21kJTIzSGRNTDRIRzk2JTIzRzRQbWQlMjNIZEdMMjQ2RzklMjNHNFltZCUyM0hkOTk5OUc2JTIzRzRBRHAlMjNIZHJoaEUlMjNHTUhLJTIzR2MlMjNHY3lla3hwciUyN2Vva3QlMjdwREIlMjNHY3lla3hwciUyM0djeWVreHByJTI3cUFBJTIzR01IYzVpZXh0JTIzR01IZHBEQUFlZ2UlMjNHTUc0bHhxJTIzSGQ5JTIzR01HNHlEQ2V2aXlleCUyM0hkOSUyM0dNRzR5aCUyM0hkOSU3QzIlMjcyMjEyJnA9NzA0OTEmc2lkPTMxNDQ4MyZleD0xMTkyMzg2NDYwMzI4JnNuaWQ9MjAyJmFmZmlkPTI2Njg</url>
    </listing>
    <query>college</query>
    <start>1</start>
    </results>
    </cpcFeed>
     
    affycons, Oct 14, 2007 IP
  3. sparksflying

    sparksflying Peon

    Messages:
    1,066
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Im wondering if something like this would be of use to you?

    http://www DOT howtocreate.co DOT uk/tutorials/jsexamples/rss.html
     
    sparksflying, Oct 15, 2007 IP
  4. affycons

    affycons Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No, but what would be great is if one of the you DP programmers might kindly assist me in displaying this xml ppc ad feed.

    I was told the results did not validate, but it seems like it should be straightforward.

    Surely someone is familiar with this sort of thing.:cool:
     
    affycons, Oct 15, 2007 IP
  5. adrevol

    adrevol Active Member

    Messages:
    124
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #5
    adrevol, May 16, 2008 IP
  6. A.G

    A.G Well-Known Member

    Messages:
    2,510
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    150
    #6
    A.G, Dec 28, 2008 IP
  7. adrevol

    adrevol Active Member

    Messages:
    124
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #7
    adrevol, Mar 13, 2009 IP