So I downloaded and put in place the new adwords api php library 4.4.0 and changed my adwords version to v201306 and implanted Oauth2.0 login.
All were required to even get anywhere. But now my code is no longer pulling data. NO errors just zero results. An Example is below and just to make sure I wasn’t going crazy I pulled this code from the examples folder and still got zero results. I did a var_dump of the user right before the call and all the the data and credentials are correct with the new OAuth2 details. Like I said im not getting a error just no results and clearly the campaign id below has multiple adgroups. Please help. CODE BELOW $campaignId = '123745358'; /** * Runs the example. * @param AdWordsUser $user the user to run the example with * @param string $campaignId the id of the parent campaign */ function GetAdGroupsExample(AdWordsUser $user, $campaignId) { // Get the service, which loads the required classes. $adGroupService = $user->GetService('AdGroupService', “v201306”); // Create selector. $selector = new Selector(); $selector->fields = array('Id', 'Name'); $selector->ordering[] = new OrderBy('Name', 'ASCENDING'); // Create predicates. $selector->predicates[] = new Predicate('CampaignId', 'IN', array($campaignId)); // Create paging controls. $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); do { // Make the get request. $page = $adGroupService->get($selector); // Display results. if (isset($page->entries)) { foreach ($page->entries as $adGroup) { printf("Ad group with name '%s' and ID '%s' was found.\n", $adGroup->name, $adGroup->id); } } else { print "No ad groups were found.\n"; } // Advance the paging index. $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; } while ($page->totalNumEntries > $selector->paging->startIndex); } try { // Run the example. GetAdGroupsExample($user, $campaignId); } catch (Exception $e) { printf("An error has occurred: %s\n", $e->getMessage()); } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.