Sandbox Conversion Tracking Currently Unsupported

The adCenter sandbox at https://sandbox.adcenter.microsoft.com is a good environment to test your code. Please note that currently we do not support conversion tracking in the sandbox. For example, the following AddCampaignsRequest will return with an error code.

SOAP Request Example

 <?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="https://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <h:ApplicationToken i:nil="true" xmlns:h="https://adcenter.microsoft.com/v7" xmlns:i="https://www.w3.org/2001/XMLSchema-instance" />
    <h:CustomerAccountId xmlns:h="https://adcenter.microsoft.com/v7">***</h:CustomerAccountId>
    <h:CustomerId xmlns:h="https://adcenter.microsoft.com/v7">***</h:CustomerId>
    <h:DeveloperToken xmlns:h="https://adcenter.microsoft.com/v7">***</h:DeveloperToken>
    <h:Password xmlns:h="https://adcenter.microsoft.com/v7">***</h:Password>
    <h:UserName xmlns:h="https://adcenter.microsoft.com/v7">***</h:UserName>
  </s:Header>
  <s:Body>
    <AddCampaignsRequest xmlns="https://adcenter.microsoft.com/v7">
      <AccountId>***</AccountId>
      <Campaigns xmlns:i="https://www.w3.org/2001/XMLSchema-instance">
        <Campaign>
          <BudgetType>MonthlyBudgetDivideDailyAcrossMonth</BudgetType>
          <ConversionTrackingEnabled>true</ConversionTrackingEnabled>
          <DailyBudget i:nil="true" />
          <DaylightSaving>false</DaylightSaving>
          <Description>This will be the best ad campaign ever</Description>
          <MonthlyBudget>1000</MonthlyBudget>
          <Name>Best Ad Campaign Ever</Name>
          <NegativeKeywords i:nil="true" xmlns:a="https://schemas.microsoft.com/2003/10/Serialization/Arrays" />
          <NegativeSiteUrls i:nil="true" xmlns:a="https://schemas.microsoft.com/2003/10/Serialization/Arrays" />
          <TimeZone>EasternTimeUSCanada</TimeZone>
        </Campaign>
      </Campaigns>
    </AddCampaignsRequest>
  </s:Body>
</s:Envelope>
  

Workaround

The request structure itself is valid, as it would run live in production without any foreseeable error. To test the AddCampaigns service operation in the sandbox, the workaround is to set conversion tracking to false.

 <ConversionTrackingEnabled>false</ConversionTrackingEnabled>