com.google.api.ads.dfp.v201111
Interface LineItemServiceInterface

All Superinterfaces:
Remote
All Known Implementing Classes:
LineItemServiceSoapBindingStub

public interface LineItemServiceInterface
extends Remote


Method Summary
 LineItem createLineItem(LineItem lineItem)
          Creates a new LineItem.
 LineItem[] createLineItems(LineItem[] lineItems)
          Creates new LineItem objects.
 LineItem getLineItem(Long lineItemId)
          Returns the LineItem uniquely identified by the given ID.
 LineItemPage getLineItemsByStatement(Statement filterStatement)
          Gets a LineItemPage of LineItem objects that satisfy the given Statement.query.
 UpdateResult performLineItemAction(LineItemAction lineItemAction, Statement filterStatement)
          Performs actions on LineItem objects that match the given Statement.query.
 LineItem updateLineItem(LineItem lineItem)
          Updates the specified LineItem.
 LineItem[] updateLineItems(LineItem[] lineItems)
          Updates the specified LineItem objects.
 

Method Detail

createLineItem

LineItem createLineItem(LineItem lineItem)
                        throws RemoteException,
                               ApiException
Creates a new LineItem. These fields are required:

Parameters:
lineItem - the line item to create
Returns:
the line item with its ID filled in
Throws:
RemoteException
ApiException

createLineItems

LineItem[] createLineItems(LineItem[] lineItems)
                           throws RemoteException,
                                  ApiException
Creates new LineItem objects.

Parameters:
lineItems - the line items to create
Returns:
the created line items with their IDs filled in
Throws:
RemoteException
ApiException

getLineItem

LineItem getLineItem(Long lineItemId)
                     throws RemoteException,
                            ApiException
Returns the LineItem uniquely identified by the given ID.

Parameters:
lineItemId - the ID of the line item, which must already exist
Returns:
the LineItem uniquely identified by the given ID
Throws:
RemoteException
ApiException

getLineItemsByStatement

LineItemPage getLineItemsByStatement(Statement filterStatement)
                                     throws RemoteException,
                                            ApiException
Gets a LineItemPage of LineItem objects that satisfy the given Statement.query. The following fields are supported for filtering:
PQL Property Object Property
costType LineItemSummary.costType
id LineItemSummary.id
lineItemType LineItemSummary.lineItemType
name LineItemSummary.name
orderId LineItemSummary.orderId
status LineItemSummary.status
unitsBought LineItemSummary.unitsBought
deliveryRateType LineItemSummary.deliveryRateType

Parameters:
filterStatement - a Publisher Query Language statement used to filter a set of line items.
Returns:
the line items that match the given filter
Throws:
RemoteException
ApiException

performLineItemAction

UpdateResult performLineItemAction(LineItemAction lineItemAction,
                                   Statement filterStatement)
                                   throws RemoteException,
                                          ApiException
Performs actions on LineItem objects that match the given Statement.query.

Parameters:
lineItemAction - the action to perform
filterStatement - a Publisher Query Language statement used to filter a set of line items
Returns:
the result of the action performed
Throws:
RemoteException
ApiException

updateLineItem

LineItem updateLineItem(LineItem lineItem)
                        throws RemoteException,
                               ApiException
Updates the specified LineItem.

Parameters:
lineItem - the line item to update
Returns:
the updated line item
Throws:
RemoteException
ApiException

updateLineItems

LineItem[] updateLineItems(LineItem[] lineItems)
                           throws RemoteException,
                                  ApiException
Updates the specified LineItem objects.

Parameters:
lineItems - the line items to update
Returns:
the updated line items
Throws:
RemoteException
ApiException


Copyright © 2011. All Rights Reserved.