def invite_account(customer_id, refresh_token):
oauth2_client = oauth2.GoogleRefreshTokenClient(CLIENT_ID, CLIENT_SECRET, refresh_token)
adwords_client = adwords.AdWordsClient(DEVELOPER_TOKEN, oauth2_client)
adwords_client.SetClientCustomerId(customer_id)
managed_customer_service = adwords_client.GetService('ManagedCustomerService',
version='v201709')
operation = {
'operator': 'ADD',
'operand': {
'managerCustomerId': MANAGER_ID,
'clientCustomerId': customer_id,
'linkStatus': 'PENDING',
'pendingDescriptiveName': 'Pareto Quantic is inviting yout account',
'isHidden': False
}
}