The last ads that I created were 2-3 years ago.
Some were advertising my paid courses on Python and Pandas.
Others were advertising my free courses about regular expressions.
Still others were advertising my mailing list.
None of this comes even close to anything illegal, unless I'm massively mistaken.