The young actor in Real Steel (2011) is Dakota Goyo, who played Max Kenton. He has not appeared in Trifexis commercials for the heartworm/flea medication.
Trifexis advertisements typically feature generic child actors or animated dogs. If you recall a specific commercial, noting the year or scenario could help identify the actor—other young performers with a similar look include Jacob Tremblay, Jack Dylan Grazer, or Noah Jupe.