Creates the page URLs in the DSA page feed.

  Args:
    client: an AdWordsClient instance.
    feed_details: a _DSAFeedDetails instance.
    label_name: a str containing the page feed URL label.

def _CreateFeedItems(client, feed_details, label_name):
  """Creates the page URLs in the DSA page feed.

  Args:
    client: an AdWordsClient instance.
    feed_details: a _DSAFeedDetails instance.
    label_name: a str containing the page feed URL label.
  """
  # Get the FeedItemService.
  feed_item_service = client.GetService('FeedItemService', version='v201809')

  # For page feed URL recommendations and rules, see:
  # https://support.google.com/adwords/answer/7166527
  urls = ('http://www.example.com/discounts/rental-cars?id={feeditem}',
          'http://www.example.com/discounts/hotel-deals?id={feeditem}',
          'http://www.example.com/discounts/flight-deals?id={feeditem}')

  # Create the operation.
  operations = [{
      # Create the feed item.
      'operand': {
          'feedId': feed_details.feed_id,
          'attributeValues': [
              {
                  'feedAttributeId': feed_details.url_attribute_id,
                  'stringValues': [url]
              },
              {
                  'feedAttributeId': feed_details.label_attribute_id,
                  'stringValues': [label_name]
              }
          ]
      },
      'operator': 'ADD'
  } for url in urls]

  # Add the feed item.
  feed_item_service.mutate(operations)