AdWordTrafficEstimatorServiceAdWords Lib Traffic Estimator Service Class
Provides keyword traffic estimates for new or existing keywords, ad groups, and campaigns
Located in /services/AdWordTrafficEstimatorService.inc
AdWordService | --AdWordTrafficEstimatorService
AdWordTrafficEstimatorService Constructor. It takes one parameter - name of a supported by AdWords Lib SOAP toolkit
Example:
- <?php
- ?>
Check a batch of keywords to see whether they will get any traffic.
If a keyword is not expected to get any traffic, you more than likely don't want to bother adding it. Also, if a keyword is not expected to get any traffic, it is probably not worth calling estimateKeywordList on it.
Example:
- <?php
- //$keywordTrafficRequests is array of objects of class AdWordKeywordTrafficRequest
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordKeywordTraffic
- ?>
Returns traffic estimates for the requested set of new or existing ad groups.
All of the ad groups must be new or all of the ad groups must be from the same campaign. New ad groups are estimated as if they were part of a new campaign with global targeting
Example:
- <?php
- //$adgroupReq1, $adgroupReq2 are objects of class AdWordAdGroupRequest
- $adGroupRequests = array($adgroupReq1, $adgroupReq2);
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordAdGroupEstimate
- ?>
Returns traffic estimates for the requested set of new and/or existing campaigns
Example:
- <?php
- //$campReq1, $campReq2 are objects of class AdWordCampaignRequest
- $campaignRequests = array($campReq1, $campReq2);
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordCampaignEstimate
- ?>
Returns traffic estimates for the requested set of new keywords.
All of the keywords must be new. New keywords are estimated as if they were part of a single new ad group in a single new campaign with global targeting.
Example:
- <?php
- //$keywReq1, $keywReq2 are objects of class AdWordKeywordRequest
- $keywordRequests = array($keywReq1, $keywReq2);
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is an array of objects of class AdWordKeywordEstimate
- ?>
Inherited From AdWordService
AdWordService::AdWordService()
AdWordService::callService()
AdWordService::getAccount()
AdWordService::getClientCustomerId()
AdWordService::getClientEmail()
AdWordService::getLastError()
AdWordService::getResponseHeaders()
AdWordService::setAccount()
AdWordService::setClientCustomerId()
AdWordService::setClientEmail()
Documentation generated on Mon, 10 Sep 2007 15:07:29 +0300 by phpDocumentor 1.3.2