It was necessary to add this:

require_once($currentWorkingDirectory.'/lib/Campaign.inc');

to apility.php to avoid a Call undefined function
createcampaignobject() error in the sample found here:
http://google-apility.sourceforge.net/reference.html#campaign-getCampaignStats(%24startDate%2C+%24endDate).

After adding this, it generates:

Warning:
APIlity PHP library => Warning: Cache Directory: ./wsdl_cache/ does
not exist or is invalid
in /home/myacct/public_html/mysite/apility/lib/WsdlCache.php on line
96
Ouch! I am not proud to announce the following AdWords API Exception:
  Message: The request did not contain a header named 'email'.
  Trigger: N/A
  Code: 1
  Fault Origin: /apility_test.php:createCampaignObject()
  SOAP Parameters:
      <getCampaign><id>123456789</id>
      </getCampaign>


Fatal error: Call to a member function getCampaignStats() on a non-
object in /home/myacct/public_html/mysite/apility_test.php on line 26

There is a directory at: /public_html/mysite/apility/wsdl_cache.

Both Email and Client_Email are set in authentication.ini.

Is there an 'email' header other than this that needs to be set?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
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