Aware of how John Kerry 's failure to rebut the " swift-boat " attacks against him quickly in 2004 damaged his presidential campaign , Mr Obama has used negative advertisements in a series of swing states .