My favorites | English | Sign in

Documentation for the requested version is not available.Documentation for the requested diff is not available.

AccountService

Link to this version

AccountService provides operations for modifying AdWords accounts.

More Information

Requests

getAccountInfo

Return the AdWords account specified by the client account header.

Response

AccountInfo the AdWords account specified by the client account header.

Samples

Code sample not available.
57
58
      // Get account info.
      AccountInfo accountInfo = service.getAccountInfo();

Code sample not available.
55
56
        // Get account info.
        AccountInfo accountInfo = service.getAccountInfo();

Code sample not available.
61
62
# Get account info.
my $account_info = $service->call('getAccountInfo' => @headers)->result();

Code sample not available.
48
49
# Get account info.
account_info = account_service.getAccountInfo()

Code sample not available.
64
65
# Get account info.
account_info = account_service.getAccountInfo(nil).getAccountInfoReturn

Code sample not available.
49
50
51
# Get account info.
$account_info = $account_service->call('getAccountInfo');
$account_info = $account_info['getAccountInfoReturn'];

Code sample not available.
12
13
14
    <!-- Retrieves information about the AdWords account that -->
    <!-- belongs to the customer issuing the request. -->
    <getAccountInfo/>

Select a programming language to view its sample

getClientAccountInfos +v13

Gets the client account information for managed clients of effective user. If the effective 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. If an account has more than one email associated with it, getClientAccounts gets only the primary email for the account.

Response

ClientAccountInfo[] array of ClientAccountInfo objects, each containing a managed client's information.

getClientAccounts

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 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.

Response

string[] array of account login emails associated with the accounts managed by the current customer.

Samples

Code sample not available.
54
55
      // Get client accounts.
      String[] loginEmails = service.getClientAccounts();

Code sample not available.
52
53
        // Get client accounts.
        String[] loginEmails = service.getClientAccounts();

Code sample not available.
59
60
61
# Get client accounts.
my $response = $service->call('getClientAccounts' => @headers);
my @login_emails = ($response->result(), $response->paramsout());

Code sample not available.
46
47
# Get client accounts.
login_emails = account_service.getClientAccounts()

Code sample not available.
63
64
# Get client accounts.
login_emails = account_service.getClientAccounts(nil).getClientAccountsReturn

Code sample not available.
47
48
49
# Get client accounts.
$login_emails = $account_service->call('getClientAccounts');
$login_emails = $login_emails['getClientAccountsReturn'];

Code sample not available.
11
12
13
    <!-- Retrieves the login email address for each account -->
    <!-- managed by the effective user. -->
    <getClientAccounts/>

Select a programming language to view its sample

getMccAlerts +v13

Retrieves the MCC alerts associated with any of the accounts beneath the current account.

Response

MccAlert[] the array of MCC alerts

updateAccountInfo

Updates the database to reflect the changes in the account object.

Parameters

accountInfo AccountInfo
The account info object to be updated

Response

(none)