» August 7, 2007 in
Notice: The ebay and youtube api have updated and this script is now here for educational purposes.

Further development will be made for members of MashupMoney.com including many additional apis. If you are interested in mashup affiliate sites join our mailing list at MashupMoney.com.

Here is how to build a Youtube Ebay Amazon Mashup Affiliate Site where I provide you with a video tutorial plus a free script to do the same for yourself. First check out the video:



Like I mentioned in the video the script may be coded very sloppy (it is), the script might be slow or not to your liking, however it's free and I'm releasing it under a creative commons license.

This means you can use the script, modify the script, add to the script etc, just give 45n5.com credit with a link back whenever you use the script. Here's the specific license the Youtube Ebay Amazon Mashup Affiliate Site Script uses:
Creative Commons License
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 License.

Because this script is FREE please don't expect any support from myself on the script. However because it's under a creative commons license, you can modify the script to make it work better for you (if need be), just give 45n5.com credit for the original by adding a link back.
Bonus (not that you needed one ;-) If you create a site with a script please tell me about it (mark @ 45n5.com) and I will link to it from this post. If you modify the script or make another version of it I'll link to that to.

And here's the script

(notice: there have been multiple changes since I originally posted the video. 1. A youtube developer id is no longer needed and the script is updated to use the google youtube api. 2. The default setup is for ebay users that use the commission junction affiliate program. 3. A site title is no longer needed because the homepage defaults to the first product page that is the first title.)

Download HowTo: Build A Youtube Ebay Amazon Mashup Affiliate Site In Under Ten Minutes

(ps. If you liked this post please take two seconds to add it to your favorite social site like digg, delicious, stumbleupon, etc. Thanks a bunch.)

Modifications (external sites and code):
Adsense Youtube Version (if you have video adsense units this might be the version for you)
A Php Version of the Mashup
EAYA Affiliate mashup Script

Example Sites:
http://recipes.filterthis.net/
http://www.sportygears.com/
http://www.sitecreationsoftware.com/
http://www.bbqdownunder.com/
www.immobiliari.tv (ebay only)

If you like this post then please consider subscribing to my full RSS feed. You can also Subscribe to 45n5 by Email and have new posts sent directly to your inbox.



Tyler says on August 7, 2007

You're awesome Mark, thanks for sharing!
webworld says on August 7, 2007

Awesome - thanks Mark.
Brandon says on August 7, 2007

Ok, it's cool. Are you making any money with this? Do you market/seo this sites or just see if they get traffic? I'd love to hear what kind of revenue pot'l one of these sites realistically has.
45n5 () says on August 7, 2007:
@thanks tyler and webworld

@brandon - i just made the script 3 days ago so your attempt at getting rich with the script is just as good as mine.
Brian says on August 7, 2007

Hey Mark,

Your script is posted at my site and just went to my mailing list as well (around 700 ish)

Brian
45n5 () says on August 7, 2007:
thanks a bunch brian, hopefully they can all make some money with it or save a bit of time.
Kidblogger :: Carl Ocab says on August 7, 2007

Hi Mark,

Just made a post about it in my blog, great script! Gotta use it in one of my sites.

Check it out: http://www.carlocab.com/how-to-make-your-own-ebay-amazon-affiliate-site-in-less-than-10-minutes/

Carl
Vlad says on August 7, 2007

Mark, great stuff man. Keep on going! This definitely deserves as plug from my humble blog. :)
TextadSearch says on August 7, 2007

I like code, I'll take a look at it.
45n5 () says on August 7, 2007:
@Kidblogger :: Carl Ocab - thanks a million for the link, glad you liked the script

@vlad - thanks (you remind me I've got a few questions for you)

@textadsearch - enjoy, just be gentle, i didn't clean it up or optimize it, just wanted it to work.
Amy Bass says on August 7, 2007

That is fantastic! I just wish I knew how to work the eBay API. I am an affiliate with them through Commission Junction, but that API stuff I don't understand.
FreelanceVenue says on August 8, 2007

Wow. I'll give this script a try when I get the chance. Thanks!
rich says on August 8, 2007

I try to put it in a subdomain but it does not works.
Could you give some advice.
best-health-products.com says on August 8, 2007

hi: new to this stuff and really looking forward to checking this out...unfortunately i can't see the video -- and all the source shows are ellipses .... thought maybe i could see a link and try pasting that but nothing there to paste...

is this a mac/safari compatibility thing or is it really not there anymore? cuz i would like to learn how to use the script.

much thanks! & cheers

BHP
rich says on August 8, 2007

error here
"Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
rubicon () says on August 8, 2007:
video not working, script using .htaccess = :(
Vlad says on August 8, 2007

"
@vlad - thanks (you remind me I've got a few questions for you)"

e-mail me
45n5 () says on August 8, 2007:
@all - if you getting errors I apologize however it's under creative commons license so you are free to modify the code to make it work for your particular setup, just keep the link back to me

"can't see video" - the video is a youtube video, check the youtube faq for how to view youtube videos.

@vlad - I'll get you the email shortly.
Tino says on August 9, 2007

Nice one, I've web 2.0'ed it for you. :-)
Niko Bellic says on August 9, 2007

HTAccess is a menace, but I'll mod it a bit and see if I can make a version without. Here's what you'll need (he forgot to mention):

- Hosting with PHP Support, and FSockOpen enabled, SafeMode Off, HTACCESS
- EBay, YouTube and Amazon API ID

That's it, cool script I guess. oh also the license he put it up on does not require a linkback, I think that's what he wants - but under the license he put it up on, it means you can use the script without having to put the link. I'd change the license to reflect this, so that he gets some credit for it.
45n5 () says on August 9, 2007:
@tino - thanks for the 2.0 love

@niko - thanks for adding the additional info however you are wrong about the license, you say "he put it up on does not require a linkback" which is wrong. I will quote you the part of the license which makes your statement false

"You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work)."

I specify if you use the work you must attribute it with a link back, plain and simple, no endorsement, nothing else, just a link back.

Please link back if you use or modify the script, it's the least you can do for me giving things away free.

thanks
Sha says on August 9, 2007

Nice work my friend. I'll give it a try tonight. May I know is it possible to put this script in a blog? Is there any special caution measure that need to be done when implementing it in a Wordpress blog?

Cheers!
Sha
45n5 () says on August 9, 2007:
@sha - I've never put it in a blog and wouldn't put it in a blog.

it's best used on it's own domain or subdomain

good luck

mark
Sha says on August 10, 2007

Thanks mark. Follow your tips and put it on my tested site that is hosted by dreamhost.com.

http://www.malaysiayoutube.com/

I cant get the youtube and ebay running.. Any advice on what might cause the problem? I'm not very good with the API/DEV ID so I just wondering is there any specific format for all this API key/DEV ID (Just to make sure that I had use the correct id)

Sorry again for all the troubles.

Cheers!
Sha
45n5 () says on August 10, 2007:
@sha - the demo is hosted at dreamhost and works like a charm, so I'm guessing the problem is with your developer keys

you find your youtube devid here

http://www.youtube.com/my_profile_dev

ebay you get from your account page
Sha says on August 10, 2007

Thanks mark. I manage to get the ebay and amazon running. However still no luck with youtube at the same above url of my tested site.

I go to the youtube dev link that you gave me and they give me an id (something with 12 character that look like this.. zXPhJjGKt9o). I assume this is my youtube devid and I use it on my site. Unfortunately it didnt work. I recall in the same youtube developer link that you gave me, there is a field called 'Secret' that I left blank because I didnt know what to put. Could this be the reason?

Secret:
for read/write API calls)

Sorry again for troubling you on this weekend. This is my first time using Youtube API actually so I think I might have confuse with the setting.

Cheers!
Sha
Alex says on August 10, 2007

Fatal error: Cannot instantiate non-existent class: simplexmlelement in ebaysearch.php on line 23

Why? :(

Thanks
45n5 () says on August 11, 2007:
@alex - you need php 5 then

@Sha - I'm not sure why your youtube key isn't working, sorry I can't help there but I'm drawing a blank,

i added your link to the original post
Alex says on August 11, 2007

:( nooooooo... i can't use php 5.

Thanks a lor for support 45n5 :)

Good work.
Joel says on August 11, 2007

Mark you are a genious,

I was directed to your article through another blog, and I must say that this is completely amazing. I am new to the whole website development arena, but your instructions were simple enough to follow. I seem to be having the same problems as Sha. I get amazon and ebay, but no youtube. I put in my youtube developer ID but still no youtube. Also, the site gets named after the first line in the products Text File.

Here is the link to the site I put together with your script: http://www.sitecreationsoftware.com/
Any idea why the youtube part is not working.

Thanks, Joel
koen () says on August 11, 2007:
There is this line in inc/ebaysearch, which has gotten a bug...

$apicall = "http://www.youtube.com/api2_rest?method=youtube.videos.list_by_tag&dev_id=" . $youtubedevid . "&tag=$theproductencoded&page=1&per_page=1";

Not that I use the &tag= while there originally was no &tag= :)

You can change the title in inc/template.php,
<?php echo str_replace("-"," ",ucwords($sitetitle));?> just rename it or whatever !

Good luck
koen () says on August 11, 2007:
I meant Note, instead of Not.

Mark, maybe you can fix it in the original download, the youtube bug :)
Joel says on August 11, 2007

Thanks Koen,

I added the &tag and now it works perfectly. You're the man.

Joel
45n5 () says on August 11, 2007:
thanks for the kind words joel and glad you got it working, I added a link to your website in the original post

@koen -excellent find, you have got some great skills to hunt down something like that, i uploaded a new version.

thanks all
Sha says on August 11, 2007

Hi again,

Support from dreamhost told me that the issue is with ttheir server setting. The problem is that we have allow_url_fopen disabled by default for security reasons. To enable this simply refer to the following Wiki
article:

http://wiki.dreamhost.com/Allow_url_fopen

Err.. If its not troubling, may i know which code to edit? or where to start? I only need to get the youtube mashing to running and I'm all ready to go.

Cheers!
Sha
45n5 () says on August 11, 2007:
@sha - the script doesn't use allow_url_fopen it uses curl.

I updated the script so if you download it again it shold work now

so you don't have to do all your settings again the only file you need to reupload to your server is

/inc/ebaysearch.php (it contains all apis)

so just upload that one new file and it should work now

fingers crossed, good luck

mark
Sha says on August 11, 2007

Yeayy!! Finally its alive.. Its alive! Thanks Mark. You had been very helpful!

Cheers!
sha
45n5 () says on August 12, 2007:
congrats sha, now we need to figure out how it can make you some money ;-)
Vahsi000 says on August 13, 2007

Hi mark, thank you for this great script. I was wondering, the amazon content that develops, can it be read by search engines? From what I remember using amazon products is that the use javascript. Anyways thanks again for this great script.
45n5 () says on August 13, 2007:
your welcome vahsi000, and yes google can read and index every word of the amazon content from this script.
bib says on August 14, 2007

hello,
i have few questions:
1. i inserted ebay requesttoken and my pid but i can see only the keyword links on the upper side of the page, the ebay content doesn't appear at all.
(i just wanted to test ebay nothing else, amazon or youtube)
2. do you have any suggestions how can i force the java script supplied by ebay for their affiliates, to appear as html friendly content in a html webpage?
this script it is formatted on ebay website based on few terms like dimensions/with or without images/keyword for which will show the content and so on...).
45n5 () says on August 14, 2007:
@bib - if ebay isn't showing it is becuase you have a problem with your tokens, you don't need to enter your pid (you do that at ebay) rather your ebay username

2. not sure the answer as I only see plain text returned for me
bib says on August 15, 2007

hello and many tks for the kind reply.
i want to clarify my previous post:
1. i thought there should be inserted my pid, i'll try again!

2. i'm talking about the javascripts supplied by the ebay affiliate program, you just copy and paste them in .html page and there you have it...custom made ebay listings based on the keyword introduced on ebay affiliate site when you configure the input info like i mentioned before: listing dimensions/keyword for which the listing will be generated and so on...
here is one javascript example i was talking about:
==============================


BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK -->
sript language="JavaScript" Type="text/javascript" src="http://ilapi.ebay.com/ws/eBayISAPI.dll?EKServer&ai=ifuv%7byvsrrz&bdrcolor=666666&cid=0&eksize=1&encode=ISO-8859-1&endcolor=FF0000&endtime=y&fbgcolor=EFEFEF&fntcolor=000000&fs=0&hdrcolor=FFFFCC&hdrimage=3&hdrsrch=n&img=y&lnkcolor=0000FF&logo=5&num=50&numbid=y&paypal=n&popup=n&prvd=3&r0=4&shipcost=n&siteid=77&sort=MetaEndSort&sortby=endtime&sortdir=asc&srchdesc=n&tbgcolor=FFFFFF&tlecolor=6666FF&tlefs=0&tlfcolor=FFFFFF&width=570&track=194000&query=Antiquit%E4ten&watchcat=353"> /script



======================
this is for ebay.de and the keyword is for "antiquitaten" (antiquities)
i want to use this script in a more seo way and the listing content to actually appear in the .html webpage instead of this nonindexing javascript...

should i modify .htaccess ?
any suggestions?

brgds

45n5 () says on August 15, 2007:
hey bib,

I understand what you want now and the answer, as far as i understand, is no.

when you use javascript that is what appears in your source code when a googlebot reads the page, the other text is pulled in.

to get what you want you need to use the api or rss feeds for instance.
koen () says on August 15, 2007:
Some search engines could partly understand javascript I thought?? For instance, the dev toolbar for Firefox can display the generated code, by javascript.
Not sure though, about the SE's.
45n5 () says on August 15, 2007:
they index the actual javascipt code and not what text it pulls in, correct me if I'm wrong

you are right they can probably see it all, I'm just noting what shows up in the index.
Cindy says on August 15, 2007

I'm getting the following error:

"Not Found
The requested URL /index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an Error Document to handle the request."

When I de-activate .htaccess it works. Anybody else having this problem and if so, have you got it working? Also, I'm running this script in a directory. Does that affect it?

-Cindy
45n5 () says on August 15, 2007:
yes cindy, the program should be in the root directory, not a subfolder, or in the root of a subdomain
cindy () says on August 15, 2007:
OK, I moved the script to a different domain and set it up in the root directory. Now the initial index page comes up and everything is working but when I click on any of the menu links I get the same error as before.

I wish I knew more about this rewrite stuff..

Cindy
Rock says on August 15, 2007

take away the /
cindy () says on August 15, 2007:
I took the / away in the .htaccess and that didn't work so I put it back in. Then I took the / away in stufftochange.php and that didn't work either.

-Cindy
Bailey Cross says on August 15, 2007

Great video, thanks sharing. I'm wondering about mashing up your code up with google base.

As for digg, I would humbly suggest that you add a "digg this" button near the top of our post to make it easy for people to digg or add to other sites.

bib says on August 16, 2007

hello again,
i have tested again using requestoken key and userid,
it works fine. (see: www.immobiliari.tv )

another question would be, if it is possible to insert the ebay affiliate PID for mashup script?
brgds


Robert MacEwan says on August 16, 2007

Thanks for sharing.
45n5 () says on August 16, 2007:
@cindy - I'm sorry but I'm not sure what it could be, it sounds like your server is having a problem with the htaccess file.

@bailey - thanks for the tip, I've been looking into http://alexking.org/projects/wordpress but haven't gotten there yet

@bib - you enter your ebay PID in the account panel of your ebay affiliate program

@all - thanks for the comments ;-)
45n5 () says on August 16, 2007:
@bib I added your site www.immobiliari.tv to the example sites

also, if you are only doing ebay you might want to play with the layout

go to inc/style.css and change this

.rightside {display:inline;float:right;width:400px;margin-right:30px}

to this

.rightside {display:inline;float:right;width:800px;margin-right:30px}

(or whatever looks good for you)
Paul says on August 16, 2007

So is there any way to mod the script so that it works in a folder ( http://www.udiy.org/everythingDMB for example).

I tried to make the site in that folder, but it just links back to my main page at udiy.org
koen () says on August 16, 2007:
You will have to edit any existing links, and the .htaccess. It currently redirects to the root (/index.php).
You are free to do it, it's published under creative commons license.
45n5 () says on August 16, 2007:
@paul - like koen said, it can be done but it's up to you to do it.

we made the first one free, future mods are up to the community to program
Paul says on August 16, 2007

@45n5 - I realized that, I thought maybe someone had come up with something. Well, too bad, I don't have the time to mess around with that. I'll put it on my to do list. :(

BTW, that's a cool script, thanks for sharing it with us.
45n5 () says on August 16, 2007:
no problem paul, nobody has done it yet so it's all you, I'm like you however if I were to do it then it would be somewhere on a long todo list
Luke Jones says on August 19, 2007

Hello,
I have a question, which I would appreciate your help with:
Usually the ebay item link for an affiliate is something like:
http://rover.ebay.com/rover/1/711-37018-2978-0/1?AID=10420677&PID=2154042&loc=http%3A%2F%2Fcgi.ebay.com%2FCharming-Long-Stylish-Straight-Hair-Wig-Gift-8TT26_W0QQitemZ140147248075QQcmdZViewItemQQssPageNameZRSS%3AB%3ASRCH%3AUS%3A101
With you script, the item link is:
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=130144489343&ih=003&category=15266&ssPageName=WDVW&rd=1
This url does not have the affiliates AID or PID.
Do you get credited with the commission?

Thanks for your time.

Luke Jones
45n5 () says on August 19, 2007:
@luke - thanks for the info, I built the code following the ebay api docs to the T.

none of their examples show using a pid, like this one

http://developer.ebay.com/DevZone/XML/docs/HowTo/PHP_REST/searchGS/searchGS_tut.html

however your post makes much sense, and i don't have ebay on channels so i don't know for sure. let me look into it.

cj.com is down for me at the moment so I can't do anything

in the meantime you can edit the file inc/ebaysearch.php to make things do want you want, i'll report back later.
45n5 () says on August 19, 2007:
@luke - i updated the script to show outbound links to ebay with pid and aid.

where can I find my aid #? I searched the ebay docs and turn up nothing.
Luke Jones says on August 19, 2007

Hello,
Are you sure that cgi.ebay... is the correct url? Is it not supposed to be rover.ebay....?
Do you know anyone who has received commission from a sale using your script?
If not, how can we test this?
I got my aid from getting a link sent to me from CJ.
45n5 () says on August 19, 2007:
I know of amazon commisions but no ebay ones

I don't choose what base url to use for ebay, they do, their api returns it

$link = $searchitem->Item->ListingDetails->ViewItemURL;

if you get it figured out let me know and I'll update accordingly
Luke Jones says on August 19, 2007

Yes, I noticed this. That's why adding the rover. part before the $link doesn't work.
It's strange because all the other scripts that I've seen, that use ebay's api, return the rover.ebay link.
Luke Jones says on August 19, 2007

Is there an item on ebay which is very cheap, like $0.10 for example? If so, are you willing to do a test to see if the commission is being credited?
Let me know if you're interested, and I'll give you my test url, with the cheap product on it, for you to buy it through my site.
45n5 () says on August 19, 2007:
"It's strange because all the other scripts that I've seen, that use ebay's api, return the rover.ebay link."

if you can provide one of those scripts I can take a look and see what I can do

or you can hack it, it's under creative commons, and show us how it's done

as for the .10 cents, I'd rather experiment with working code you have then start purchasing stuff just yet, I'm pretty busy this evening.
bib says on August 20, 2007

hello again,
if you need one of those scripts, pls give me one email and i will send
one to you...
brgds
45n5 () says on August 20, 2007:
@bib - my email is mark @ 45n5.com

however I'm leaving on vacation to get married in 3 days so i won't have time to work on this script probably until sometime after I get back

I mentioned when I made it that it was sloppy and under creative commons so you all could do what you want with it, just credit me with the original, hopefully somebody takes some initiative and makes the fix (if needed)

;-)
Luke Jones says on August 21, 2007

Congratulations on your wedding!

Bib, Could you send me a copy of the script you have?
My email is zealc@msn.com

Luke
45n5 () says on October 21, 2007:
to get affiliate commsions from ebay you will need to add a few more variables to the call. They are based on what affiliate network you are with, here is how to do it.

http://developer.ebay.com/DevZone/Shopping/docs/Concepts/ShoppingAPI_FormatOverview.html#AffiliateURLParameters

mo says on October 25, 2007

excuse the newbie question but what exactly is the
'pid' & 'aid'? im assuming that the pid= publisher id? and the aid is the affid?
newbie says on October 25, 2007

i tried this and this is all i got:
Warning: main(inc/ebaysearch.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/index.php on line 38

Warning: main(inc/ebaysearch.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/index.php on line 38

Warning: main(inc/ebaysearch.php) [function.main]: failed to open stream: No such file or directory in //home/xxxx/public_html/xxxx/index.php on line 38

Warning: main() [function.include]: Failed opening 'inc/ebaysearch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/xxxx/index.php on line 38

Warning: main(inc/template.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/index.php on line 50

Warning: main(inc/template.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/index.php on line 50

Warning: main(inc/template.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/xxxx/index.php on line 50

Warning: main() [function.include]: Failed opening 'inc/template.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/public_html/xxxx/index.php on line 50


can someone help me to get this working?
45n5 () says on October 26, 2007:
@all - I updated the script today and it is now a CJ.com affiliate version for ebay.

youtube and amazon are exactly the same however the download will default to a setup for cj.com publishers (the majority of you ;-).

@mo - Redownload and you should be fine.

@newbie - those errors say the files are missing.
newbie says on October 26, 2007

the error saying that the files are missing? i followed your video t othe t. i made all the changes to the file that needed my api keys and stuff then i uploaded all the files to my server. am i not uploading it to the correct folder or somethin? i uploaded all the file into the public_html folder on my server. any suggestions?
45n5 () says on October 26, 2007:
@newbie - I never gave any instructions on how to upload files to your host in the video or post. If you are having trouble uploading the files the best route to go would be to contact your host.
Wayne says on October 27, 2007

Heres how I added ebay affiliates, does this look right?

Around line 73 I added:

$trackingpartnercode= '1'; //1 is for CJ
$trackingid = 'xxxxxxx'; //CJ PID
$affiliateuserid = 'xxxxxxx'; //CJ SID

and replaced the x's with my CJ pid and sid.

Then I changed this line to the following

// Construct the GetSearchResults REST call
$apicall = "http://rest.api.ebay.com/restapi?CallName=GetSearchResults&RequestToken=" . $RequestToken . "&RequestUserId=" . $RequestUserId . "&SiteId=$SiteId&Version=$Version&Query=$SafeQuery&EntriesPerPage=$EntriesPerPage&PageNumber=$PageNumber&UnifiedInput=1$endtimefrom&trackingpartnercode=$trackingpartnercode&trackingid=$trackingid&affiliateuserid=$affiliateuserid";

Tested on spiritualgurus.blissofbeing.com seems to be working fine.
Wayne says on October 27, 2007

Wow, looks like you did it while I was doing it, and beat me to posting. On the same wavelength there... :) nevermind my earlier post.
45n5 () says on October 27, 2007:
@wayne - looks good to me and nice guide on how to update the older version ;-)

your ebay links now say "rover" which is what the comments above said they should look like... good stuff
cirereyes says on October 28, 2007

Hi: I'm not a programmer,I just want to learn creating money making sites and tried this mashup script, downloaded it last friday and took me 2 hours to read and learn about the required fields to change, registering to youtube, amazon and ebay. after all the effort heres the result http://computernetwork.110mb.com/. I only have one problem, the amazon part did not appear, I chose PCHardware for the search index. What went wrong? is it because I tried it on a free site or I missed something.

Thanks
Robert C says on October 29, 2007

Hey 45n5!

Love you video about the "mash up" script, but I when I tried to come back to your video about it - I got this message..

"We're sorry, this video is no longer available"..

Wha Happen? I thought it was just my browser, but I passed it along to a friend of mine, and he could not access it either.

Hope you get it back up and running..

Robert C...
Robert C. says on October 29, 2007

Sorry 45n5..

It must have been just server time out. It is working now.

Sorry to waste comment space!

Robert C.
45n5 () says on October 30, 2007:
no problem robert c. enjoy the script.
Chris says on October 30, 2007

Hello, I am the owner of the :
http://www.malaysiayoutube.com/ but unfortunately it is not forwarding to the right website to:www.sportygears.com


Please visit www.sportygears.com if you want to see how Mark's script work.

Thanks to Mark.

Chris
Jason L says on October 31, 2007

I'm having the same issue. Amazon results do not display. Everything else appears to work fine.
Empress says on October 31, 2007

Since I'm still new to coding things up I'm getting this error:

Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/awesome/public_html/inc/ebaysearch.php on line 22

- looks like same sort of error as Alex had...My webhost says it runs PHP 5.2.0

Any suggestions would be greatly appreciated.
45n5 () says on October 31, 2007:
@empress - i would ask again, simplexmlelement is something found in php5 and it is saying it can't find it

some hosts say they have php5 but don't have it by default. for instance resellerzoom has php4+php5 on their servers but defaults to php4 unless you email them.

I would ask them why your script can't use or find simplexmlelement
Empress says on October 31, 2007

Awesome, thanks Mark I'm going to email them now :)
chris says on October 31, 2007

Yo,

If you like www.sportygears.com
I don't mind sending you the scripts. I got it working.

thanks to Mark

Chris
cirereyes says on November 2, 2007

Hi Chris, I'd like to have a copy of the script. can you please send it to my e-mail add: cirereyes@gmail.com

thanx
WaveMaster says on November 3, 2007

Thank you for the script It kicks Axx !

Lots of potential to create niche mini-sites
that make $$.

I have been playing around with it on several domains.

Heres one of my little demo versions of a website.

http://www.thesolarman.net/


I added the new coding that Wayne posted Thank you!!!!


Cj was not showing Ebay clicks from the
site until update.




cirereyes says on November 4, 2007

Hi,

Thank you very much Chris for the script, amazon now appears on my site. The problem with the scipt that I editted is my wrong amazon id.

and I forgot to thank Mark for this great script. Thank you very much. just one question, how can I put a link back to 45n5.com? here's the site for this mashup script: http://computernetwork.110mb.com/

thanks
Colin says on November 4, 2007

Hey Chris,

I would greatly appreciate a copy of the script.

chris_deals@yahoo.com

Thanks!
tyshcr () says on November 4, 2007:
I just uploaded everything and tried changing the 'stufftochange', but I keep getting an error:

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/weeniero/www/mashup/inc/ebaysearch.php on line 32


So the error is in /inc/ebaysearch.php on line 32 but it doesn't look like anything is blatantly wrong. I'm guessing it's something with the YouTube API, which I don't know much about.

Anyone else experience this or have quick fix?

Thanks
-Chris
45n5 () says on November 4, 2007:
@tyshcr - i think that errors come from an old version of PHP. the script requires PHP5. do you have that on your server?
tyshcr () says on November 5, 2007:
@ Mark - You nailed it. Thanks so much. My host has PHP 4 and 5, but PHP 4 is the default right now.

Neil Duckett says on November 5, 2007

Thanks for this Mark. I have a nice that was gong well but now i haven`t got the time to put into it so i will give this a crack!
skiper says on November 5, 2007

This scripts has a lot of potential.
Very useful in creating mini niche sites.

Thanks Mark

Cris, can you send me the script as well
skiper @ kablogs dot com

Thanks
Mike says on November 5, 2007

Hi Mark, nice script!!!! ive been playing with it (the script!! LOL) for a little bit.
Sorry if this as been asked already, or if its obvious...but, can you add adsense to this mashsites?
and if i understand correctly, pre-requirements for this are:

Amazon aff. account
ebay aff. account
Hosting with PHP v5
??
an official pre-requierement list would be cool to get people started :D

thanks again
45n5 () says on November 5, 2007:
you're welcome all ;-)

@Mike - the only thing required is a modern host, ie one with php5 installed.

if you don't have an amazon account then the amazon data won't show up. same for ebay. if you put in the details then they show data.

youtube no longer requires a developer id so youtube will always display.

yes you can include adsense in you layouts, just edit the template. there is also a version listed int eh intiail post that will turn your youtbue into adsense youtube.

hope that helps ;-)
Chris says on November 5, 2007

Hello All,

#1: Make sure you have your correct amazon id and ebay id

#2 Hosting with PHP v5

That it..it should be good to go

Thank you all...
The best thing is that the template is so portable


Any ideas when Microsoft and Yahoo coming up with their Adsense for publishers? I am sick and tired of Google inactivating my google account.

Chris
www.SportyGears.com
www.Houseyoutube.com
www.WeddingYoutube.com
45n5 () says on November 5, 2007:
@chris - yahoo already has their publisher system called ypn

http://publisher.yahoo.com/

"The best thing is that the template is so portable"

amen - no database is a HUGE plus in my opinion for any sitebuilding script. if you wanted to sell one of these sites you simply zip it up and send it via an email ;-)
Chris says on November 5, 2007

This is the response from yahoo:


Thank you for applying for the Yahoo! Publisher Network beta program. It is currently in beta and we are accepting a very limited number of new publishers, but we will let you know when we launch to the general public or if we are able to invite you to join the beta before then


thanks

Chris says on November 5, 2007

Mark,

Where can I get the hot script that you use before someone send the comment to avoid spams? Would appreciate very much if send the scrip to me....
The script would greatly help very much

thanks
chrisgoh11 (at)yahoo .com



"Many unscrupulous people create programs to spam the comments of websites.

By typing the contents of an image into the box, something difficult for a program to do, you aid in helping keep the blogosphere spam free.

Logging into the blog will remove the picture question.

Thanks for your patience and helping to make our site great!
"Enter the numbers from the picture into the box. What is this?"
Steve says on November 6, 2007

Can you please help me out I am getting a weird error.

I am hosting with MEDIATEMPLE.net

I turned PHP5 on specifically for this domian.

Warning: SimpleXMLElement::__construct() [function.SimpleXMLElement---construct]:


====
http://www.easyjetcharters.com
Steve says on November 6, 2007

Ok i fixed my problem...

It was on the AMAZON SEARCH LINE.

I was searching for "TRAVEL ACCESSORIES"

How can i search for a word with a space?
45n5 () says on November 6, 2007:
@steve I'm still seeing XML errors on your site

"Cannot instantiate non-existent class: simplexmlelement"

which means your version of PHP is still outdated. sometimes it takes ahwile for the servers to refresh after updating the php version.
vasa says on November 6, 2007

chris can you send me the script as well? i cant get the ebay to show. thanks. please send it to tupevasa@yahoo.com
Bodoo says on November 7, 2007

Hello,

Thanks Mark for the great script, surely its good for niche sites and i am going to try it.

Chris thats good site at sportygears.com I would like a copy too, send to bjubere@yahoo.com
Gutschein says on November 8, 2007

thx, also for the video. ;-)
s.Oliver says on November 8, 2007

hmm that's weird that script is using NO database, but sportygears.com is loading way faster than my site.

@chris did you somehow improve the loading speed? I'd appreciate any input on that

thanks,
oliver

@mark thanks for the script, keep up the good work!
your videos are awesome :D
MnyMkr says on November 9, 2007

Man, thanks for this great script. My problem is I can't get the amazon thing to work.

Where is the dev ID located? I have tried the one from my control panel at developers.amazonwebservices.com and can't get it to work

thanks
solvetheproblem () says on November 9, 2007:
Hello, all;

The potential here is infinite. I'm trying to get a site up ASAP. Can anyone tell me if the HTAccess requirement is still a part of this script?

Thanks! This is a great script Mark.

Solvetheproblem
45n5 () says on November 9, 2007:
"Can anyone tell me if the HTAccess requirement is still a part of this script?"

yes it still requires .htaccess
solvetheproblem () says on November 9, 2007:
Thanks 45n5. I read an earlier post that someone was trying to find a way around HTAccess so I thought Id ask. This means that you need a LINUX hosted website to work with HTAccess. Am I right?

Thanks.
Solvetheproblem
Bodoo says on November 10, 2007

Hi Chris,
I asked that you send me the script at bjubere@yahoo.com but have not received it yet, anything?

Bodoo
tyshcr () says on November 16, 2007:
I got the script working thanks - but I'm confused by the eBay / CJ.com affiliate program.

Do I have to add a new website to my CJ account everytime that I create a new website that uses the eBay API?

Do I need a new PID for every website I create?

What is the PID? Is there anyway to check if my links are working properly?

45n5 () says on November 16, 2007:
you can use just one PID or you can do one for each site, it's up to you.
Don says on November 16, 2007

@Mark, great script, thanks for sharing!

@Chris - can you email me a copy of your script to simpleblogmail @ yahoo.com?

Don
tyshcr () says on November 17, 2007:
Don - I'm using the exact script that Mark has uploaded on the site here. Just changed the 'stufftochange.php' file.


The issue for me was getting all the developer ids, etc and making sure my host was using php5.
45n5 () says on November 17, 2007:
thanks tyshcr - yep the download above is all you need
Albert says on November 18, 2007

Helo may i know where to get all these?
$RequestToken = 'abcdefg'; // ebay REST token, needed with REST calls
$trackingid="1234567"; //your ebay pid
$trackingpartnercode="1"; //what network
$affiliateuserid="abcdefg
alfaprima () says on November 19, 2007:
Hi,
Excellent script, thanks!
I have set up one site at this time:
http://www.digitalphotoartclub.com and it's fantastic.

It took some effort to change the script to work with php 4, but I got it..
if someone want a copy of this script adapted for PHP4, I'll post the url here (I need to prepare the zip for distribution).

Again, thanks for this great script.

JP
carl says on November 20, 2007

I am with Albert. I can't figure out the ebay thing there. what is the pid? what is rest token?
45n5 () says on November 20, 2007:
the pid is your cj affiliate id

the rest token is what you get to identify you when you sign up for ebay web services
alfaprima () says on November 21, 2007:
Hi!
I have posted a PHP4 version on my blog:
http://ceundies.blogspot.com/2007/11/howto-build-youtube-ebay-amazon-mashup.html

Thanks again,
alfaprima
45n5 () says on November 21, 2007:
cool alfaprima, I linked it from the post
Greg says on November 25, 2007

I can not get the auction ifnormation to show up and I am using the Php 4 version

alfaprima () says on November 25, 2007:
@Greg:
Most of the time the problem is that codes are not right.
One trick that you can do to a quick test is to use the domit test page that is at:
http://YourDoMain/domit/test_domit/testing_domit.php
Just enter your eBay URL and push "Parse URL"

To make the url visible on your page, go to the the inc/ebaysearch.php file, locate this lines:

// Check to see if the XML response was loaded, else print an error
$ebayquery=getEbayApiCall($theproduct);

and then Add:
$contentcenter.=$ebayquery;

Now you can cut and paste the ebay query Url from your page.

Regards,
JP
drev says on November 28, 2007

First of all, thanks for this awesome mashup!

I've got YouTube, eBay, and Amazon all working, but I'm still having some troubles.

First - The style.css file doesn't seem to be accessed. Everything is listed in black Times New Roman text, vertically down the page. Where is style.css supposed to be accessed from?

Second - I'm having the same problem as Cindy up there - Whenever I click on one of the links at the top that would take you to another keyword's page, I get a 404 error.

Any and all help is greatly appreciated!
45n5 () says on November 28, 2007:
@drev - sounds like you didn't upload the .htaccess or it's not enabled on your server
drev says on November 28, 2007

I've uploaded the .htaccess file, and I'm almost certain my server has them enabled because I think my WordPress installation uses a .htaccess file.

Any idea why my style.css file is being ignored?
soliver says on November 29, 2007

Hi guys,

Im trying to setup a few sites with that script but I'm still not sure if I made everything right..
I can see ebay auctions and amazon ads but when I visit my cj account or amazon affiliate account there are 000 clicks although I 'm 100% sure that some people clicked on it. (very sure)

Will the tracking code show us clicks on our ads ?
I have put everything in there .. tracking id, etc etc

Thanks,
Oliver

SeanO () says on December 5, 2007:
Must be the geek in me, but I've been having quite a bit of fun the last few hours cleaning this script up and massaging it so I can be a little more, well, attractively templated. Definitely has me interested in wanting to learn more on the basics of API scripting as well.

For example, until I get around to tweaking out a BANS site for this domain, I'm pretty pleased with the modifications I used on UgglyStuff.com. Especially compared to the amazingly craptacular page your average parking service serves up.

Thanks for the start Mark!
45n5 () says on December 5, 2007:
@UgglyStuff.com - holy cow that is a nice looking store.

yeah, i love apis. once you play with one or two they are all basically the same thing.
Bud says on December 5, 2007

I keep getting an error after trying to access the site. any ideas on what it could be? Thanks for any help.

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/bud/public_html/bargaingolfstore/inc/ebaysearch.php on line 32
Bill Futreal says on December 12, 2007

Hey Mark - Another great simple script (I already use 19 Pages on a few sites). I set it up on a subdomain and once you get all the right numbers from Amazon and Ebay, it works like a charm! Thanks for putting it out there. I put my first site up from this script at http://deerstands.tfboutique.com/
Sharan says on December 14, 2007

I love the idea of the script. First downloaded it a few weeks ago and it seemed too complicated for me. Started working again last night to get the developer's id for Amazon and eBay. Thought I had everything correct and uploaded the files, but there is no eBay or Amazon showing up.

I get the youtube videos just fine and they change when you click on the menu items, but nothing else except for adsense (which I change to my code).

Any suggestions or help would be greatly appreciated. I think I can make changes to the css file once I get the other stuff up and running.

As you can tell I'm not very techie, but would love for this to work.

Sharan
Sharan says on December 14, 2007

OK, I got the eBay to work. Made the same mistake lots of others probably made - I used the REST token form the sandbox, but when I used the token from Production key it worked.

Now, if I can just find out what mistake I am making with Amazon everything should be ok. Then I can try and make my site a little more unique.

If anybody has any ideas to offer, I'd appreciate it.

Sharan
Mike says on December 18, 2007

Hi everyone!

Can anyone recommend a CHEAP PHP5 hosting? I have built a site with the mashscript and want to try it out :D

1 more question, is there anyway to add "adsense ads" to this script? I know you can add youtube adsense, but the typical adsense adds? has anyone done it?

thanks!
45n5 () says on December 18, 2007:
@mike - try deamhost with this coupon code for php5 hosting

http://www.45n5.com/permalink/dreamhost-max-discount-promo-code.html

you can ad adsense real easy by just pasting it into the template file.
Scotch says on December 30, 2007

Hi - looks like a great script that I'd love to try - but just wondering how the end result fits with YouTube's Terms of Use, specially iro AdSense ..."Prohibited commercial uses include use of the Website or its related services (such as the Embeddable Player), for the primary purpose of gaining advertising or subscription revenue". There's no mention of affiliate revenue, but looks like ad revenue is not allowed.

I bought some software that aggregates YouTube videos, hoping I could earn AdSense revenue, but have not gone ahead as YouTube say in their FAQ: "We don't want to discourage you from putting the occasional YouTube video in your blog to comment on it or show your readers a video you like, even if you have general purpose ads somewhere on your blog. We will, however, enforce our Terms of Use against, say, a website that does nothing more than aggregate a bunch of embedded YouTube videos and intentionally tries to generate ad revenue from them."

Again, the emphasis is on generating ad revenue, nothing about affiliate sales. Hoping that someone with experience of the YouTube API can give some advice on this.

Thanks,
Scotch
Mega Man says on December 31, 2007

Great job Mark! What brand of digicam did you use to record this neat video?
Mike says on January 2, 2008

hmm what scotch says is quite worrying, i have a site with some youtube videos and adsense, tehy auto generate based on keyword....i guess i am in trouble, i hope its ok with the mashupscript..

awaiting comments from the experts...
welby says on January 2, 2008

Need help with creating the "amazon developer id". Signed up with amazon web services but I'm not sure how to create the developer id. I was able to create all the other api ids successfully. This is the last one. Anyone mind helping? Looking forward to get my first mashup running. Thanks. welby
Sharan says on January 2, 2008

Welby,

The "Amazon Developer Id" is now called "Access Key Id". You should have been given one when you signed up for AWS.

Hope that helps.

Sharan
Welby says on January 3, 2008

Thanks Sharan.

:)
alezla () says on January 5, 2008:
Hey, guys, this is my first comment or question, i guess. Can
anyone help me with the basics of getting my ebay request tokens and request id. I've already signed up for the developers program, I have a hard time navigating around the site to find where I should get these. Thanks in advance.
alezla () says on January 5, 2008:
It's me again, well how do i go about getting these in comminsion junction? Are they the info giving to me upon registering, thanks
Ran Aroussi says on January 8, 2008

I just created a heavily modified script based on yours. It has full support for both PHP 4 and 5, Linux or Windows version, and Caching for fast loading.

Get it at:
http://justaskran.com/eaya-affiliate-mashup-script
CLAIRE says on January 12, 2008

HI

YOU say u can build a mash up site in 10 minuteS

Ha u must be lieing!

I have been trying to build this mash up for 2hrs and 30 minutes becuase i cannot seem to find out where i get my amazon developers ID from (obivously from the amazon site but i cant find it).

Also ebay how do you get them to authorise a token for you becuase they dont let you sign back in?

if you could please help this would be lovely!

great video by the way all other tasks are completed apart from the ID'S.
Kupongnummer says on January 12, 2008

Awesome mashup - I´m going to implement this in a few site based on tight niches - thx

guest says on January 16, 2008

Hello Guys,

I tried installed it and when run my web site, I get:

"Parse error: syntax error, unexpected T_OBJECT_OPERATOR in ...inc/ebaysearch.php on line 42"

I don't know what is a problem. I tried change my ID on ID of my friend, but it don't help me. I wrote to help center of the hoster, but they told me that it's a problem with the script. May be can you help me?

I've PHP5, registered IDs and followed of instruction.
Delords says on January 16, 2008

Sorry, posted in the wrong place earlier ... I just want to ask if I can lay my hands on the codes to show bids and prices instead of just links, talking about the yea mashup script. ...Thanks

...Delords
Delords says on January 16, 2008

Also noticed just ask ran's site is down, so I removed the weblink till he is back and running... http://justaskran.com/eaya-affiliate-mashup-script
45n5 () says on January 16, 2008:
@delords - there are no codes here for your request, it can be done easily but we have no codes to give as this hasn't been done yet here ;(

You could figure it out and contribute though ;)
Scott says on January 16, 2008

Hi Mark,
Can't wait to try this out. How well do sites with this script convert?

Scott
45n5 () says on January 17, 2008:
@scott - never measured. I throw this on domains where I purhcased the domain cause it's keyword rich, not sure what to do with the domain, but I want google to start indexing it/aging the site/getting pr whatever.
Scott says on January 17, 2008

Thanks Mark. So then these sites don't have much problem getting indexed?

Scott
Bux.to says on January 18, 2008

I have this up and working at http://www.hollywoodnark.com

It took about 10 mins today.

I was wondering. If someone else put their CJ PID code in would it conflict with your (what would be our) Dev ID
steve says on January 26, 2008

hi,

I would like to say a very good looking script. I would like to give it a try on one of my dormant sitting around doing nothing domains.

It looks like a very good script for zero dollars down, well with the only pre requisite of a link back. A good deal all the same.

steve
bob says on February 1, 2008

hey mark great video mate can you send the me the program to wozzied86@hotmail.com thanks
45n5 () says on February 1, 2008:
@bob -the download link is in the post above

@all - thanks for the continued feedback. yes they get indexed.
sparky says on February 2, 2008

Mark, awesome. Can't thank you enough.

Did take me forever to figure out that "RequestUserId" in the ebay section was not the developer token but the one I authenticated against. I'm going on the belief that "trackingid" is my commission junction pid and that the affiliateuserid is a tracking ( sub ? ) id (I'm using wiifit) but tell me if I got them backwards?
alfaprima () says on February 2, 2008:
Hi!,
I have created a new version of the script:
a. PHP 4 and 5 compatible.
b. Caching for better performance.
c. Adsense.
d. Fixed some problems with CSS on IE.

Note: Some of the ideas where taken from the eaya script posted here.

http://ceundies.blogspot.com/2008/02/mashup-script-updated.html
sparky says on February 2, 2008

This is the sitemap.php file I'm using to help google find all my pages. Probably not necessary because the menu is so obvious at the top of the template. But here it is anyway.

I have it saved as sitemap.php

sparky says on February 2, 2008

here it is again without the
sparky says on February 2, 2008

wow, sorry. Here it is again with out the php tags.

$products=file( 'products.txt' );
include( "stufftochange.php");

$urls=array();
foreach( $products as $thisline ) {
$thisline=trim( $thisline );
if ( $thisline > '' ) {
$link=$siteurl.preg_replace( "/\s+/","-", $thisline );
$urls[] = $link;
}
}


header( "Content-type: text/xml" );
echo "\n";
echo "";
foreach( $urls as $url ) {
echo "\n";
echo "$url\n";
echo "".date("Y-m-d")."\n";
echo "daily\n";
echo "1\n";
echo "\n";
}
echo "\n";
sparky says on February 2, 2008

How do I confirm that the cookies for ebay and amazon are being set correctly?
James Harrison says on February 22, 2008

This is soooooo awesome, thanks a bunch. I will for sure link to you and pos a blog about this.

Yo da man Mark!
Welby says on March 18, 2008

Mark.

Ebay just announced that they will not longer parnter with Commission Junction. This termination will be completed by May 1st 2008. Ebay is asking users to register directly with Ebay at http://affiliates.ebay.com. This will obviously affect the mashup script you so generously wrote. Mark would you consider updating the mashup as it depends on the Commission Junction structure now.

Thanks. Look forward to the reply.

welby
welby says on March 19, 2008

FYI for everyone to read as this affects everyone with a commission junction account using this great script.

eBay Advances Affiliate Offering with eBay Partner Network

We are excited to announce eBay’s new global affiliate platform: the eBay Partner Network.

The new platform will go live on April 1st, 2008 PST, at which point eBay will no longer be running its affiliate program through Commission Junction. Beginning April 1st, affiliates should register with eBay Partner Network and migrate their links from CJ to the new platform.

While CJ and ValueClick have been valuable partners to eBay throughout the years, we’ve decided to give our affiliate community a customized experience for eBay affiliates.

All the great tools and benefits of working with the eBay program will remain the same – access to the Editor Kit and affiliate API, the flexible destination tool, the great payout structure. In addition, the eBay partner network will provide several new features:
• Easy global registration to multiple countries simultaneously
• New, targeted banners and rich media creatives
• New landing page optimization and geo-targeting capabilities
• More detailed reporting capabilities for eBay’s programs

The eBay Partner Network and Commission Junction will run in parallel for one month through this process, so please plan to complete your migration by May 1st, 2008.

You can receive an additional 5% bonus for all traffic tracked through eBay Partner Network in April 2008 (bonus applicable to traffic sent to Half.com and US, UK, Australia, Canada, Italy, India and Spain eBay sites). The sooner you migrate, the more you’ll earn! Just:
• Register with eBay Partner Network on April 1, 2008
• Confirm your registration, and obtain your new identifiers
• Update your links with your new identifiers.
• Reminder: Please plan to complete migration by May 1, 2008.

You will receive more information and step by step directions for the transition on April 1st. A special help desk to answer your questions about migration will also be available starting April 1st. You can find more details, including a list of programs that will be affected, at http://affiliates.ebay.com.

Thanks for being a valued partner. We’re excited for a successful transition, and the opportunity to grow your business through even more innovations, information and communication moving forward!


Sincerely,

eBay’s Affiliates Managers

---------------------------------------
This message was sent by an advertiser in the Commission Junction network based on the mail settings selected in your account. Commission Junction does not send messages to individuals outside of its network and guards the privacy of all information received. To unsubscribe from receiving this type of message, login at https://members.cj.com/member/foundation/login.jsp or visit www.cj.com to sign in. Once in the Account Manager, navigate to the mail settings page located within the MAIL tab. You may opt-out of receiving messages from this specific advertiser through their advertiser detail page.

heir advertiser detail page.
alfaprima () says on March 23, 2008:
Hi,
following up on this issue..

http://affiliates.ebay.com/
says:
Check back on April 1st for more information on how to register for the new eBay Partner Network.

So we will have to wait until then tosee what the changes to the scrip will be.
Regards
Jarek says on April 1, 2008

The new affiliates program is active!, I will try to update the script, but my php habilities are poor!
Paste from the ebay affiliates page:
-----------------------------------------------------------
Custom Links: You are probably wondering how the actual link structure compares to our old one if you’re manually migrating these.

We are still using the ‘Rover’ links but we have new parameters in the links which need the values updating.
http://rover.ebay.com/rover/1­/PLACEMENTID/1?campid=XXXXX&customid­=XXXXXXX&
toolid=XXXXXX&mpre=TARGET­_ENCODED_URL

* placementid determines which ePN program you are promoting and is not optional

* campid is an id which you can generate in the interface to allow you to segment your efforts . The campid is similar to the PID you used before but you will need to create new campids and map the two if you want to track performance pre/post migration. You can bulk create campids in the ‘campaign’ tab by uploading a text file to the interface. We create a default campaign for you so this field is not optional.

* customid is a 256 character custom field for you to dynamically sub-segment your campaigns at the transaction level which is similar to a SID. Because you can put any value into this field you can migrate your existing SID’s into customids. This field is optional.

* toolid determines which tool, link or creative you are using and replaces the old AID. This will be given to you within the interface when you are generating links; note the toolid for the Link Generator (the new flexible destination tool) is 10001. Not optional.

* mpre= is followed by a url encoded eBay destination url. Have a look here for more details on url encoding.

For example an existing UK link would migrate from…

http://rover.ebay.com/rover/1­/710-5232-2978-1/1/1?pid=12345&sid­=homepage&aid=9479574&
mpre=http%3A//search.ebay.co.uk/search/search.dll%3Ffrom%3DR40%26satitle%3Dchimney+balloon

to

http://rover.ebay.com/rover/1­/710-53481-19255-0/1?campid=12345678&customid­=homepage&toolid=10001&
mpre=http%3A//search.ebay.co.uk/search/search.dll%3Ffrom%3DR40%26satitle%3Dchimney+balloon
---------------------------------------------------------

More interested is the bottom link:
-------------------------------------------------------
Finally if you are a developer and are using either the Shopping or Trading API’s please refer to the following for details for updating your code or application.

http://developer.ebay.com/support/system-announcements/affiliates/Default.aspx
-------------------------------------------------------

Thanks for the great script!
Jarek
CR says on April 18, 2008

It looks like all you have to change to use the new ebay program, is to use your campaignid as the trackingid, and to set trackingpartnercode to 9 (for EPN) in stufftochange.php. At least it looks like its generating the correct rover links for me. I didn't change any of the code. The rover links come back from the REST call, if I understand it right.

This is of course in addition to the ebay Token info....
Jeff says on April 25, 2008

looks like a great idea....has anyone made any money with it?
sports says on April 25, 2008

Yup
Jeff says on May 8, 2008

Hi, did anyone update the script to use the new Ebay aff links instead CJ's and could share it?
alfaprima says on May 12, 2008

Hi,
I manage to get it working with the ebay affiliates stuff.
Had to change the API call, and figure out where to find the affiliate id (there is no need for this... :-).
I'll post the new version to my blog soon.

Regards,
JP
Chris says on May 14, 2008

This is a great script, thanks alot Mark!

I had a play with it today and got the eBay affiliate bit working. I'll double check my code and tidy up a few bits by the weekend and will release this modified version on my blog for anyone who needs it, hopefully by the weekend.
Andrew says on May 15, 2008

hi there i have installed the mashup onto my site into a sub domain (perhaps this is the problem??) and the first product works and searches ebay not a problem but when i click onto the second product in the menu from products.txt then it does not open that search have i missed something or do i need to create another file of should all files be created dynamically.. i am running php 5.2.5 with php running as ISAPI
Andrew says on May 15, 2008

ok got problem solved (workaround), issue was htaccess not enabled on server sent request to webmaster to fix issue, but have now installed EAYA which has switch for mod_rewrite, this was set to zero to turn off and the EAYA script worked brilliantly

cheers andrew
Chris says on May 16, 2008

I've uploaded my fixed version of the script, anyone who's interested can download it from my blog at http://www.c-online.co.uk/.

Cheers.
Chris




subscribe

Enter your email address: