awAdGroupAdServiceAdWords Lib Ad Class
Service for managing AdGroupAd entities. AdGroupAds maintain the relationships between AdGroups and Ads.
Located in /services/AdGroupAdService.php
awService | --awAdGroupAdService
awAdGroupAdPage
getAdStats
(int $adGroupId, int $adIds, int $startDay, int $endDay, [string $clientEmail = ''])
awAdGroupAdService Constructor
Example:
- <?php
- ?>
Make a batch of new Ads.
The adGroupId field of the Ad indicates which AdGroup to add the Ad to. The adGroupId field is required, and the indicated AdGroup must exist already. The Ad's id and disapproved fields are set by the AdService -- if you fill them in they will be ignored. By default, Ads are enabled and will be served as soon as they are created. You can set the status field on the ad to either paused or disabled to prevent the ad from being active.
Example:
- <?php
- //$newAds is an array of objects of class awAd or any of its descendants
- //$response is an array of objects of class awAd
- ?>
Returns a list of AdGroupAds based on an AdGroupAdSelector. The selector defines a specific set of AdGroupAds that are to be returned - an AdGroupAd must pass all the filters specified in the argument AdGroupAdSelector
Return all active Ads associated with the list of AdGroup ids specified.
Example:
- <?php
- //$response is an array of objects of class awAd
- ?>
Return information about one Ad.
Example:
- <?php
- //$response is an array of objects of class awAd
- ?>
Get statistics for a list of ads in an ad group.
The time granularity is one day.
Example:
- <?php
- //$response is an object of class awAdGroupAdPage
- ?>
Return all Ads (enabled, disabled, or paused) associated with the list of AdGroup ids specified.
Example:
- <?php
- //$response is an array of objects of class awAd
- ?>
Applies the list of mutate operations (ie. add, set, remove)
Update a batch of ads.
Use the id field of the ad to indicate which ad to update. Currently only the status field is updateable, all other fields will be ignored.
Example:
- <?php
- //$ad1, $ad2 is an object of class awAd or any of its descendants
- $ads = array($ad1, $ad2);
- //$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:07 +0300 by phpDocumentor 1.4.3