For other people who also get stuck in the new oAUTH2 auth. of AdWords, here's the solution. In the google code console, when you create your project, in the consent screen you must fill in all the fields required for WEB application. This is because the url you hit provided by the php script requires web access permissions and if not provided you get a bunch of weird unrelated errors.
Hope this helps.