Print each facebook ad campaign separate

558fe5180e0e8fc922d31c23ef84d240

Hey, I would need some help.
I use Facebook API to get all the Ad Campaigns that exist on my account.
I would want each ad campaign that exists, to print out seperatly, one ad campaign per box for example (https://emildeveloping.se/screenshots/POWERPNT_JcaaOq2NXx.png).

This is my code now: https://pastebin.com/HAjSD6Nr
This is the data I get back from $result2: https://pastebin.com/gXcBRRn
The errors I get with my code right now: https://emildeveloping.se/screenshots/Code_f2AMuMqZgO.png

All help is appricated.