AdWordAccountServiceAdWords 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/AdWordAccountService.inc
AdWordService | --AdWordAccountService
AdWordAccountService Constructor. It takes one parameter - name of a supported by AdWords Lib SOAP toolkit
Example:
- <?php
- ?>
Return the AdWords account specified by the client account header.
Example:
- <?php
- $accountService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- ?>
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);
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- //$response is an array of strings
- ?>
Set the login information for the current user.
Example:
- <?php
- $accountService->setAccount($myEmail, $myPass, $myUserAgent, $myDeveloperToken, $myApplicationToken);
-
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- ?>
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');
-
- if ($response === false) { // if an error appears
- echo $errr->toString(); //output error
- exit();
- }
- ?>
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:11 +0300 by phpDocumentor 1.3.2