

def main(client):
    managed_customer_service = client.GetService('ManagedCustomerService', version='v201509')
    today = datetime.today().strftime('%Y%m%d %H:%M:%S')
    operations = [{
        'operator': 'ADD',
        'operand': {
            'name': ('Account created with ManagedCustomerService on %s' % today),
            'currencyCode': 'EUR',
            'dateTimeZone': 'Europe/London',
        },
    }]
    accounts = managed_customer_service.mutate(operations)
    for account in accounts['value']:
        print(("Account with customer ID '%s' was successfully created." % account['customerId']))

dataset/ETHPy150Open googleads/googleads-python-lib/examples/adwords/v201509/account_management/create_account.py main/original