awAdGroupServiceAdWords Lib AdGroup Class
Use this class to work with Google AdWords AdGroup Service. AdGroupService provides operations for accessing, modifying, and creating AdGroups
Located in /services/AdGroupService.php
awService | --awAdGroupService
awAdGroupReturnValue
addAdGroup
(int $campaignId, object awAdGroup $newAdGroup, [string $clientEmail = ''])
awAdGroupReturnValue
addAdGroupList
(int $campaignId, array $newAdGroups, [string $clientEmail = ''])
awAdGroupService Constructor
Example:
- <?php
- ?>
Adds a new AdGroup to a Campaign.
Example:
- <?php
- //$campaignId - ID of the Campaign to which new AdGroup will be added
- //$newAdGroup is an object of class awAdGroup
- //$response is an object of class awAdGroup which holds the new
- //created AdGroup
- ?>
Adds new AdGroups to a Campaign.
Example:
- <?php
- //$campaignId - ID of the Campaign to which new AdGroups will be added
- //$adgroup1, $adgroup2 are objects of class awAdGroup
- $newAdGroups = array($adgroup1, $adgroup2);
- //$response is an array of objects of class awAdGroup which
- //holds the new created AdGroups
- ?>
Returns a list of all the ad groups specified by the ad group selector from the target customer's account.
Get all information about the Active ad groups associated with a campaign.
Example:
- <?php
- //$campaignId - Campaigns's ID
- //$response is an object of class awAdGroup
- ?>
Returns all information about the specified AdGroup
Example:
- <?php
- //$adgroupId - AdGroup's ID
- //$response is an object of class awAdGroup
- ?>
Returns a list of AdGroups
Example:
- <?php
- //$adgroupId1, $adgroupId2 - AdGroups' IDs
- $adgroupIDs = array($adgroupId1, $adgroupId2);
- //$response is an array of objects of class awAdGroup
- ?>
Returns all AdGroups from a Campaign. If there are no AdGroups in this Campaign, an empty array will be returned
Example:
- <?php
- //$campaignId - ID of the Campaign
- //$response is an array of objects of class awAdGroup
- ?>
Mutates (add, remove and set) ad groups as specified by the operations. Note: to REMOVE use SET and mark status to DELETE.
Updates the fields of an existing AdGroup
Example:
- <?php
- //$adgroup is an object of class awAdGroup
- //$response == true
- ?>
Updates the fields of multiple existing AdGroups
Example:
- <?php
- //$adgroup1, $adgroup2 are objects of class awAdGroup
- $adGroups = array($adgroup1, $adgroup2);
- //$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