We study the conformational transitions of polymer chains near attractive surfaces using Monte Carlo simulations on a simple cubic lattice. The shape of the adsorbed chain is studied as a function of the molecular weight, solvent quality and surface energy. The competition between two transitions induced by varying solvent conditions and the existence of an attractive wall results in various shapes of the adsorbate.