public class OrderService extends Object
| Constructor and Description |
|---|
OrderService() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
createOrders(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.Order> ordersToCreate)
Creates the specified orders.
|
protected com.google.api.ads.admanager.axis.v201902.OrderServiceInterface |
createOrderService(com.google.api.ads.admanager.lib.client.AdManagerSession session) |
List<com.google.api.ads.admanager.axis.v201902.Order> |
getOrders(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieves a filtered list of Orders.
|
Integer |
performOrdersAction(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String orderActionString,
String queryString,
Map<String,Object> queryParams)
Performs the specified Order action.
|
List<Long> |
updateOrders(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.Order> ordersToUpdate)
Updates the specified orders.
|
protected com.google.api.ads.admanager.axis.v201902.OrderServiceInterface createOrderService(com.google.api.ads.admanager.lib.client.AdManagerSession session)
public List<com.google.api.ads.admanager.axis.v201902.Order> getOrders(com.google.api.ads.admanager.lib.client.AdManagerSession session, String queryString, Map<String,Object> queryParams, String queryOrder, Integer queryOffset) throws AdManagerApiException, AdManagerCommunicationException
session - an API sessionqueryString - the query stringqueryParams - the query parametersqueryOrder - the orderqueryOffset - the offsetList<Order> the list of OrdersAdManagerApiException - 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 performOrdersAction(com.google.api.ads.admanager.lib.client.AdManagerSession session, String orderActionString, String queryString, Map<String,Object> queryParams) throws AdManagerException
session - the API sessionorderActionString - 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> createOrders(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.Order> ordersToCreate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionordersToCreate - list of orders to createList<Long> list of created Order 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> updateOrders(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.Order> ordersToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionordersToUpdate - list of orders to updateList<Long> list of updated order 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.