def _get_value_base(obj, attr):
    """
        Given an Adwords resource
        and an attr name
        returns the value of the attr
    """
    value = getattr(obj, attr)
    if hasattr(value, 'value'):
        return getattr(value, 'value')
    return value