def NewSiteLinkFeedItemAddOperation(site_links_feed, text, url):
  """Creates a new operation for adding a feed item.

  Args:
    site_links_feed: The sitelinks feed.
    text: The sitelink text.
    url: The sitelink url.

  Returns:
    A FeedItemOperation for adding the feed item.
  """
  # Create the FeedItemAttributeValues for our text values.
  link_text_attribute_value = {
      'feedAttributeId': site_links_feed['textFeedAtrributeId'],
      'stringValue': text,
  }
  link_url_attribute_value = {
      'feedAttributeId': site_links_feed['urlFeedAttributeId'],
      'stringValue': url,
  }

  # Create the feed item and operation.
  item = {
      'feedId': site_links_feed['siteLinksFeedId'],
      'attributeValues': [link_text_attribute_value, link_url_attribute_value]
  }
  operation = {
      'operand': item,
      'operator': 'ADD'
  }
  return operation