none
Cannot resume a single campaign, but can resume multiple campaigns.

    Question

  • Hello,

    I am trying to resume a campaign via the API.  I am calling the ResumeCampaigns function but I am receiving an error stating "Passed entity state is invalid. Please refer to documentation for list of valid values for given entity." when I attempt to resume just one campaign at a time.  Without modifying the code or credentials I am able to resume multiple campaigns (two) without error.

    I have reviewed the campaign online to ensure it is in fact paused, so updating the status to 'Active' should not be a problem.  Also when testing multiple campaigns I've made sure to use the same campaign ID which failed during the single test to rule out the possibility of the campaignID being incorrect, as mentioned above this works fine.  I have googled the error code, error message, searched the adcenter forums and blogs, but haven't found any threads or articles which appear to raise this issue.  I am running the code against the production environment so there should be no weird one off sand box issues.

    This is the failed single SOAP request:

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adcenter.microsoft.com/v8" xmlns:ns2="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <SOAP-ENV:Header>
        <ns1:ApplicationToken></ns1:ApplicationToken>
        <ns1:DeveloperToken>XXXXXXXXXXXXXXX</ns1:DeveloperToken>
        <ns1:UserName>API_XXXXXXXXXXXXXXX</ns1:UserName>
        <ns1:Password>XXXXXXXXXXXXXXX</ns1:Password>
        <ns1:CustomerAccountId>XXXXXXX</ns1:CustomerAccountId>
      </SOAP-ENV:Header>
      <SOAP-ENV:Body>
        <ns1:ResumeCampaignsRequest>
          <ns1:AccountId>XXXXXXX</ns1:AccountId>
          <ns1:CampaignIds>
            <ns2:long>130117370</ns2:long>
          </ns1:CampaignIds>
        </ns1:ResumeCampaignsRequest>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>


    Generating the error output:

    ResumeCampaigns failed.
    ApiFaultDetail exception encountered
    Tracking ID: f94f574c-f5fa-4ec2-9d13-5523e7601306
    Batch error encountered for array index 0
    Message: Passed entity state is invalid. Please refer to documentation for list of valid values for given entity.
    Details:
    ErrorCode: CampaignServiceInvalidEntity
    StateCode: 1016s:Server Invalid client data. Check the SOAP fault details for more information


    This is the successful multiple resume SOAP request:

    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adcenter.microsoft.com/v8" xmlns:ns2="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <SOAP-ENV:Header>
        <ns1:ApplicationToken></ns1:ApplicationToken>
        <ns1:DeveloperToken>XXXXXXXXXXXXXXX</ns1:DeveloperToken>
        <ns1:UserName>API_XXXXXXXXXXXXXXX</ns1:UserName>
        <ns1:Password>XXXXXXXXXXXXXXX</ns1:Password>
        <ns1:CustomerAccountId>XXXXXXX</ns1:CustomerAccountId>
      </SOAP-ENV:Header>
      <SOAP-ENV:Body>
        <ns1:ResumeCampaignsRequest>
          <ns1:AccountId>XXXXXXX</ns1:AccountId>
          <ns1:CampaignIds>
            <ns2:long>130117369</ns2:long>
            <ns2:long>130117370</ns2:long>
          </ns1:CampaignIds>
        </ns1:ResumeCampaignsRequest>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    To me the SOAP requests look identical except for the additional campaignID.  According to the documentation provided here: http://msdn.microsoft.com/en-US/library/bb671532.aspx the function "Resumes one or more campaigns." so resuming one campaign should be no problem.

    Any insight here would be much appreciated!

    Tuesday, August 07, 2012 7:40 AM

Answers

  • Hello mc1brew,

    This issue is identified as a bug and a fix is scheduled to be deploy this month.

    Thank you! :-)

    Monday, April 02, 2012 5:51 PM

All replies

  • Hello. I am aware of some cases where this could occur for example if the Account does not have payment information or is expired. The specific scenario above I was able to reproduce without a payment method. My understanding is that the adCenter Web UI does not allow you to pause / resume campaigns without payment method, and neither should the API. To confirm whether this is related you may want to contact support with full repro steps, e.g. SOAP request + response + timestamp. Please include all credentials and entity IDs except password. Thanks!
    Saturday, March 24, 2012 11:31 AM
  • Eric,

    I would imagine that is the cause since my application is only in the development phase and I have not yet setup payment.  I still find it unusual that multiple campaigns would work if a single campaign would fail (c'est la vie).

    Thanks for your response.

    Monday, March 26, 2012 10:32 AM
  • Hello mc1brew,

    This issue is identified as a bug and a fix is scheduled to be deploy this month.

    Thank you! :-)

    Monday, April 02, 2012 5:51 PM
  • Thanks Ricky

    Tuesday, August 07, 2012 7:40 AM
  • Hi Rick,

    my unit tests that create & delete campaigns have started failing upon campaign deletion with the error given above "Passed entity state is invalid. Please refer to documentation for list of valid values for given entity."  

    Deleting the campaigns using the UI works. My code has not changed. Could this be a re-occurrence of the bug?

    Oh - an example tracking ID is 3436e984-b73f-4347-a1ee-ecea957f7042.

    Thanks, Peter


    Elder coder


    Monday, May 19, 2014 1:53 PM
  • anyone?

    Elder coder

    Tuesday, May 20, 2014 1:40 PM
  • Hi Peter.

    Please escalate to support with your SOAP request and response.

    http://msdn.microsoft.com/en-US/library/aa983155.aspx#engagesupport

    In particular please provide your AccountId and CampaignId. I am able to add and delete campaigns, and while I have not confirmed it is possible you are observing an isolated issue. Again support could verify given your account and campaign details.

    I hope this helps.

    Tuesday, May 20, 2014 2:06 PM