Edit

Share via


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.

Note

Unless otherwise noted below, all request elements are required.

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 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 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/v13">
    <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/v13">
      <InsertionOrder xmlns:e18="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e18:AccountId>ValueHere</e18:AccountId>
        <e18:BookingCountryCode i:nil="false">ValueHere</e18:BookingCountryCode>
        <e18:Comment i:nil="false">ValueHere</e18:Comment>
        <e18:EndDate i:nil="false">ValueHere</e18:EndDate>
        <e18:Id i:nil="false">ValueHere</e18:Id>
        <e18:LastModifiedByUserId i:nil="false">ValueHere</e18:LastModifiedByUserId>
        <e18:LastModifiedTime i:nil="false">ValueHere</e18:LastModifiedTime>
        <e18:NotificationThreshold i:nil="false">ValueHere</e18:NotificationThreshold>
        <e18:ReferenceId i:nil="false">ValueHere</e18:ReferenceId>
        <e18:SpendCapAmount i:nil="false">ValueHere</e18:SpendCapAmount>
        <e18:StartDate i:nil="false">ValueHere</e18:StartDate>
        <e18:Name i:nil="false">ValueHere</e18:Name>
        <e18:Status i:nil="false">ValueHere</e18:Status>
        <e18:PurchaseOrder i:nil="false">ValueHere</e18:PurchaseOrder>
        <e18:PendingChanges i:nil="false">
          <e18:Comment i:nil="false">ValueHere</e18:Comment>
          <e18:EndDate i:nil="false">ValueHere</e18:EndDate>
          <e18:RequestedByUserId i:nil="false">ValueHere</e18:RequestedByUserId>
          <e18:ModifiedDateTime i:nil="false">ValueHere</e18:ModifiedDateTime>
          <e18:NotificationThreshold i:nil="false">ValueHere</e18:NotificationThreshold>
          <e18:ReferenceId i:nil="false">ValueHere</e18:ReferenceId>
          <e18:SpendCapAmount i:nil="false">ValueHere</e18:SpendCapAmount>
          <e18:StartDate i:nil="false">ValueHere</e18:StartDate>
          <e18:Name i:nil="false">ValueHere</e18:Name>
          <e18:PurchaseOrder i:nil="false">ValueHere</e18:PurchaseOrder>
          <e18:ChangeStatus i:nil="false">ValueHere</e18:ChangeStatus>
        </e18:PendingChanges>
        <e18:AccountNumber i:nil="false">ValueHere</e18:AccountNumber>
        <e18:BudgetRemaining i:nil="false">ValueHere</e18:BudgetRemaining>
        <e18:BudgetSpent i:nil="false">ValueHere</e18:BudgetSpent>
        <e18:BudgetRemainingPercent i:nil="false">ValueHere</e18:BudgetRemainingPercent>
        <e18:BudgetSpentPercent i:nil="false">ValueHere</e18:BudgetSpentPercent>
        <e18:SeriesName i:nil="false">ValueHere</e18:SeriesName>
        <e18:IsInSeries i:nil="false">ValueHere</e18:IsInSeries>
        <e18:SeriesFrequencyType i:nil="false">ValueHere</e18:SeriesFrequencyType>
        <e18:IsUnlimited i:nil="false">ValueHere</e18:IsUnlimited>
        <e18:IsEndless i:nil="false">ValueHere</e18:IsEndless>
      </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/v13">
    <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/v13">
      <LastModifiedTime>ValueHere</LastModifiedTime>
    </UpdateInsertionOrderResponse>
  </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<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 v13
Namespace: https://bingads.microsoft.com/Billing/v13