Sometimes you need to know the ID of a campaign or of an affiliate or any other object. For most objects like campaigns, banners, affiliates there are 2 easy ways how you can get it. Here is an example how to get ID of a campaign but the same approach can be used for other objects as well.
1) In your merchant panel at Campaigns > Campaigns manager > click 'edit' (pencil icon) next to the desired campaign and then in the "Edit campaign" window in the top-left corner under the campaign name you will see the Campaign ID:
2) In your merchant panel at Campaigns > Campaigns manager > click "Edit view" above the grid listing the campaigns. Change the name of the new view you wish to have, check the checkbox for ID and save the view as new view. Afterwards you will see new column with IDs of the campaigns.