Unfortunately, at the moment you can't create a JustTextGiving code that's directly linked to your Campaign, this is a feature we hope to build in the future.
If you would like to promote a text code along with your Campaign, have a short work around you can use:
3. Promote your text code in the Campaign story
Any donations made to this text code will automatically show in your Campaign Page total and in your reports.