private static FeedAttribute[] addLine1And2FeedAttributes(AdWordsServices adWordsServices,
AdWordsSession session, Feed feed) throws Exception {
// This will be the starting index for the new attributes created below.
int nextAttributeIndex = feed.getAttributes().length;
FeedAttribute line1Attribute = new FeedAttribute();
FeedAttribute line2Attribute = new FeedAttribute();
line1Attribute.setType(FeedAttributeType.STRING);
line1Attribute.setName("Line 1 Description");
line2Attribute.setType(FeedAttributeType.STRING);
line2Attribute.setName("Line 2 Description");
feed.setAttributes(new FeedAttribute[] {line1Attribute, line2Attribute});
FeedOperation feedOperation = new FeedOperation();
feedOperation.setOperand(feed);
feedOperation.setOperator(Operator.SET);