Trying to run the reports using the following code: try { $user = new AdWordsUser( NULL, $email, $pass, ADWORDS_API_TOKEN, NULL, NULL, $client_id );
// Log SOAP XML request and response. $user->LogDefaults(); // Get the AdGroupService. $adGroupService = $user->GetService('AdGroupService', 'v201008'); $adGroupId = (float) $adgroup_id; // Create ad group with updated status. $adGroup = new AdGroup(); $adGroup->id = $adGroupId; // Set status if ( $state == 'PAUSE' ) { $adGroup->status = 'PAUSED'; } elseif ( $state == 'UNPAUSE' ) { $adGroup->status = 'ENABLED'; } // Update bids if ( $bid != '' ) { // Bid amounts are in microamounts // (1,000,000 = 1 unit, e.g. $1, so to calculate micro amount, it is amount * 1,000,000) $adGroupBids = new ManualCPCAdGroupBids(); $adGroupBids->keywordMaxCpc = new Bid( new Money( $bid * 1000000 ) ); $adGroupBids->keywordContentMaxCpc = new Bid( new Money( $bid * 1000000 ) ); $adGroup->bids = $adGroupBids; } // Create operations. $operation = new AdGroupOperation(); $operation->operand = $adGroup; $operation->operator = 'SET'; $operations = array($operation); // Update ad group. $result = $adGroupService->mutate($operations); // Display ad groups. if (isset($result->value)) { foreach ($result->value as $adGroup) { print 'Ad group with name "' . $adGroup->name . '", id "' . $adGroup->id . '", and status "' . $adGroup->status . "\" was updated.\n"; } } else { print "No ad groups were updated."; } } catch ( Exception $e ) { print $e->getMessage(); } However, when I try to run this, I receive the following error: PHP Warning: require_once(/home/sites/dev.example.com/includes/ libraries/Google/Api/Ads/AdWords/Lib/../v201008/v201008/ AdGroupService.php): failed to open stream: No such file or directory in /home/sites/dev.example.com/includes/libraries/Google/Api/Ads/ AdWords/Lib/AdWordsSoapClientFactory.php on line 67 Warning: require_once(/home/sites/dev.example.com/includes/libraries/ Google/Api/Ads/AdWords/Lib/../v201008/v201008/AdGroupService.php): failed to open stream: No such file or directory in /home/sites/ dev.example.com/includes/libraries/Google/Api/Ads/AdWords/Lib/ AdWordsSoapClientFactory.php on line 67 PHP Fatal error: require_once(): Failed opening required '/home/sites/ dev.example.com/includes/libraries/Google/Api/Ads/AdWords/Lib/../ v201008/v201008/AdGroupService.php' (include_path='.:/usr/local/share/ pear') in /home/sites/dev.example.com/includes/libraries/Google/Api/ Ads/AdWords/Lib/AdWordsSoapClientFactory.php on line 67 Fatal error: require_once(): Failed opening required '/home/sites/ dev.example.com/includes/libraries/Google/Api/Ads/AdWords/Lib/../ v201008/v201008/AdGroupService.php' (include_path='.:/usr/local/share/ pear') in /home/sites/dev.example.com/includes/libraries/Google/Api/ Ads/AdWords/Lib/AdWordsSoapClientFactory.php on line 67 I'm not sure why it's duplicating the v201008/v201008. I've verified the directory for the v201008 directory is: /home/sites/ dev.example.com/includes/libraries/Google/Api/Ads/Adwords/, but inside this, it has the following directories (no files): ch, cm, info, mcm, o -- it looks like the AdGroupService.php script is in the 'cm' directory, but the automatic path selection in AdWordsSoapClientFactory.php doesn't seem to take this into consideration. Thoughts? All help appreciated. Thanks. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en