code: private static void createFeedMapping(
        AdWordsServicesInterface adWordsServices, AdWordsSession session, DSAFeedDetails feedDetails)
        throws RemoteException {
      // Get the FeedMappingService.
      FeedMappingServiceInterface feedMappingService =
          adWordsServices.get(session, FeedMappingServiceInterface.class);
  
      // Map the FeedAttributeIds to the fieldId constants.
      AttributeFieldMapping urlFieldMapping = new AttributeFieldMapping();
      urlFieldMapping.setFeedAttributeId(feedDetails.urlAttributeId);
      urlFieldMapping.setFieldId(DSA_PAGE_URLS_FIELD_ID);
      AttributeFieldMapping labelFieldMapping = new AttributeFieldMapping();
      labelFieldMapping.setFeedAttributeId(feedDetails.labelAttributeId);
      labelFieldMapping.setFieldId(DSA_LABEL_FIELD_ID);
  
      // Create the FeedMapping and operation.
      FeedMapping feedMapping = new FeedMapping();
      feedMapping.setCriterionType(DSA_PAGE_FEED_CRITERION_TYPE);
      feedMapping.setFeedId(feedDetails.feedId);
      feedMapping.setAttributeFieldMappings(
          new AttributeFieldMapping[] {urlFieldMapping, labelFieldMapping});
      FeedMappingOperation operation = new FeedMappingOperation();
      operation.setOperand(feedMapping);
      operation.setOperator(Operator.ADD);
  
      // Add the field mapping.
      FeedMapping newFeedMapping =
          feedMappingService.mutate(new FeedMappingOperation[] {operation}).getValue(0);
      System.out.printf(
          "Feed mapping with ID %d and criterionType %d was saved for feed with ID %d.%n",
          newFeedMapping.getFeedMappingId(),
          newFeedMapping.getCriterionType(),
          newFeedMapping.getFeedId());
    }
docs: Creates the feed mapping for the DSA page feeds.