How can I segment a test based on campaigns (like AdWord campaigns etc)?

You can segment a test based on query parameters in VWO. As you can see below you have the option of selecting different combinations of query parameters with Logical AND and OR. You can also use brackets to organize your segmentation condition as shown below in the picture. In case you wish to run a test based on AdWords campaign, you can use the query parameter that uniquely identifies your AdWord campaign to segment the test.