locked
AddCampaigns and AddOrders work OK but nothing in Sandbox RRS feed

  • Question

  • Hi,

    I added a campaign and an order successfully with the API and when I check on the sandbox, nothing's there and  getCampaigns returns an empty set.

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlnsTongue TiedOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnsTongue TiedOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns6336="http://tempuri.org">
    <SOAP-ENV:Header>
        <ApiUserAuthHeader xmlns="http://adcenter.microsoft.com/syncapis" >
            <UserName>xxxxxxxxxx</UserName>
            <Password>xxxxxxxxxx</Password>
            <UserAccessKey>xxxxx</UserAccessKey>
        </ApiUserAuthHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <AddCampaigns xmlns="http://adcenter.microsoft.com/syncapis">
            <APIFlags>0</APIFlags>
            <AccountId>9906</AccountId>
            <Campaigns>
                <AdCenterCampaign>
                    <CampaignName>Test</CampaignName>
                    <CampaignDesc>Test</CampaignDesc>
                    <MonthlyBudgetAmt>10.00</MonthlyBudgetAmt>
                    <BudgetLimitType>DivideDailyAcrossMonth</BudgetLimitType>
                    <DaylightSavingFlag>true</DaylightSavingFlag>
                    <TimeZone>Astana_Dhaka</TimeZone>
                    <NotKeywords></NotKeywords>
                </AdCenterCampaign>
            </Campaigns>
        </AddCampaigns>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    The above returns:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlnsTongue Tiedoap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <AddCampaignsResponse xmlns="http://adcenter.microsoft.com/syncapis">
    <AddCampaignsResult>
    <SuccessRow>
    <EntitySuccessType>
    <Index>0</Index>
    <Id>97308</Id>
    </EntitySuccessType>
    </SuccessRow>
    <FailedRow />
    </AddCampaignsResult>
    </AddCampaignsResponse>
    </soap:Body>
    </soap:Envelope>

    I then add an order:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlnsTongue TiedOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnsTongue TiedOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2706="http://tempuri.org">
    <SOAP-ENV:Header>
        <ApiUserAuthHeader xmlns="http://adcenter.microsoft.com/syncapis" >
            <UserName>xxxxxxxxxxxx</UserName>
            <Password>xxxxxxxxxxxxx</Password>
            <UserAccessKey>xxxxxxxx</UserAccessKey>
        </ApiUserAuthHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <AddOrders xmlns="http://adcenter.microsoft.com/syncapis">
            <APIFlags>0</APIFlags>
            <CampaignId>97308</CampaignId>
            <Orders>
                <AdCenterOrder>
                    <OrderName>AdGroup 01</OrderName>
                    <OrderStartDate>2007-12-29T00:00:00</OrderStartDate>
                    <OrderEndDate>2050-12-31T00:00:00</OrderEndDate>
                    <KwdLanguage>French</KwdLanguage>
                    <MSNDistributionSite>France</MSNDistributionSite>
                    <Medium>Search</Medium>
                    <TargetExists>false</TargetExists>
                </AdCenterOrder>
            </Orders>   
        </AddOrders>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    and the response:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlnsTongue Tiedoap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <AddOrdersResponse xmlns="http://adcenter.microsoft.com/syncapis">
    <AddOrdersResult>
    <SuccessRow>
    <EntitySuccessType>
    <Index>0</Index>
    <Id>50700196</Id>
    </EntitySuccessType>
    </SuccessRow>
    <FailedRow />
    </AddOrdersResult>
    </AddOrdersResponse>
    </soap:Body>
    </soap:Envelope>

    I call getCampaigns:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlnsTongue TiedOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnsTongue TiedOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1527="http://tempuri.org">
    <SOAP-ENV:Header>
        <ApiUserAuthHeader xmlns="http://adcenter.microsoft.com/syncapis" >
            <UserName>xxxxxxxxxxxxxx</UserName>
            <Password>xxxxxxxxxxxxxxx</Password>
            <UserAccessKey>xxxxxxxxxx</UserAccessKey>
        </ApiUserAuthHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <GetCampaigns xmlns="http://adcenter.microsoft.com/syncapis">
            <APIFlags>0</APIFlags>
            <AccountId>9906</AccountId>
        </GetCampaigns>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    and I get:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlnsTongue Tiedoap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <GetCampaignsResponse xmlns="http://adcenter.microsoft.com/syncapis">
    <GetCampaignsResult />
    </GetCampaignsResponse>
    </soap:Body>
    </soap:Envelope>

    So even though there is no error when adding a campaign or an order, I can't see them in the sandbox, either the UI or through the API.

    I tried changing its name to 'Test campaign' using updateCampaigns and now getCampaigns returns the campaign with the new name!

    Any idea?
    Friday, December 28, 2007 11:32 AM

All replies

  •  

    We have recently upgraded the Sandbox environment, so please try again. You might also try the same test with V5 of the API.

     

    Jeff Dillon, API Support

    Tuesday, February 19, 2008 6:34 AM