Hello,
If you're writing your code in PHP, have you considered using the
APIlity client library? It would probably end up being simpler than
implementing everything yourself based on the samples.
http://google-apility.sourceforge.net/
Based on your description of your initial error, if you're sure that
your SOAP request XML looks correct, it might be that your HTTPS POST
is being sent to an incorrect SOAP endpoint. Each AdWords API service
has a different SOAP endpoint, and when posting to the Sandbox's
AdGroupService, for instance, you should ensure that the HTTPS request
is being sent to
https://sandbox.google.com/api/adwords/v13/AdGroupService
(or v12 if you're using that).
Cheers,
-Jeff Posnick, AdWords API Team