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:e35="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
<e35:AccountId>ValueHere</e35:AccountId>
<e35:BookingCountryCode i:nil="false">ValueHere</e35:BookingCountryCode>
<e35:Comment i:nil="false">ValueHere</e35:Comment>
<e35:EndDate i:nil="false">ValueHere</e35:EndDate>
<e35:Id i:nil="false">ValueHere</e35:Id>
<e35:LastModifiedByUserId i:nil="false">ValueHere</e35:LastModifiedByUserId>
<e35:LastModifiedTime i:nil="false">ValueHere</e35:LastModifiedTime>
<e35:NotificationThreshold i:nil="false">ValueHere</e35:NotificationThreshold>
<e35:ReferenceId i:nil="false">ValueHere</e35:ReferenceId>
<e35:SpendCapAmount i:nil="false">ValueHere</e35:SpendCapAmount>
<e35:StartDate i:nil="false">ValueHere</e35:StartDate>
<e35:Name i:nil="false">ValueHere</e35:Name>
<e35:Status i:nil="false">ValueHere</e35:Status>
<e35:PurchaseOrder i:nil="false">ValueHere</e35:PurchaseOrder>
<e35:PendingChanges i:nil="false">
<e35:Comment i:nil="false">ValueHere</e35:Comment>
<e35:EndDate i:nil="false">ValueHere</e35:EndDate>
<e35:RequestedByUserId i:nil="false">ValueHere</e35:RequestedByUserId>
<e35:ModifiedDateTime i:nil="false">ValueHere</e35:ModifiedDateTime>
<e35:NotificationThreshold i:nil="false">ValueHere</e35:NotificationThreshold>
<e35:ReferenceId i:nil="false">ValueHere</e35:ReferenceId>
<e35:SpendCapAmount i:nil="false">ValueHere</e35:SpendCapAmount>
<e35:StartDate i:nil="false">ValueHere</e35:StartDate>
<e35:Name i:nil="false">ValueHere</e35:Name>
<e35:PurchaseOrder i:nil="false">ValueHere</e35:PurchaseOrder>
<e35:ChangeStatus i:nil="false">ValueHere</e35:ChangeStatus>
</e35:PendingChanges>
<e35:AccountNumber i:nil="false">ValueHere</e35:AccountNumber>
<e35:BudgetRemaining i:nil="false">ValueHere</e35:BudgetRemaining>
<e35:BudgetSpent i:nil="false">ValueHere</e35:BudgetSpent>
<e35:BudgetRemainingPercent i:nil="false">ValueHere</e35:BudgetRemainingPercent>
<e35:BudgetSpentPercent i:nil="false">ValueHere</e35:BudgetSpentPercent>
<e35:SeriesName i:nil="false">ValueHere</e35:SeriesName>
<e35:IsInSeries i:nil="false">ValueHere</e35:IsInSeries>
<e35:SeriesFrequencyType i:nil="false">ValueHere</e35:SeriesFrequencyType>
<e35:IsUnlimited i:nil="false">ValueHere</e35:IsUnlimited>
<e35:IsEndless i:nil="false">ValueHere</e35: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
Request Url
https://clientcenter.api.bingads.microsoft.com/CustomerBilling/v13/InsertionOrder
Request Elements
The UpdateInsertionOrderRequest 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 |
---|---|---|
InsertionOrder | An insertion order to update within the account. | InsertionOrder |
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 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 JSON.
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 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.
{
"InsertionOrder": {
"AccountId": "LongValueHere",
"AccountNumber": "ValueHere",
"BookingCountryCode": "ValueHere",
"BudgetRemaining": DoubleValueHere,
"BudgetRemainingPercent": DoubleValueHere,
"BudgetSpent": DoubleValueHere,
"BudgetSpentPercent": DoubleValueHere,
"Comment": "ValueHere",
"EndDate": "ValueHere",
"Id": "LongValueHere",
"IsEndless": "ValueHere",
"IsInSeries": "ValueHere",
"IsUnlimited": "ValueHere",
"LastModifiedByUserId": "LongValueHere",
"LastModifiedTime": "ValueHere",
"Name": "ValueHere",
"NotificationThreshold": DoubleValueHere,
"PendingChanges": {
"ChangeStatus": "ValueHere",
"Comment": "ValueHere",
"EndDate": "ValueHere",
"ModifiedDateTime": "ValueHere",
"Name": "ValueHere",
"NotificationThreshold": DoubleValueHere,
"PurchaseOrder": "ValueHere",
"ReferenceId": "LongValueHere",
"RequestedByUserId": IntValueHere,
"SpendCapAmount": DoubleValueHere,
"StartDate": "ValueHere"
},
"PurchaseOrder": "ValueHere",
"ReferenceId": "LongValueHere",
"SeriesFrequencyType": "ValueHere",
"SeriesName": "ValueHere",
"SpendCapAmount": DoubleValueHere,
"StartDate": "ValueHere",
"Status": "ValueHere"
}
}
Response JSON
This template was generated by a tool to show the body and header elements for the JSON response.
{
"LastModifiedTime": "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<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)