awAdGroupCriterionServiceAdWords Lib Criterion Class
Use this class to work with Google AdWords Criterion Service CriterionService provides operations for accessing, modifying, and creating Criteria (Keywords and Websites) in an AdGroup.
Located in /services/AdGroupCriterionService.php
awService | --awAdGroupCriterionService
awAdGroupCriterionPage
getCriteria
(int $adGroupId, array $criterionIds, [string $clientEmail = ''])
awAdGroupCriterionReturnValue
mutate
( $criterionOperations, [ $clientEmail = ''], array $adGroupOperations)
awAdGroupCriterionReturnValue
removeCriteria
(int $adGroupId, array $criterionIds, [string $clientEmail = ''])
awAdGroupCriterionService Constructor
Example:
- <?php
- ?>
Adds a new Criteria to an AdGroup.
Example:
- <?php
- //$newCriteria is an array of objects of class awCriterion
- //$response is an array of objects of class awCriterion which hold the new created criteria
- ?>
Gets adgroup criteria.
Return a list of criteria associated with this AdGroup.
Example:
- <?php
- //$adGroupId - ID of the adGroup
- //$response is an array of objects of class awCriterion
- ?>
Gets a list of the negative criteria associated with a campaign.
Negative criteria determine where the ads in the campaign will not be displayed. Negative website criteria indicate websites where the ads will not appear. Negative keyword criteria indicate keywords that cause the ads to be excluded from display.
Example:
- <?php
- //$campaignId - ID of the campaign
- //$response is an array of objects of class awCriterion
- ?>
Return a list of criteria with the specified IDs associated with this AdGroup.
This function will only return criteria associated with one AdGroup at a time. Invalid IDs are ignored.
Example:
- <?php
- //$adGroupId - ID of the adGroup
- //$criterionId1, $criterionId2 - Criterion IDs
- $criterionIds = array($criterionId1, $criterionId2);
- //$response is an array of objects of class awCriterion
- ?>
Adds, removes or updates adgroup criteria.
Remove a list of Criteria from an AdGroup.
Note that there is no 'undo' for this operation.
Example:
- <?php
- //$adGroupId - ID of the adGroup
- //$criterionId1, $criterionId2 - Criterion IDs
- $criterionIds = array($criterionId1, $criterionId2);
- //$response == true
- ?>
Update all mutable fields associated with these Criteria.
Only the maxCpc, maxCpm, negative, and destinationUrl fields are mutable.
Example:
- <?php
- //$criterion1, $criterion2 is an object of class awCriterion
- $criteria = array($criterion1, $criterion2);
- $response = $criterionService->updateKeywordList($criteria);
- //$response == true
- ?>
Inherited From awService
awService::__construct()
awService::callService()
awService::checkArray()
awService::checkArrayOf()
awService::checkObjectOf()
awService::getAccount()
awService::getClientCustomerId()
awService::getClientEmail()
awService::getResponseHeaders()
awService::getToolkit()
awService::setAccount()
awService::setClientCustomerId()
awService::setClientEmail()
awService::setTokens()
awService::setUserAgent()
awService::_getServiceHeadersV2009()
awService::_returnResponseAsArrayOf()
awService::_returnResponseAsObjectOf()
Documentation generated on Thu, 15 Apr 2010 19:06:08 +0300 by phpDocumentor 1.4.3