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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en