Ask a questionAsk a question
 

AnswerHow to retrieve customer id

  • Thursday, April 17, 2008 9:05 AMtechwill Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I just want to know the way to retrieve a customer id? I have the account information but I don't know where to look for the customer id.

    Thanks

Answers

  • Monday, July 13, 2009 1:48 AMJeff Dillon - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    You only need the CustomerID for each of your customers only if you created them via CustomerManagement.CustomerSignUp in the API. Otherwise, you would use the single parent CustomerID for your company.

    Please contact API Support to obtain your CustomerID

    Jeff Dillon, API Support

All Replies

  • Friday, April 18, 2008 10:58 AMRajitha Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    As far as i know, there will no cutomer Id. We have Account Id(numeric) and Account Number(alpha numeric), for an account. Account Id is key to do major operations.
    If you provide more information like, what do you mean by a customer id and what is the purpose, then i can help you more.

    -Rajitha Yelda.
    NetElixir
  • Thursday, April 24, 2008 11:53 PMJeff Dillon - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Do you mean the CustomerID as returned by CustomerSignUp? We would recommend storing that value locally.

     

    Jeff Dillon, API Support

  • Monday, June 15, 2009 8:29 AMCardz10 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    We also need to retrieve the customer id because we do not have copy of it. We need it to support AdCenter API version 6 new request header. Is there a way to retrieve customer id of an existing customer?

    Thanks

  • Monday, June 15, 2009 1:30 PMboy_oh_boy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    We too are in the same situation. We had not saved the customerId of the customers. Now for v6, we need this bit of information and what we have stored locally are the accountNumber and accountId only. Please let us know if there is any way at all to retrieve customerId for a particular accountId/accountNumber. 

    Thanks.

  • Tuesday, June 30, 2009 11:06 AMCardz10 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Any update on this? We really need to get this information (Customer Ids) for us to incorporate  V6  new features. Unfortunately, we could not test our code because we lack this information.

    We're getting this soap fault for this specific operation, when we didn't specify Customer Id in our Soap Header Request.

    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/v6"><SOAP-ENV:Header><ns1:ApplicationToken></ns1:ApplicationToken><ns1:CustomerAccountId>xxx</ns1:CustomerAccountId><ns1:DeveloperToken>xxxxxxxxxx</ns1:DeveloperToken><ns1:Password>xxxxxxx</ns1:Password><ns1:UserName>xxxxxxxxxx</ns1:UserName><ns1:CustomerId></ns1:CustomerId></SOAP-ENV:Header><SOAP-ENV:Body><ns1:AddTargetsToLibraryRequest><ns1:Targets/></ns1:AddTargetsToLibraryRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>

    Response:

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="en-US">The creator of this fault did not specify a Reason.</faultstring><detail><ApiFaultDetail xmlns="https://adcenter.microsoft.com/v6" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><TrackingId xmlns="https://adapi.microsoft.com">32632008-84a9-4bcc-b8ca-5e5837a3c5e2</TrackingId><BatchErrors/><OperationErrors><OperationError><Code>1029</Code><Details i:nil="true"/><ErrorCode>CampaignServiceCustomerIdHasToBeSpecified</ErrorCode><Message>Customer Id has to be specified for this operation.</Message></OperationError></OperationErrors></ApiFaultDetail></detail></s:Fault></s:Body></s:Envelope>


    Please let us know if there is a way to retrieve customerId by accountId or accountNumber, because we have not stored this information locally.
    Please reply ASAP.

    Thanks

  • Tuesday, June 30, 2009 11:41 AMdshevnock Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Have you tried contacting either your account rep or msnacapi@microsoft.com?
    Rebuilding Americas Credit - Auto Loans by Auto Credit Express
  • Thursday, July 02, 2009 6:08 AMCardz10 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi dshevnock,

    Thanks for the suggestion. I have already contacted msnacapi@microsoft.com, they said that the CustomerId is not currently available through API and they are working on it for future updates. For those who really want to get those information you can send the account IDs  to msnacapi@microsoft.com and they will provide it.

    Thanks
  • Monday, July 13, 2009 1:48 AMJeff Dillon - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    You only need the CustomerID for each of your customers only if you created them via CustomerManagement.CustomerSignUp in the API. Otherwise, you would use the single parent CustomerID for your company.

    Please contact API Support to obtain your CustomerID

    Jeff Dillon, API Support