Hi Tivakar, Can you post the Request ID for such a request?
Cheers, Anash P. Oommen, AdWords API Advisor On Mar 8, 4:12 am, tivakar <tiva...@outofboundscommunications.com> wrote: > Hi, > > Service: AdgroupCriterionService > Version: v201008 > Example file used: GetAllActiveAdGroupCriteria.php > Parameters set: adgroupid in the idFilters field > selectors set with idFilters, userstatuses->active > > Code: > > // Get the AdGroupCriterionService. > $adGroupCriterionService = $user->GetAdGroupCriterionService('v201008'); > > $adGroupId = (float) '';// Removed for posting > > // Create selector. > $selector = new AdGroupCriterionSelector(); > //$selector->userStatuses = array('ACTIVE'); > > // Create id filter. > $idFilter = new AdGroupCriterionIdFilter(); > //$idFilter->campaignId= $campaignID; > $idFilter->adGroupId = $adGroupId; > $selector->idFilters = array($idFilter); > > // Get all active ad group criteria. > $page = $adGroupCriterionService->get($selector); > > // Display ad group criteria. > if (isset($page->entries)) { > foreach ($page->entries as $adGroupCriterion) { > print 'Ad group criterion with ad group id "' > . $adGroupCriterion->adGroupId . '", criterion id "' > . $adGroupCriterion->criterion->id . ', type "' > . $adGroupCriterion->criterion->CriterionType . '", and user > status "' > . $adGroupCriterion->userStatus . "\" was found.\n"; > } > } else { > print "No ad group criteria were found.\n"; > } > > Issue: > Returns No ad group criteria were found. > But returns value for one of my client and for all the other clients, it is > not displaying results. > > Request to help on this. > > Thanks, > Tivakar > > -Tivakar -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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