SearchInsertionOrders Service Operation - Customer Billing

Searches for insertion orders that match a specified criteria.

Request Elements

The SearchInsertionOrdersRequest 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
Ordering Determines the order of results by the specified property of an account.

You should only specify one OrderBy element in the array. Additional elements are not supported and will be ignored by the service.

For this service operation, the following values are supported in the Field element of a OrderBy object.

Id - The order is determined by the InsertionOrderIdelement of the returned InsertionOrder.

Name - The order is determined by the Name element of the returned InsertionOrder.
OrderBy array
PageInfo Determines the index and size of results per page. Paging
Predicates Determines the request conditions. This operation's response will include accounts that match all of the specified predicates.

You may specify up to 6 predicates, and one of the predicate fields must be AccountId. You may use the StartDate and EndDate predicate fields twice each to specify start and end date ranges, and otherwise may only use each predicate field once.

For a list of supported Field and Operator elements of a Predicate object for this service operation, see Predicate Remarks.
Predicate array

Request Header Elements

Element Description Data Type
AuthenticationToken The OAuth access token that represents a Microsoft Account user who has permissions to Microsoft Advertising 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 SearchInsertionOrdersResponse 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
InsertionOrders A list of insertion orders that meet the specified criteria. InsertionOrder array

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">SearchInsertionOrders</Action>
    <AuthenticationToken i:nil="false">ValueHere</AuthenticationToken>
    <DeveloperToken i:nil="false">ValueHere</DeveloperToken>
  </s:Header>
  <s:Body>
    <SearchInsertionOrdersRequest xmlns="https://bingads.microsoft.com/Billing/v13">
      <Predicates xmlns:e5="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e5:Predicate>
          <e5:Field i:nil="false">ValueHere</e5:Field>
          <e5:Operator>ValueHere</e5:Operator>
          <e5:Value i:nil="false">ValueHere</e5:Value>
        </e5:Predicate>
      </Predicates>
      <Ordering xmlns:e6="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e6:OrderBy>
          <e6:Field>ValueHere</e6:Field>
          <e6:Order>ValueHere</e6:Order>
        </e6:OrderBy>
      </Ordering>
      <PageInfo xmlns:e7="https://bingads.microsoft.com/Customer/v13/Entities" i:nil="false">
        <e7:Index>ValueHere</e7:Index>
        <e7:Size>ValueHere</e7:Size>
      </PageInfo>
    </SearchInsertionOrdersRequest>
  </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>
    <SearchInsertionOrdersResponse xmlns="https://bingads.microsoft.com/Billing/v13">
      <InsertionOrders xmlns:e8="https://bingads.microsoft.com/Customer/v13/Entities" d4p1:nil="false" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">
        <e8:InsertionOrder>
          <e8:AccountId>ValueHere</e8:AccountId>
          <e8:BookingCountryCode d4p1:nil="false">ValueHere</e8:BookingCountryCode>
          <e8:Comment d4p1:nil="false">ValueHere</e8:Comment>
          <e8:EndDate d4p1:nil="false">ValueHere</e8:EndDate>
          <e8:Id d4p1:nil="false">ValueHere</e8:Id>
          <e8:LastModifiedByUserId d4p1:nil="false">ValueHere</e8:LastModifiedByUserId>
          <e8:LastModifiedTime d4p1:nil="false">ValueHere</e8:LastModifiedTime>
          <e8:NotificationThreshold d4p1:nil="false">ValueHere</e8:NotificationThreshold>
          <e8:ReferenceId d4p1:nil="false">ValueHere</e8:ReferenceId>
          <e8:SpendCapAmount d4p1:nil="false">ValueHere</e8:SpendCapAmount>
          <e8:StartDate d4p1:nil="false">ValueHere</e8:StartDate>
          <e8:Name d4p1:nil="false">ValueHere</e8:Name>
          <e8:Status d4p1:nil="false">ValueHere</e8:Status>
          <e8:PurchaseOrder d4p1:nil="false">ValueHere</e8:PurchaseOrder>
          <e8:PendingChanges d4p1:nil="false">
            <e8:Comment d4p1:nil="false">ValueHere</e8:Comment>
            <e8:EndDate d4p1:nil="false">ValueHere</e8:EndDate>
            <e8:RequestedByUserId d4p1:nil="false">ValueHere</e8:RequestedByUserId>
            <e8:ModifiedDateTime d4p1:nil="false">ValueHere</e8:ModifiedDateTime>
            <e8:NotificationThreshold d4p1:nil="false">ValueHere</e8:NotificationThreshold>
            <e8:ReferenceId d4p1:nil="false">ValueHere</e8:ReferenceId>
            <e8:SpendCapAmount d4p1:nil="false">ValueHere</e8:SpendCapAmount>
            <e8:StartDate d4p1:nil="false">ValueHere</e8:StartDate>
            <e8:Name d4p1:nil="false">ValueHere</e8:Name>
            <e8:PurchaseOrder d4p1:nil="false">ValueHere</e8:PurchaseOrder>
            <e8:ChangeStatus d4p1:nil="false">ValueHere</e8:ChangeStatus>
          </e8:PendingChanges>
          <e8:AccountNumber d4p1:nil="false">ValueHere</e8:AccountNumber>
          <e8:BudgetRemaining d4p1:nil="false">ValueHere</e8:BudgetRemaining>
          <e8:BudgetSpent d4p1:nil="false">ValueHere</e8:BudgetSpent>
          <e8:BudgetRemainingPercent d4p1:nil="false">ValueHere</e8:BudgetRemainingPercent>
          <e8:BudgetSpentPercent d4p1:nil="false">ValueHere</e8:BudgetSpentPercent>
          <e8:SeriesName d4p1:nil="false">ValueHere</e8:SeriesName>
          <e8:IsInSeries d4p1:nil="false">ValueHere</e8:IsInSeries>
          <e8:SeriesFrequencyType d4p1:nil="false">ValueHere</e8:SeriesFrequencyType>
        </e8:InsertionOrder>
      </InsertionOrders>
    </SearchInsertionOrdersResponse>
  </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<SearchInsertionOrdersResponse> SearchInsertionOrdersAsync(
	IList<Predicate> predicates,
	IList<OrderBy> ordering,
	Paging pageInfo)
{
	var request = new SearchInsertionOrdersRequest
	{
		Predicates = predicates,
		Ordering = ordering,
		PageInfo = pageInfo
	};

	return (await CustomerBillingService.CallAsync((s, r) => s.SearchInsertionOrdersAsync(r), request));
}
static SearchInsertionOrdersResponse searchInsertionOrders(
	ArrayOfPredicate predicates,
	ArrayOfOrderBy ordering,
	Paging pageInfo) throws RemoteException, Exception
{
	SearchInsertionOrdersRequest request = new SearchInsertionOrdersRequest();

	request.setPredicates(predicates);
	request.setOrdering(ordering);
	request.setPageInfo(pageInfo);

	return CustomerBillingService.getService().searchInsertionOrders(request);
}
static function SearchInsertionOrders(
	$predicates,
	$ordering,
	$pageInfo)
{

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

	$request = new SearchInsertionOrdersRequest();

	$request->Predicates = $predicates;
	$request->Ordering = $ordering;
	$request->PageInfo = $pageInfo;

	return $GLOBALS['CustomerBillingProxy']->GetService()->SearchInsertionOrders($request);
}
response=customerbilling_service.SearchInsertionOrders(
	Predicates=Predicates,
	Ordering=Ordering,
	PageInfo=PageInfo)

Requirements

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