Forum Moderators: buckworks & skibum

Message Too Old, No Replies

Google API and PHP trouble

         

dermotirl

12:06 pm on Oct 16, 2006 (gmt 0)

10+ Year Member



Hi All

I am trying to get the Adwords API working with php, I have signed up for an application and developer token(which i have, they just need to be approved) and would like to develop scripts using the Adwords Sandbox.

I have downloaded apility from google but cannot seem to get any of the scripts working, i keep getting errors like "Fatal error: Call to a member function setCampaignNegativeKeywordCriteria() on a non-object in TestSuite_Campaign_v6.php on line 26".

I have also tried to use scripts like

require_once('apility.php');

$allCampaigns = getAllCampaigns();

foreach($allCampaigns as $a)
{

print_r($a);

}

but to no avail.

Can anyone inform me of what i am doing wrong and put me on the right track.

I would really appreciate any help anyone can give.

Thank

inasisi

1:17 pm on Oct 16, 2006 (gmt 0)

10+ Year Member



Did you set your authentication information as described here -

[google-apility.sourceforge.net...]

dermotirl

1:27 pm on Oct 16, 2006 (gmt 0)

10+ Year Member



Hi inasisi

Yes I set the authentication information in the apility.php file.