public class LineItemService extends Object
Constructor and Description |
---|
LineItemService() |
Modifier and Type | Method and Description |
---|---|
List<Long> |
createLineItems(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.LineItem> lineItemsToCreate)
Creates the specified Line Items.
|
protected com.google.api.ads.admanager.axis.v201902.LineItemServiceInterface |
createLineItemService(com.google.api.ads.admanager.lib.client.AdManagerSession session) |
List<com.google.api.ads.admanager.axis.v201902.LineItem> |
getLineItems(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieves a filtered list of Line Items.
|
Integer |
performLineItemsAction(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String lineItemActionString,
String queryString,
Map<String,Object> queryParams)
Performs the specified Line Item action.
|
List<Long> |
updateLineItems(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.LineItem> lineItemsToUpdate)
Update the specified Line Items.
|
protected com.google.api.ads.admanager.axis.v201902.LineItemServiceInterface createLineItemService(com.google.api.ads.admanager.lib.client.AdManagerSession session)
public List<com.google.api.ads.admanager.axis.v201902.LineItem> getLineItems(com.google.api.ads.admanager.lib.client.AdManagerSession session, String queryString, Map<String,Object> queryParams, String queryOrder, Integer queryOffset) throws AdManagerApiException, AdManagerCommunicationException
session
- the API sessionqueryString
- the queryqueryParams
- the query parametersqueryOrder
- the orderqueryOffset
- the offsetList<LineItem>
list of line itemsAdManagerApiException
- if there is a problem with the request made to the API.AdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)public Integer performLineItemsAction(com.google.api.ads.admanager.lib.client.AdManagerSession session, String lineItemActionString, String queryString, Map<String,Object> queryParams) throws AdManagerException
session
- the API sessionlineItemActionString
- the actionqueryString
- the queryqueryParams
- the query parametersInteger
the number of affected recordsAdManagerException
- AdManagerApiException
if there is a problem with the
request made to the API. AdManagerCommunicationException
if there is a communication problem with the API (such as
timeouts etc.)public List<Long> createLineItems(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.LineItem> lineItemsToCreate) throws AdManagerApiException, AdManagerCommunicationException
session
- the API sessionlineItemsToCreate
- list of LineItems to createList<Long>
list of created LineItems IDsAdManagerApiException
- if there is a problem with the request made to the API.AdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)public List<Long> updateLineItems(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.LineItem> lineItemsToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session
- the API sessionlineItemsToUpdate
- the LineItems to updateList<Long>
the updated LineItems IDsAdManagerApiException
- if there is a problem with the request made to the API.AdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)Copyright © 2010–2019. All rights reserved.