none
SuggestKeywordsFromExistingKeywordsRequest failing with internal error RRS feed

  • Question

  • Hi,

    I am seeing the SuggestKeywordsFromExistingKeywordsRequest API call failing in v10 with Internal API error. Can you please have a look at it and say what could be wrong with the request?

    <SOAP-ENV:Body>
    <SuggestKeywordsFromExistingKeywordsRequest xmlns="https://bingads.microsoft.com/AdInsight/v10" SOAP-ENC:root="1">
    <Keywords>
    <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">example</string>
    <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">sample</string>
    </Keywords>
    <Language>English</Language>
    <MaxSuggestionsPerKeyword>5</MaxSuggestionsPerKeyword>
    </SuggestKeywordsFromExistingKeywordsRequest>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ************************************************************************
    *** Incoming HTTP headers **********************************************
    HTTP/1.? 500 Internal Server Error
    Cache-Control: private
    Content-Length: 730
    Content-Type: text/xml; charset=utf-8
    Server: Microsoft-IIS/8.5
    X-StartTick: 635862389993556069
    X-AspNet-Version: 4.0.30319
    X-ServerDuration: 218ms
    X-EndTick: 635862389995743689
    X-Powered-By: ASP.NET
    Date: Sun, 20 Dec 2015 20:09:58 GMT
    Connection: close
    ************************************************************************
    *** Incoming SOAP ******************************************************
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode><faultstring xml:lang="en-US">The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.</faultstring></s:Fault></s:Body></s:Envelope>
    ************************************************************************

    Thanks

    Vignesh


    • Edited by guruv_s Sunday, December 20, 2015 8:13 PM
    Sunday, December 20, 2015 8:12 PM

Answers

  • Hi Vignesh.

    Here is a working sample SOAP request:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
      <s:Header>
        <h:ApplicationToken i:nil="true" xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
        <h:AuthenticationToken xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service">***</h:AuthenticationToken>
        <h:CustomerAccountId xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service">***</h:CustomerAccountId>
        <h:CustomerId xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service">***</h:CustomerId>
        <h:DeveloperToken xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service">***</h:DeveloperToken>
        <h:Password i:nil="true" xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
        <h:UserName i:nil="true" xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
      </s:Header>
      <s:Body>
        <SuggestKeywordsFromExistingKeywordsRequest xmlns="Microsoft.Advertiser.AdInsight.Api.Service">
          <Keywords xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:string>example</a:string>
            <a:string>sample</a:string>
          </Keywords>
          <Language>English</Language>
          <PublisherCountries i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <MaxSuggestionsPerKeyword>5</MaxSuggestionsPerKeyword>
          <SuggestionType i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <RemoveDuplicates i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <ExcludeBrand i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <AdGroupId i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <CampaignId i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
        </SuggestKeywordsFromExistingKeywordsRequest>
      </s:Body>
    </s:Envelope>

    I hope this helps!

    Tuesday, December 22, 2015 12:52 AM
    Owner

All replies

  • Hi Vignesh.

    Here is a working sample SOAP request:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
      <s:Header>
        <h:ApplicationToken i:nil="true" xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
        <h:AuthenticationToken xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service">***</h:AuthenticationToken>
        <h:CustomerAccountId xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service">***</h:CustomerAccountId>
        <h:CustomerId xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service">***</h:CustomerId>
        <h:DeveloperToken xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service">***</h:DeveloperToken>
        <h:Password i:nil="true" xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
        <h:UserName i:nil="true" xmlns:h="Microsoft.Advertiser.AdInsight.Api.Service" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
      </s:Header>
      <s:Body>
        <SuggestKeywordsFromExistingKeywordsRequest xmlns="Microsoft.Advertiser.AdInsight.Api.Service">
          <Keywords xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:string>example</a:string>
            <a:string>sample</a:string>
          </Keywords>
          <Language>English</Language>
          <PublisherCountries i:nil="true" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <MaxSuggestionsPerKeyword>5</MaxSuggestionsPerKeyword>
          <SuggestionType i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <RemoveDuplicates i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <ExcludeBrand i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <AdGroupId i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
          <CampaignId i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" />
        </SuggestKeywordsFromExistingKeywordsRequest>
      </s:Body>
    </s:Envelope>

    I hope this helps!

    Tuesday, December 22, 2015 12:52 AM
    Owner
  • Thanks Eric for the answer.


    Tuesday, December 22, 2015 9:52 AM