ebay url: cgi.ebay... or rover.ebay....?

Discussion in 'Commission Junction' started by Luke Jones, Aug 19, 2007.

  1. #1
    Hello,
    I'm using a script for returning ebay items for sale (test site)
    The item links are cgi.ebay...... instead of the usual rover.ebay......
    I need someone to confirm that I can use this url and still get credited with commission. The url has the aid and pid.
    Is anyone else using this cgi.ebay url?
     
    Luke Jones, Aug 19, 2007 IP
  2. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #2
    I'm 99% sure it has to go through rover first. If the script is open source, just correct the urls so they go through rover and urlencode the destination as the mpre param of the rover address.
     
    MrX, Aug 19, 2007 IP
  3. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello,
    Is it the cgi.ebay url that has to be urlencoded?
    I find this very difficult to understand!
    How do I do this?
     
    Luke Jones, Aug 19, 2007 IP
  4. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Do you mean something like this:
    http://rover.ebay.com/rover/1/711-1751-2978-331/1?AID=10370388&PID=2145562&mpre=http://cgi.ebay.com....
    PHP:
    etc
    ?
     
    Luke Jones, Aug 19, 2007 IP
  5. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Is it the cgi.ebay url that has to be urlencoded?

    Yes, where ever you're sending them to on ebay.

    I find this very difficult to understand!

    Ok, the general rover url looks like this:

    http://rover.ebay.com/rover/1/711-1751-2978-71/1?AID=12345&PID=12345&mpre=http://www.ebay.com
    Code (markup):
    Of course use the AID & PID from ebay's affiliate link builder tool thing.

    Now the mpre part needs to be urlencoded which is cake in php...
    urlencode($destinationurl);
    PHP:
    So you take whatever that urlencode function returns and assign that to the mpre value in the rover url. I'm assuming you understand php and this script is editable.
     
    MrX, Aug 19, 2007 IP
  6. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ok, I've done it and it's working.
    I'd appreciate it if you visited the test site I put in the first post, and checked that it's the correct url.

    Thanks.
     
    Luke Jones, Aug 19, 2007 IP
  7. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #7
    It looks like you're doing htmlspecialchars on the rover urls because I'm seeing & where there should be actual ampersands (&).
     
    MrX, Aug 19, 2007 IP
  8. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    strange, I can't see any &amp . They are just &
     
    Luke Jones, Aug 19, 2007 IP
  9. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #9
    You're not viewing the source, you're just hitting Properties or mousing over it.
     
    MrX, Aug 19, 2007 IP
  10. Luke Jones

    Luke Jones Peon

    Messages:
    427
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I've looked at the source too. It's changing & to %26
     
    Luke Jones, Aug 19, 2007 IP
  11. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #11
    &amp should work fine, it's also w3c valid.
     
    Kerosene, Aug 19, 2007 IP
  12. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #12
    It looks fine now...my FF is now showing it without the &. Looks like everything is correct.
     
    MrX, Aug 19, 2007 IP