def _create_feed_attribute(client, name, attribute_type):
    """Helper method to construct a single FeedAttribute.

    Args:
        client: The Google Ads API client instance.
        name: The string attribute name to set on the new attribute.
        attribute_type: The FeedAttributeType to set on the new attribute.

    Returns:
        A new FeedAttribute instance.
    """
    feed_attribute = client.get_type("FeedAttribute")
    feed_attribute.name = name
    feed_attribute.type_ = attribute_type
    return feed_attribute