awAccountServiceAdWords Lib Account Service Class
Use this class to work with Google AdWords Account Service. AccountService provides operations for accessing, modifying, and creating Accounts
Located in /services/AccountService.php
awService | --awAccountService
awAccountService Constructor
Example:
- <?php
- ?>
Return the AdWords account specified by the client account header.
Example:
- <?php
- $accountService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- ?>
Gets the client account information for managed clients of effective user If the effective user user has no client accounts, an empty array is returned.
The effective user is: * the user specified in the clientEmail header of the request if that header is provided * the user specified in the email header if the clientEmail header is not provided For more information about the clientEmail header, see the section Request Headers in the Introduction. In other words, you can use the getClientAccounts request to find the primary email addresses for your own clients, or for your client's clients. If an account has more than one email associated with it, getClientAccounts gets only the primary email for the account.
Example:
- <?php
- $accountService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- //$response is an array of objects of class <a href="../PHP_AdWords_API_Lib/awV13ClientAccountInfo.html">awV13ClientAccountInfo</a>
- ?>
Gets the primary email address for each account managed by the effective user.
If the effective user user has no client accounts, an empty array is returned. The effective user is: * the user specified in the clientEmail header of the request if that header is provided * the user specified in the email header if the clientEmail header is not provided For more information about the clientEmail header, see the section Request Headers in the Introduction. In other words, you can use the getClientAccounts request to find the primary email addresses for your own clients, or for your client's clients. If an account has more than one email associated with it, getClientAccounts gets only the primary email for the account.
Example:
- <?php
- $accountService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- //$response is an array of strings
- ?>
etrieves the MCC alerts associated with any of the accounts beneath the current account.
Example:
- <?php
- $accountService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- ?>
Updates the database to reflect the changes in the account object.
Example:
- <?php
- $accountService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
-
- $account->set('descriptiveName', 'Renamed Account');
- $account->set('languagePreference', 'en');
-
- ?>
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:05 +0300 by phpDocumentor 1.4.3