Muokkaa

Jaa


SignupCustomer Service Operation - Customer Management

Creates a new customer and account.

Typically you must be a user with aggregator credentials to call this operation. In that case, the operation creates a new customer and account that roll up to your aggregator payment method. The AdvertiserAccount object must include the name of the account, the type of currency to use to settle the account, and the payment method identifier must be set to null. The operation generates an invoice account and sets the payment method identifier to the identifier associated with the aggregator's invoice. You are invoiced for all charges incurred by the customers that you manage.

Note

Agency customers in the Create Accounts on Behalf of Client pilot (GetCustomerPilotFeatures returns 793) can sign up a new customer on behalf of a client and optionally link to the new account as an agency. In this case a UserInvitation is sent and the client must complete sign up steps via the Microsoft Advertising UI such as accept the terms and conditions.

Note

Customers in the closed Unified smart campaigns pilot can sign up a new customer with an account for Unified smart campaigns. Optionally they can link to the new account as an agency. The super admin is provisioned by either setting the UserId or UserInvitation element.

Note

Customers in the seamlessly set up client account and PI pilot can sign up a new customer with an account and create an admin user simultaneously. The admin user is provisioned by setting the User element. And the customer must complete sign up steps via the Microsoft Advertising UI on the Microsoft Advertising activating customer page.

Request Elements

The SignupCustomerRequest object defines the body and header elements of the service operation request. The elements must be in the same order as shown in the Request SOAP.

Note

Unless otherwise noted below, all request elements are required.

Request Body Elements

Element Description Data Type
Account An AdvertiserAccount that specifies the details of the customer's primary account.

Customers in the closed Unified smart campaigns pilot must set the AccountMode element to "UnifiedSmart".
AdvertiserAccount
Customer A Customer that specifies the details of the customer that you are adding. Customer
ParentCustomerId The customer identifier of the aggregator or agency that will manage the new child customer.

This element is required for aggregators but ignored for agencies when the UserInvitation request element is set. Customers in the closed Unified smart campaigns pilot can link the new customer to the parent agency ID or leave this element empty.
long
User The user to create. You can fulfill this element if you want to sign up a new customer and create a new admin user simultaneously.

After the new customer is signed up, the newly created admin user must complete sign up steps via the Microsoft Advertising UI on the Microsoft Advertising activating customer page. The URL is https://ads.microsoft.com/ActivateCustomer?cid={new_customer_Id}&aid={new_account_Id} where new_customer_Id and new_account_Id are the IDs you get in the SignupCustomerResponse.

The AuthenticationToken in the User element is the OAuth access token that represents the credentials of the new admin user who will be created during signup.

Customers in the seamlessly set up client account and PI pilot must set one or more of the UserId or UserInvitation or User.

The required fields in the User object are ContactInfo.Email, Name.FirstName, Name.LastName and AuthenticationToken.
User
UserId The identifier of an existing user who will be added as Super Admin in the new customer.

This element is only available for customers in the closed Unified smart campaigns pilot. One or more of the UserId or UserInvitation element must be set.
long
UserInvitation The user invitation to send if you want to sign up a new customer on behalf of a client and optionally link to the new account as an agency.

A client Super Admin user must complete sign up steps via the Microsoft Advertising UI such as accept the terms and conditions.

This element is optional for agency customers in the Create Accounts on Behalf of Client pilot.

Customers in the closed Unified smart campaigns pilot must set one or more of the UserId or UserInvitation element.
UserInvitation

Request Header Elements

Element Description Data Type
AuthenticationToken The OAuth access token that represents the credentials of a user who has permissions to Microsoft Advertising accounts.

For more information see Authentication with OAuth.
string
DeveloperToken The developer token used to access the Bing Ads API.

For more information see Get a Developer Token.
string
Password This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. string
UserName This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. string

Response Elements

The SignupCustomerResponse object defines the body and header elements of the service operation response. The elements are returned in the same order as shown in the Response SOAP.

Response Body Elements

Element Description Data Type
AccountId A system-generated account identifier corresponding to the new account specified in the request.

Use this identifier with operation requests that require an AccountId body element and a CustomerAccountId SOAP header element.
long
AccountNumber The system-generated account number that is used to identify the account in the Microsoft Advertising web application.

The account number has the form xxxxxxxx, where xxxxxxxx is a series of any eight alphanumeric characters.
string
CreateTime The date and time that the account was added. The date and time value reflects the date and time at the server, not the client. For information about the format of the date and time, see the dateTime entry in Primitive XML Data Types. dateTime
CustomerId A system-generated customer identifier corresponding to the new customer specified in the request.

Use this identifier with operation requests that require a CustomerId SOAP header element.
long
CustomerNumber A system-generated customer number that is used in the Microsoft Advertising web application.

The customer number has the form xxxxxxxxxx, where xxxxxxxxxx is a series of any ten alphanumeric characters.
string

Response Header Elements

Element Description Data Type
TrackingId The identifier of the log entry that contains the details of the API call. string

Request SOAP

This template was generated by a tool to show the order of the body and header elements for the SOAP request. For supported types that you can use with this service operation, see the Request Body Elements reference above.

<s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header xmlns="https://bingads.microsoft.com/Customer/v13">
    <Action mustUnderstand="1">SignupCustomer</Action>
    <AuthenticationToken i:nil="false">ValueHere</AuthenticationToken>
    <DeveloperToken i:nil="false">ValueHere</DeveloperToken>
  </s:Header>
  <s:Body>
    <SignupCustomerRequest xmlns="https://bingads.microsoft.com/Customer/v13">
      <Customer xmlns:e559="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e559:CustomerFinancialStatus i:nil="false">ValueHere</e559:CustomerFinancialStatus>
        <e559:Id i:nil="false">ValueHere</e559:Id>
        <e559:Industry i:nil="false">ValueHere</e559:Industry>
        <e559:LastModifiedByUserId i:nil="false">ValueHere</e559:LastModifiedByUserId>
        <e559:LastModifiedTime i:nil="false">ValueHere</e559:LastModifiedTime>
        <e559:MarketCountry i:nil="false">ValueHere</e559:MarketCountry>
        <e559:ForwardCompatibilityMap xmlns:e560="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
          <e560:KeyValuePairOfstringstring>
            <e560:key i:nil="false">ValueHere</e560:key>
            <e560:value i:nil="false">ValueHere</e560:value>
          </e560:KeyValuePairOfstringstring>
        </e559:ForwardCompatibilityMap>
        <e559:MarketLanguage i:nil="false">ValueHere</e559:MarketLanguage>
        <e559:Name i:nil="false">ValueHere</e559:Name>
        <e559:ServiceLevel i:nil="false">ValueHere</e559:ServiceLevel>
        <e559:CustomerLifeCycleStatus i:nil="false">ValueHere</e559:CustomerLifeCycleStatus>
        <e559:TimeStamp i:nil="false">ValueHere</e559:TimeStamp>
        <e559:Number i:nil="false">ValueHere</e559:Number>
        <e559:CustomerAddress i:nil="false">
          <e559:City i:nil="false">ValueHere</e559:City>
          <e559:CountryCode i:nil="false">ValueHere</e559:CountryCode>
          <e559:Id i:nil="false">ValueHere</e559:Id>
          <e559:Line1 i:nil="false">ValueHere</e559:Line1>
          <e559:Line2 i:nil="false">ValueHere</e559:Line2>
          <e559:Line3 i:nil="false">ValueHere</e559:Line3>
          <e559:Line4 i:nil="false">ValueHere</e559:Line4>
          <e559:PostalCode i:nil="false">ValueHere</e559:PostalCode>
          <e559:StateOrProvince i:nil="false">ValueHere</e559:StateOrProvince>
          <e559:TimeStamp i:nil="false">ValueHere</e559:TimeStamp>
          <e559:BusinessName i:nil="false">ValueHere</e559:BusinessName>
        </e559:CustomerAddress>
      </Customer>
      <Account xmlns:e561="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e561:BillToCustomerId i:nil="false">ValueHere</e561:BillToCustomerId>
        <e561:CurrencyCode i:nil="false">ValueHere</e561:CurrencyCode>
        <e561:AccountFinancialStatus i:nil="false">ValueHere</e561:AccountFinancialStatus>
        <e561:Id i:nil="false">ValueHere</e561:Id>
        <e561:Language i:nil="false">ValueHere</e561:Language>
        <e561:LastModifiedByUserId i:nil="false">ValueHere</e561:LastModifiedByUserId>
        <e561:LastModifiedTime i:nil="false">ValueHere</e561:LastModifiedTime>
        <e561:Name i:nil="false">ValueHere</e561:Name>
        <e561:Number i:nil="false">ValueHere</e561:Number>
        <e561:ParentCustomerId>ValueHere</e561:ParentCustomerId>
        <e561:PaymentMethodId i:nil="false">ValueHere</e561:PaymentMethodId>
        <e561:PaymentMethodType i:nil="false">ValueHere</e561:PaymentMethodType>
        <e561:PrimaryUserId i:nil="false">ValueHere</e561:PrimaryUserId>
        <e561:AccountLifeCycleStatus i:nil="false">ValueHere</e561:AccountLifeCycleStatus>
        <e561:TimeStamp i:nil="false">ValueHere</e561:TimeStamp>
        <e561:TimeZone i:nil="false">ValueHere</e561:TimeZone>
        <e561:PauseReason i:nil="false">ValueHere</e561:PauseReason>
        <e561:ForwardCompatibilityMap xmlns:e562="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
          <e562:KeyValuePairOfstringstring>
            <e562:key i:nil="false">ValueHere</e562:key>
            <e562:value i:nil="false">ValueHere</e562:value>
          </e562:KeyValuePairOfstringstring>
        </e561:ForwardCompatibilityMap>
        <e561:LinkedAgencies i:nil="false">
          <e561:CustomerInfo>
            <e561:Id i:nil="false">ValueHere</e561:Id>
            <e561:Name i:nil="false">ValueHere</e561:Name>
          </e561:CustomerInfo>
        </e561:LinkedAgencies>
        <e561:SalesHouseCustomerId i:nil="false">ValueHere</e561:SalesHouseCustomerId>
        <e561:TaxInformation xmlns:e563="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
          <e563:KeyValuePairOfstringstring>
            <e563:key i:nil="false">ValueHere</e563:key>
            <e563:value i:nil="false">ValueHere</e563:value>
          </e563:KeyValuePairOfstringstring>
        </e561:TaxInformation>
        <e561:BackUpPaymentInstrumentId i:nil="false">ValueHere</e561:BackUpPaymentInstrumentId>
        <e561:BillingThresholdAmount i:nil="false">ValueHere</e561:BillingThresholdAmount>
        <e561:BusinessAddress i:nil="false">
          <e561:City i:nil="false">ValueHere</e561:City>
          <e561:CountryCode i:nil="false">ValueHere</e561:CountryCode>
          <e561:Id i:nil="false">ValueHere</e561:Id>
          <e561:Line1 i:nil="false">ValueHere</e561:Line1>
          <e561:Line2 i:nil="false">ValueHere</e561:Line2>
          <e561:Line3 i:nil="false">ValueHere</e561:Line3>
          <e561:Line4 i:nil="false">ValueHere</e561:Line4>
          <e561:PostalCode i:nil="false">ValueHere</e561:PostalCode>
          <e561:StateOrProvince i:nil="false">ValueHere</e561:StateOrProvince>
          <e561:TimeStamp i:nil="false">ValueHere</e561:TimeStamp>
          <e561:BusinessName i:nil="false">ValueHere</e561:BusinessName>
        </e561:BusinessAddress>
        <e561:AutoTagType i:nil="false">ValueHere</e561:AutoTagType>
        <e561:SoldToPaymentInstrumentId i:nil="false">ValueHere</e561:SoldToPaymentInstrumentId>
        <e561:TaxCertificate i:nil="false">
          <e561:TaxCertificateBlobContainerName i:nil="false">ValueHere</e561:TaxCertificateBlobContainerName>
          <e561:TaxCertificates xmlns:e564="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
            <e564:KeyValuePairOfstringbase64Binary>
              <e564:key i:nil="false">ValueHere</e564:key>
              <e564:value i:nil="false">ValueHere</e564:value>
            </e564:KeyValuePairOfstringbase64Binary>
          </e561:TaxCertificates>
          <e561:Status i:nil="false">ValueHere</e561:Status>
        </e561:TaxCertificate>
        <e561:AccountMode i:nil="false">ValueHere</e561:AccountMode>
      </Account>
      <ParentCustomerId i:nil="false">ValueHere</ParentCustomerId>
      <UserInvitation xmlns:e565="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e565:Id>ValueHere</e565:Id>
        <e565:FirstName i:nil="false">ValueHere</e565:FirstName>
        <e565:LastName i:nil="false">ValueHere</e565:LastName>
        <e565:Email i:nil="false">ValueHere</e565:Email>
        <e565:CustomerId>ValueHere</e565:CustomerId>
        <e565:RoleId>ValueHere</e565:RoleId>
        <e565:AccountIds i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <a1:long>ValueHere</a1:long>
        </e565:AccountIds>
        <e565:ExpirationDate>ValueHere</e565:ExpirationDate>
        <e565:Lcid>ValueHere</e565:Lcid>
      </UserInvitation>
      <UserId i:nil="false">ValueHere</UserId>
      <User xmlns:e566="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e566:ContactInfo i:nil="false">
          <e566:Address i:nil="false">
            <e566:City i:nil="false">ValueHere</e566:City>
            <e566:CountryCode i:nil="false">ValueHere</e566:CountryCode>
            <e566:Id i:nil="false">ValueHere</e566:Id>
            <e566:Line1 i:nil="false">ValueHere</e566:Line1>
            <e566:Line2 i:nil="false">ValueHere</e566:Line2>
            <e566:Line3 i:nil="false">ValueHere</e566:Line3>
            <e566:Line4 i:nil="false">ValueHere</e566:Line4>
            <e566:PostalCode i:nil="false">ValueHere</e566:PostalCode>
            <e566:StateOrProvince i:nil="false">ValueHere</e566:StateOrProvince>
            <e566:TimeStamp i:nil="false">ValueHere</e566:TimeStamp>
            <e566:BusinessName i:nil="false">ValueHere</e566:BusinessName>
          </e566:Address>
          <e566:ContactByPhone i:nil="false">ValueHere</e566:ContactByPhone>
          <e566:ContactByPostalMail i:nil="false">ValueHere</e566:ContactByPostalMail>
          <e566:Email i:nil="false">ValueHere</e566:Email>
          <e566:EmailFormat i:nil="false">ValueHere</e566:EmailFormat>
          <e566:Fax i:nil="false">ValueHere</e566:Fax>
          <e566:HomePhone i:nil="false">ValueHere</e566:HomePhone>
          <e566:Id i:nil="false">ValueHere</e566:Id>
          <e566:Mobile i:nil="false">ValueHere</e566:Mobile>
          <e566:Phone1 i:nil="false">ValueHere</e566:Phone1>
          <e566:Phone2 i:nil="false">ValueHere</e566:Phone2>
        </e566:ContactInfo>
        <e566:CustomerId i:nil="false">ValueHere</e566:CustomerId>
        <e566:Id i:nil="false">ValueHere</e566:Id>
        <e566:JobTitle i:nil="false">ValueHere</e566:JobTitle>
        <e566:LastModifiedByUserId i:nil="false">ValueHere</e566:LastModifiedByUserId>
        <e566:LastModifiedTime i:nil="false">ValueHere</e566:LastModifiedTime>
        <e566:Lcid i:nil="false">ValueHere</e566:Lcid>
        <e566:Name i:nil="false">
          <e566:FirstName i:nil="false">ValueHere</e566:FirstName>
          <e566:LastName i:nil="false">ValueHere</e566:LastName>
          <e566:MiddleInitial i:nil="false">ValueHere</e566:MiddleInitial>
        </e566:Name>
        <e566:Password i:nil="false">ValueHere</e566:Password>
        <e566:SecretAnswer i:nil="false">ValueHere</e566:SecretAnswer>
        <e566:SecretQuestion>ValueHere</e566:SecretQuestion>
        <e566:UserLifeCycleStatus i:nil="false">ValueHere</e566:UserLifeCycleStatus>
        <e566:TimeStamp i:nil="false">ValueHere</e566:TimeStamp>
        <e566:UserName i:nil="false">ValueHere</e566:UserName>
        <e566:ForwardCompatibilityMap xmlns:e567="http://schemas.datacontract.org/2004/07/System.Collections.Generic" i:nil="false">
          <e567:KeyValuePairOfstringstring>
            <e567:key i:nil="false">ValueHere</e567:key>
            <e567:value i:nil="false">ValueHere</e567:value>
          </e567:KeyValuePairOfstringstring>
        </e566:ForwardCompatibilityMap>
        <e566:AuthenticationToken i:nil="false">ValueHere</e566:AuthenticationToken>
      </User>
    </SignupCustomerRequest>
  </s:Body>
</s:Envelope>

Response SOAP

This template was generated by a tool to show the order of the body and header elements for the SOAP response.

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header xmlns="https://bingads.microsoft.com/Customer/v13">
    <TrackingId d3p1:nil="false" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</TrackingId>
  </s:Header>
  <s:Body>
    <SignupCustomerResponse xmlns="https://bingads.microsoft.com/Customer/v13">
      <CustomerId>ValueHere</CustomerId>
      <CustomerNumber d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</CustomerNumber>
      <AccountId d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</AccountId>
      <AccountNumber d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</AccountNumber>
      <CreateTime>ValueHere</CreateTime>
    </SignupCustomerResponse>
  </s:Body>
</s:Envelope>

Code Syntax

The example syntax can be used with Bing Ads SDKs. See Bing Ads API Code Examples for more examples.

public async Task<SignupCustomerResponse> SignupCustomerAsync(
	Customer customer,
	AdvertiserAccount account,
	long? parentCustomerId,
	UserInvitation userInvitation,
	long? userId,
	User user)
{
	var request = new SignupCustomerRequest
	{
		Customer = customer,
		Account = account,
		ParentCustomerId = parentCustomerId,
		UserInvitation = userInvitation,
		UserId = userId,
		User = user
	};

	return (await CustomerManagementService.CallAsync((s, r) => s.SignupCustomerAsync(r), request));
}
static SignupCustomerResponse signupCustomer(
	Customer customer,
	AdvertiserAccount account,
	java.lang.Long parentCustomerId,
	UserInvitation userInvitation,
	java.lang.Long userId,
	User user) throws RemoteException, Exception
{
	SignupCustomerRequest request = new SignupCustomerRequest();

	request.setCustomer(customer);
	request.setAccount(account);
	request.setParentCustomerId(parentCustomerId);
	request.setUserInvitation(userInvitation);
	request.setUserId(userId);
	request.setUser(user);

	return CustomerManagementService.getService().signupCustomer(request);
}
static function SignupCustomer(
	$customer,
	$account,
	$parentCustomerId,
	$userInvitation,
	$userId,
	$user)
{

	$GLOBALS['Proxy'] = $GLOBALS['CustomerManagementProxy'];

	$request = new SignupCustomerRequest();

	$request->Customer = $customer;
	$request->Account = $account;
	$request->ParentCustomerId = $parentCustomerId;
	$request->UserInvitation = $userInvitation;
	$request->UserId = $userId;
	$request->User = $user;

	return $GLOBALS['CustomerManagementProxy']->GetService()->SignupCustomer($request);
}
response=customermanagement_service.SignupCustomer(
	Customer=Customer,
	Account=Account,
	ParentCustomerId=ParentCustomerId,
	UserInvitation=UserInvitation,
	UserId=UserId,
	User=User)

Requirements

Service: CustomerManagementService.svc v13
Namespace: https://bingads.microsoft.com/Customer/v13

Request Url

https://clientcenter.api.bingads.microsoft.com/CustomerManagement/v13/Customer/Signup

Request Elements

The SignupCustomerRequest object defines the body and header elements of the service operation request.

Note

Unless otherwise noted below, all request elements are required.

Request Body Elements

Element Description Data Type
Account An AdvertiserAccount that specifies the details of the customer's primary account.

Customers in the closed Unified smart campaigns pilot must set the AccountMode element to "UnifiedSmart".
AdvertiserAccount
Customer A Customer that specifies the details of the customer that you are adding. Customer
ParentCustomerId The customer identifier of the aggregator or agency that will manage the new child customer.

This element is required for aggregators but ignored for agencies when the UserInvitation request element is set. Customers in the closed Unified smart campaigns pilot can link the new customer to the parent agency ID or leave this element empty.
long
User The user to create. You can fulfill this element if you want to sign up a new customer and create a new admin user simultaneously.

After the new customer is signed up, the newly created admin user must complete sign up steps via the Microsoft Advertising UI on the Microsoft Advertising activating customer page. The URL is https://ads.microsoft.com/ActivateCustomer?cid={new_customer_Id}&aid={new_account_Id} where new_customer_Id and new_account_Id are the IDs you get in the SignupCustomerResponse.

The AuthenticationToken in the User element is the OAuth access token that represents the credentials of the new admin user who will be created during signup.

Customers in the seamlessly set up client account and PI pilot must set one or more of the UserId or UserInvitation or User.

The required fields in the User object are ContactInfo.Email, Name.FirstName, Name.LastName and AuthenticationToken.
User
UserId The identifier of an existing user who will be added as Super Admin in the new customer.

This element is only available for customers in the closed Unified smart campaigns pilot. One or more of the UserId or UserInvitation element must be set.
long
UserInvitation The user invitation to send if you want to sign up a new customer on behalf of a client and optionally link to the new account as an agency.

A client Super Admin user must complete sign up steps via the Microsoft Advertising UI such as accept the terms and conditions.

This element is optional for agency customers in the Create Accounts on Behalf of Client pilot.

Customers in the closed Unified smart campaigns pilot must set one or more of the UserId or UserInvitation element.
UserInvitation

Request Header Elements

Element Description Data Type
Authorization The OAuth access token that represents the credentials of a user who has permissions to Microsoft Advertising accounts. Please ensure that the token is prefixed with "Bearer ", this is necessary for proper authentication.

For more information see Authentication with OAuth.
string
DeveloperToken The developer token used to access the Bing Ads API.

For more information see Get a Developer Token.
string
Password This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. string
UserName This element is reserved for internal use and will be removed from a future version of the API. You must use the AuthenticationToken element to set user credentials. string

Response Elements

The SignupCustomerResponse object defines the body and header elements of the service operation response. The elements are returned in the same order as shown in the Response JSON.

Response Body Elements

Element Description Data Type
AccountId A system-generated account identifier corresponding to the new account specified in the request.

Use this identifier with operation requests that require an AccountId body element and a CustomerAccountId SOAP header element.
long
AccountNumber The system-generated account number that is used to identify the account in the Microsoft Advertising web application.

The account number has the form xxxxxxxx, where xxxxxxxx is a series of any eight alphanumeric characters.
string
CreateTime The date and time that the account was added. The date and time value reflects the date and time at the server, not the client. For information about the format of the date and time, see the dateTime entry in Primitive XML Data Types. dateTime
CustomerId A system-generated customer identifier corresponding to the new customer specified in the request.

Use this identifier with operation requests that require a CustomerId SOAP header element.
long
CustomerNumber A system-generated customer number that is used in the Microsoft Advertising web application.

The customer number has the form xxxxxxxxxx, where xxxxxxxxxx is a series of any ten alphanumeric characters.
string

Response Header Elements

Element Description Data Type
TrackingId The identifier of the log entry that contains the details of the API call. string

Request JSON

This template was generated by a tool to show the body and header elements for the JSON request. For supported types that you can use with this service operation, see the Request Body Elements reference above.

{
  "Customer": {
    "CustomerAddress": {
      "BusinessName": "ValueHere",
      "City": "ValueHere",
      "CountryCode": "ValueHere",
      "Id": "LongValueHere",
      "Line1": "ValueHere",
      "Line2": "ValueHere",
      "Line3": "ValueHere",
      "Line4": "ValueHere",
      "PostalCode": "ValueHere",
      "StateOrProvince": "ValueHere",
      "TimeStamp": "ValueHere"
    },
    "CustomerFinancialStatus": "ValueHere",
    "CustomerLifeCycleStatus": "ValueHere",
    "ForwardCompatibilityMap": [
      {
        "key": "ValueHere",
        "value": "ValueHere"
      }
    ],
    "Id": "LongValueHere",
    "Industry": "ValueHere",
    "LastModifiedByUserId": "LongValueHere",
    "LastModifiedTime": "ValueHere",
    "MarketCountry": "ValueHere",
    "MarketLanguage": "ValueHere",
    "Name": "ValueHere",
    "Number": "ValueHere",
    "ServiceLevel": "ValueHere",
    "TimeStamp": "ValueHere"
  },
  "Account": {
    "AccountFinancialStatus": "ValueHere",
    "AccountLifeCycleStatus": "ValueHere",
    "AccountMode": "ValueHere",
    "AutoTagType": "ValueHere",
    "BackUpPaymentInstrumentId": "LongValueHere",
    "BillingThresholdAmount": DecimalValueHere,
    "BillToCustomerId": "LongValueHere",
    "BusinessAddress": {
      "BusinessName": "ValueHere",
      "City": "ValueHere",
      "CountryCode": "ValueHere",
      "Id": "LongValueHere",
      "Line1": "ValueHere",
      "Line2": "ValueHere",
      "Line3": "ValueHere",
      "Line4": "ValueHere",
      "PostalCode": "ValueHere",
      "StateOrProvince": "ValueHere",
      "TimeStamp": "ValueHere"
    },
    "CurrencyCode": "ValueHere",
    "ForwardCompatibilityMap": [
      {
        "key": "ValueHere",
        "value": "ValueHere"
      }
    ],
    "Id": "LongValueHere",
    "Language": "ValueHere",
    "LastModifiedByUserId": "LongValueHere",
    "LastModifiedTime": "ValueHere",
    "LinkedAgencies": [
      {
        "Id": "LongValueHere",
        "Name": "ValueHere"
      }
    ],
    "Name": "ValueHere",
    "Number": "ValueHere",
    "ParentCustomerId": "LongValueHere",
    "PauseReason": "ValueHere",
    "PaymentMethodId": "LongValueHere",
    "PaymentMethodType": "ValueHere",
    "PrimaryUserId": "LongValueHere",
    "SalesHouseCustomerId": "LongValueHere",
    "SoldToPaymentInstrumentId": "LongValueHere",
    "TaxCertificate": {
      "Status": "ValueHere",
      "TaxCertificateBlobContainerName": "ValueHere",
      "TaxCertificates": [
        {
          "key": "ValueHere",
          "value": "ValueHere"
        }
      ]
    },
    "TaxInformation": [
      {
        "key": "ValueHere",
        "value": "ValueHere"
      }
    ],
    "TimeStamp": "ValueHere",
    "TimeZone": "ValueHere"
  },
  "ParentCustomerId": "LongValueHere",
  "UserInvitation": {
    "AccountIds": [
      "LongValueHere"
    ],
    "CustomerId": "LongValueHere",
    "Email": "ValueHere",
    "ExpirationDate": "ValueHere",
    "FirstName": "ValueHere",
    "Id": "LongValueHere",
    "LastName": "ValueHere",
    "Lcid": "ValueHere",
    "RoleId": IntValueHere
  },
  "UserId": "LongValueHere",
  "User": {
    "AuthenticationToken": "ValueHere",
    "ContactInfo": {
      "Address": {
        "BusinessName": "ValueHere",
        "City": "ValueHere",
        "CountryCode": "ValueHere",
        "Id": "LongValueHere",
        "Line1": "ValueHere",
        "Line2": "ValueHere",
        "Line3": "ValueHere",
        "Line4": "ValueHere",
        "PostalCode": "ValueHere",
        "StateOrProvince": "ValueHere",
        "TimeStamp": "ValueHere"
      },
      "ContactByPhone": "ValueHere",
      "ContactByPostalMail": "ValueHere",
      "Email": "ValueHere",
      "EmailFormat": "ValueHere",
      "Fax": "ValueHere",
      "HomePhone": "ValueHere",
      "Id": "LongValueHere",
      "Mobile": "ValueHere",
      "Phone1": "ValueHere",
      "Phone2": "ValueHere"
    },
    "CustomerId": "LongValueHere",
    "ForwardCompatibilityMap": [
      {
        "key": "ValueHere",
        "value": "ValueHere"
      }
    ],
    "Id": "LongValueHere",
    "JobTitle": "ValueHere",
    "LastModifiedByUserId": "LongValueHere",
    "LastModifiedTime": "ValueHere",
    "Lcid": "ValueHere",
    "Name": {
      "FirstName": "ValueHere",
      "LastName": "ValueHere",
      "MiddleInitial": "ValueHere"
    },
    "Password": "ValueHere",
    "SecretAnswer": "ValueHere",
    "SecretQuestion": "ValueHere",
    "TimeStamp": "ValueHere",
    "UserLifeCycleStatus": "ValueHere",
    "UserName": "ValueHere"
  }
}

Response JSON

This template was generated by a tool to show the body and header elements for the JSON response.

{
  "CustomerId": "LongValueHere",
  "CustomerNumber": "ValueHere",
  "AccountId": "LongValueHere",
  "AccountNumber": "ValueHere",
  "CreateTime": "ValueHere"
}

Code Syntax

To call REST API through SDKs, you need to upgrade SDK to a certain version and configure the system parameters.The example syntax can be used with Bing Ads SDKs. See Bing Ads API Code Examples for more examples.

public async Task<SignupCustomerResponse> SignupCustomerAsync(
	Customer customer,
	AdvertiserAccount account,
	long? parentCustomerId,
	UserInvitation userInvitation,
	long? userId,
	User user)
{
	var request = new SignupCustomerRequest
	{
		Customer = customer,
		Account = account,
		ParentCustomerId = parentCustomerId,
		UserInvitation = userInvitation,
		UserId = userId,
		User = user
	};

	return (await CustomerManagementService.CallAsync((s, r) => s.SignupCustomerAsync(r), request));
}
static SignupCustomerResponse signupCustomer(
	Customer customer,
	AdvertiserAccount account,
	java.lang.Long parentCustomerId,
	UserInvitation userInvitation,
	java.lang.Long userId,
	User user) throws RemoteException, Exception
{
	SignupCustomerRequest request = new SignupCustomerRequest();

	request.setCustomer(customer);
	request.setAccount(account);
	request.setParentCustomerId(parentCustomerId);
	request.setUserInvitation(userInvitation);
	request.setUserId(userId);
	request.setUser(user);

	return CustomerManagementService.getService().signupCustomer(request);
}
static function SignupCustomer(
	$customer,
	$account,
	$parentCustomerId,
	$userInvitation,
	$userId,
	$user)
{

	$GLOBALS['Proxy'] = $GLOBALS['CustomerManagementProxy'];

	$request = new SignupCustomerRequest();

	$request->Customer = $customer;
	$request->Account = $account;
	$request->ParentCustomerId = $parentCustomerId;
	$request->UserInvitation = $userInvitation;
	$request->UserId = $userId;
	$request->User = $user;

	return $GLOBALS['CustomerManagementProxy']->GetService()->SignupCustomer($request);
}
response=customermanagement_service.SignupCustomer(
	Customer=Customer,
	Account=Account,
	ParentCustomerId=ParentCustomerId,
	UserInvitation=UserInvitation,
	UserId=UserId,
	User=User)