Error creating a Microsoft ads account though the API

Rodrigo Munoz 0 Reputation points

We have been experiencing an issue with the API while trying to create a new account for the past few weeks. The response we receive is always the same: "The Address.StateOrProvince property is invalid".

We have attempted to create accounts with different countries, addresses with and without StateOrProvince, and even with the ID instead of the string, but we were unsuccessful in our attempts to make it work.

Example of Request | Response:


        <ins0:Name>Clever momo</ins0:Name>
        <ins0:Name>Account 1</ins0:Name>
          <ins0:Line1>C/ San quintin</ins0:Line1>
          <ins0:Line2>10, bajo izq</ins0:Line2>
          <ins0:BusinessName>CleverPPC S.L.</ins0:BusinessName>
      <tns:UserId xsi:nil="true"/>
      <tns:User xsi:nil="true"/>

      <faultstring>Invalid client data. Check the SOAP fault details for more information. TrackingId: 47423ffc-d53a-44a9-b961-93b3763d9771.</faultstring>
        <ApiFault xmlns="" xmlns:a="" xmlns:i="">
          <TrackingId xmlns="">47423ffc-d53a-44a9-b961-93b3763d9771</TrackingId>
              <a:Message>The Address.StateOrProvince property is invalid.</a:Message>

We have been using this service for some time now, but it started to fail in the last few weeks, so... we can only think that there is some kind of bug in the last deployment of the API

thanks for the support.

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
352 questions
0 comments No comments
{count} votes