This week we released an addition to the v201109 version of the API, enabling one of the most commonly requested uses of the API: account creation. The CreateAccountService creates AdWords accounts without login emails (corresponding to the new optional-login feature available in the AdWords UI).

Sample request

Let's dive right into some sample code using the Java client library. Notice that the only required parameters are currency, time zone, and descriptive name:

// Get the CreateAccountService.
CreateAccountServiceInterface createAccountService =
    user.getService(AdWordsService.V201109.CREATE_ACCOUNT_SERVICE);

Account account = new Account();
account.setCurrencyCode("EUR");
account.setDateTimeZone("Europe/London");

CreateAccountOperation operation = new CreateAccountOperation();
operation.setDescriptiveName("Account Created with CAS");
operation.setOperand(account);
operation.setOperator(Operator.ADD);

CreateAccountOperation[] operations = 
    new CreateAccountOperation[] {operation};

Account[] accounts = createAccountService.mutate(operations);


Notes