Following the success of TV spots plugging the G.I. JOE comic book, a crafty way of circumventing rules about using animation to promote toys, Hasbro bankrolled similar spots to launch Marvel's TRANSFORMERS limited series.
The commercial is only very loosely based on the plot of the first issue. Note that Megatron's design is significantly different to the model sheets used on the animated series.
Both the G.I. JOE and TRANSFORMERS commercials were produced by Sunbow and Marvel Productions.
This would have aired around August/ September 1984.