have you checked for an air leak around your carb?
If it's dying when you give it gas it's probably running either too rich or too lean...
dial the H screw in all the way. Start her and see what you get. Does it run? At all?
Back it out to 1.5 turns out use that as your base line.
See what happens when you give it gas. Listen to it.
When mine was lean it would sound like it was knocking, esp when I was revving it WOT... when it would get too rich it would bog down.
Turn the screw out (counterclockwise) a quarter turn at a time- while the engine is running. You'll find the sweet spot eventualy. Don't be afraid to screw it in gently all the way if you can't remember where you were at. I found it helped to ride the bike between every quarter turn, because the engine acts differently when under load.
The ryobi wanted me to back it out 1.5 turns and about another 1 quarters so a total of 2 full turns is about where she is at now.
The right mix run slightly rich is best. we are using these engines in ways never intended when designed- and they get abused...
Next thing is what are you running for mix? I ran my first 2 tanks through rich- 20:1 manufacture recommends 32:1. when I switched to the right mix it made a world of difference.
Another thing to check is the filter on the muffler. Sometimes they get clogged up that can cause bogging and dying... sometimes it's the muffler that is just plugged as well. Take the muffler off and see if it runs.
Next airfilter? Does it run with it off? IF so theress the problem