Hi everyone,

I am somewhat new to PHP and SOAP and I am trying to learn how to
interact with the API. I have put on my server the NUSOAP package and
also the APILITY package.

I have started off with a sample page with the following excerpt code
on a page called Adcode.php;


equire_once('/public_html/soapclientfactory.php');

# Provide AdWords login information.
$email = my email';
$password = 'mypasswd';
$client_email = 'client email';
$useragent = 'AdWords API PHP Sample Code';
$developer_token ='token'';
$application_token = 'app token';

# Define SOAP headers.
$headers =
  '<email>' . $email . '</email>'.
  '<password>' . $password . '</password>' .
  '<clientEmail>' . $client_email . '</clientEmail>' .
  '<useragent>' . $useragent . '</useragent>' .
  '<developerToken>' . $developer_token . '</developerToken>' .
  '<applicationToken>' . $application_token . '</applicationToken>';

etc.

This I believe then calls the soapclientfactory.php which is located
in the same directory. That in turn calls nusoap.php which also sits
in the same directory. However on my page i get

Warning: require_once(/public_html/soapclientfactory.php)
[function.require-once]: failed to open stream: No such file or
directory in public_html/Adcode_Data.php on line 21

Fatal error: require_once() [function.require]: Failed opening
required '/public_html/soapclientfactory.php' (include_path='.:/usr/
lib/php:/usr/local/lib/php') in /public_html/Adcode_Data.php on line
21

I'm sure there is something quite simple I am not doing! I don't
understand why it says no such file as they are all in the same place.

Like I say I am a complete beginner in this but I would appreciate
some pointers. I have read some documentation but it does gloss over a
few things as it is obviously aimed at people that know what they are
doing.

Any help would be most appreciated.

Thanks and kind regards

Peter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to