Google API and PHP trouble

Discussion in 'Google API' started by tomnagen, Oct 16, 2006.

  1. #1
    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);
    
    } 
    
    Code (markup):
    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
     
    tomnagen, Oct 16, 2006 IP
  2. greenrob

    greenrob Peon

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you sure you have any active campaign right now in your adwords account ?
     
    greenrob, Oct 17, 2006 IP