Bing ads api InvalidLocationId error for Italy and Japan.


  • Hi, 

    I am using Bing Ads PHP API and its working very good for USA, UK and Canada but for Italy and japan its showing error like 

    for Italy 

    <s:Envelope xmlns:s=""><s:Body><s:Fault><faultcode>s:Server</faultcode><faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information</faultstring><detail><ApiFaultDetail xmlns="Microsoft.Advertiser.AdInsight.Api.Service.V11" xmlns:i=""><TrackingId xmlns="">0caff7d6-ad89-477e-963b-3dc8950bf12e</TrackingId><BatchErrors xmlns:a=""/><OperationErrors xmlns:a=""><a:OperationError><a:Code>622</a:Code><a:Details>LocationId: 93 is not supported. </a:Details><a:ErrorCode>InvalidLocationId</a:ErrorCode><a:Message>The location id is invalid.</a:Message></a:OperationError></OperationErrors></ApiFaultDetail></detail></s:Fault></s:Body></s:Envelope>

    The operation failed with the following faults:


    Code: 622

    Error Code: InvalidLocationId

    Message: The location id is invalid.

    But in Geolocation file provided by bing have 93 as location ID. and i getting same error for  Japan for location Id 96.

    Please help


    Wednesday, January 3, 2018 7:48 AM

All replies

  • Hi Chetan,

    From your response XML, it seems like you are calling AdInsight API v11. Can you please provide more details on which service operation you are calling? Alternatively, if you can provide the full request XML, that would be better.


    Sabeshan Iyer

    Thursday, January 4, 2018 12:49 AM
  • Hello.

    If you are using GetKeywordIdeas, per the LocationCriterion doc: "Currently this feature is available in the United States, United Kingdom, Canada, Australia, France, and Germany." BTW this is also in parity with the Bing Ads web Keyword Planner tool.

    I hope this helps!


    Monday, January 8, 2018 8:34 PM