"appeasing guilt with charity donations" implies something like "ads -> guilt -> donations". That the donations came years before the ads is pretty good evidence otherwise?
I make no judgement as to whether you are or are not attempting to offset guilt with donations, but no, I'm not sure the order of events matters that much.
A person who donates generously may more easily justify dubious money-earning efforts by saying, "it's really not for me so much, it's for the kids!" In other words, it is possible (again, not saying this is case for you) that one might take a job in advertising because they feel their donations provide ethical cover.