Hi,
We are doing the same thing here, and have Production and Sandbox access in the same app, but don't run into multiple definitions. I have a single CampaignManagementService.cs in my project. Within that file, there is a single class definition:
public partial class AdApiFaultDetail : Microsoft.AdApi.ApplicationFault
{...}
In the code, we have something similar to:
if (chkSand.Checked)
svcCampMgt = new CampaignManagementServiceClient("Sandbox_BasicHttpBinding_ICampaignManagementService");
else
svcCampMgt = new CampaignManagementServiceClient("BasicHttpBinding_ICampaignManagementService");
Ah, I see. You are doing it at compile time, and I am doing here at runtime. But does this help? I guess you would have the wrap each definition within #ifdef
Jeff Dillon, API Support