Hello Akila,
If you're just getting started in AdWords API development using PHP,
I'd recommend that you try the APIlity client library:
http://google-apility.sourceforge.net/
It should be simpler than using any standalone sample code, and the
error reporting should be more robust as well.
Cheers,
-Jeff Posnick, AdWords API Team