5 messages in com.googlegroups.adwords-apiRe: Can't even get my hello world to ...
FromSent OnAttachments
Mission1520 Jul 2005 03:27 
jor-el20 Jul 2005 10:54 
Mission1521 Jul 2005 06:28 
Mission1522 Jul 2005 04:42 
Groople25 Jul 2005 00:48 
Subject:Re: Can't even get my hello world to work.
From:Groople (t_st@web.de)
Date:07/25/2005 12:48:35 AM
List:com.googlegroups.adwords-api

Hi there,

can anyone point my to a php example listing that is 100% correct?

Well, bad news keep spreading fast, good news don't spread at all... The sample code has been fixed a while ago. I think a good task to start with is getting an estimate of a Keyword by trying out the script mentioned at http://www.google.com/apis/adwords/samples/php/keywordEstimateDemo.php.txt

What you need is some version of PHP, Curl extension and that's all. Put nusoap.php file in your working directory and import it via require_once('nusoap.php');

What I like about PHP is the print_r() function. You can look into almost everything, so just have a look at your clients, your responses etc. and see where the errors might be.

The only thing that was broken about the given examples was that the response was covered into another array. So the whole fix was (this has been already done in the examples) to copy the contents directly into $response:

$response = $response['estimateKeywordListReturn'];

Don't hesitate to re-ask if you still fail to get it up and running but try print_r() first.

Regards, Tom