We are building a web app.
The page you open is the list of all the email campaigns you created.
Each line - is a separate campaign, the line contains the name, date created, status(active/inactive).
From this view, you can change the status of the campaign and click on the status to change it.
How should I better design this active/inactive button in Material design?
You can simply display "active" and "inactive" as the value of your drop box instead of "status". It is pretty much intuitive.
You should use the Material Design Switch in order to align your website with the material design guidelines. Check the implementation guidelines here.
Applying the switch to your grid, the basic structure could look like this :