UpdateInsertionOrder Service Operation - Customer Billing

Updates an insertion order within the specified account.

Request Elements

The UpdateInsertionOrderRequest 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.

Request Body Elements

Element Description Data Type
InsertionOrder An insertion order to update within the account. InsertionOrder

Request Header Elements

Element Description Data Type
AuthenticationToken The OAuth access token that represents a Microsoft Account user who has permissions to Bing Ads accounts. string
DeveloperToken The developer token used to access the Bing Ads API. 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 UpdateInsertionOrderResponse 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
LastModifiedTime Identifies the server time in UTC when the insertion order was last modified. dateTime

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/Billing/v12">
    <Action mustUnderstand="1">UpdateInsertionOrder</Action>
    <AuthenticationToken i:nil="false">ValueHere</AuthenticationToken>
    <DeveloperToken i:nil="false">ValueHere</DeveloperToken>
  </s:Header>
  <s:Body>
    <UpdateInsertionOrderRequest xmlns="https://bingads.microsoft.com/Billing/v12">
      <InsertionOrder xmlns:e69="https://bingads.microsoft.com/Customer/v12/Entities" i:nil="false">
        <e69:AccountId>ValueHere</e69:AccountId>
        <e69:BalanceAmount i:nil="false">ValueHere</e69:BalanceAmount>
        <e69:BookingCountryCode i:nil="false">ValueHere</e69:BookingCountryCode>
        <e69:Comment i:nil="false">ValueHere</e69:Comment>
        <e69:EndDate i:nil="false">ValueHere</e69:EndDate>
        <e69:Id i:nil="false">ValueHere</e69:Id>
        <e69:LastModifiedByUserId i:nil="false">ValueHere</e69:LastModifiedByUserId>
        <e69:LastModifiedTime i:nil="false">ValueHere</e69:LastModifiedTime>
        <e69:NotificationThreshold i:nil="false">ValueHere</e69:NotificationThreshold>
        <e69:ReferenceId i:nil="false">ValueHere</e69:ReferenceId>
        <e69:SpendCapAmount i:nil="false">ValueHere</e69:SpendCapAmount>
        <e69:StartDate i:nil="false">ValueHere</e69:StartDate>
        <e69:Name i:nil="false">ValueHere</e69:Name>
        <e69:Status i:nil="false">ValueHere</e69:Status>
        <e69:PurchaseOrder i:nil="false">ValueHere</e69:PurchaseOrder>
        <e69:PendingChanges i:nil="false">
          <e69:Comment i:nil="false">ValueHere</e69:Comment>
          <e69:EndDate i:nil="false">ValueHere</e69:EndDate>
          <e69:RequestedByUserId i:nil="false">ValueHere</e69:RequestedByUserId>
          <e69:ModifiedDateTime i:nil="false">ValueHere</e69:ModifiedDateTime>
          <e69:NotificationThreshold i:nil="false">ValueHere</e69:NotificationThreshold>
          <e69:ReferenceId i:nil="false">ValueHere</e69:ReferenceId>
          <e69:SpendCapAmount i:nil="false">ValueHere</e69:SpendCapAmount>
          <e69:StartDate i:nil="false">ValueHere</e69:StartDate>
          <e69:Name i:nil="false">ValueHere</e69:Name>
          <e69:PurchaseOrder i:nil="false">ValueHere</e69:PurchaseOrder>
          <e69:ChangeStatus i:nil="false">ValueHere</e69:ChangeStatus>
        </e69:PendingChanges>
      </InsertionOrder>
    </UpdateInsertionOrderRequest>
  </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/Billing/v12">
    <TrackingId d3p1:nil="false" xmlns:d3p1="http://www.w3.org/2001/XMLSchema-instance">ValueHere</TrackingId>
  </s:Header>
  <s:Body>
    <UpdateInsertionOrderResponse xmlns="https://bingads.microsoft.com/Billing/v12">
      <LastModifiedTime>ValueHere</LastModifiedTime>
    </UpdateInsertionOrderResponse>
  </s:Body>
</s:Envelope>

Code Syntax

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

public async Task<UpdateInsertionOrderResponse> UpdateInsertionOrderAsync(
	InsertionOrder insertionOrder)
{
	var request = new UpdateInsertionOrderRequest
	{
		InsertionOrder = insertionOrder
	};

	return (await CustomerBillingService.CallAsync((s, r) => s.UpdateInsertionOrderAsync(r), request));
}
static UpdateInsertionOrderResponse updateInsertionOrder(
	InsertionOrder insertionOrder) throws RemoteException, Exception
{
	UpdateInsertionOrderRequest request = new UpdateInsertionOrderRequest();

	request.setInsertionOrder(insertionOrder);

	return CustomerBillingService.getService().updateInsertionOrder(request);
}
static function UpdateInsertionOrder(
	$insertionOrder)
{

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

	$request = new UpdateInsertionOrderRequest();

	$request->InsertionOrder = $insertionOrder;

	return $GLOBALS['CustomerBillingProxy']->GetService()->UpdateInsertionOrder($request);
}
response=customerbilling_service.UpdateInsertionOrder(
	InsertionOrder=InsertionOrder)

Requirements

Service: CustomerBillingService.svc v12
Namespace: https://bingads.microsoft.com/Billing/v12