Why are you buying a Yosemite install disk from e-bay it only ever came as a download.
It is a free download from Apple,
How to upgrade to OS X Yosemite – Apple Support
go to Section 4 and click on Get OS X Yosemite
this will download Install MacOSX.dmg to your downloads folder.
(The next section can only be done on a mac that is capable of running Yosemite,
a mac that came preinstalled with an OS later than Yosemite will refuse to do the next bit.)
When downloaded open to InstallMacOSX.pkg, double-click on
that and an installation window will open, this does not install Yosemite
but converts the InstallMacOSX.pkg to the Install OS X Yosemite.app which
you will find in your Applications folder.
(If the installation window asks which disk you want to install to, you must pick
the disk that you are booted to at the time. Not any internal or external disk that
you want to eventually install Yosemite on, that is for later.)
It is also possible to create a bootable USB installer disk using the Install OS X Yosemite.app
in the Applications folder and the createinstallmedia command in the Terminal app.
Read the instructions here,
How to create a bootable installer for macOS – Apple Support
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install\ OS\ X\ Yosemite.app
Or use this free app, https://macdaddy.io/install-disk-creator/