public class CreateMethods extends Object
Constructor and Description |
---|
CreateMethods(AbstractConfig connectionStrategy) |
Modifier and Type | Method and Description |
---|---|
List<String> |
createAdUnits(List<com.google.api.ads.dfp.axis.v201711.AdUnit> adUnits)
Create a list of ad units
|
List<Long> |
createCompanies(List<com.google.api.ads.dfp.axis.v201711.Company> companies)
Create a list of Companies
|
List<Long> |
createContacts(List<com.google.api.ads.dfp.axis.v201711.Contact> contacts)
Create a list of contacts
|
List<Long> |
createLineItems(List<com.google.api.ads.dfp.axis.v201711.LineItem> lineItems)
Create a list of Line Items
|
List<Long> |
createOrders(List<com.google.api.ads.dfp.axis.v201711.Order> orders)
Create a list of Orders
|
List<Long> |
createUsers(List<com.google.api.ads.dfp.axis.v201711.User> users)
Create a list of Users
|
public CreateMethods(AbstractConfig connectionStrategy)
public List<String> createAdUnits(List<com.google.api.ads.dfp.axis.v201711.AdUnit> adUnits) throws DfpApiException, DfpCommunicationException
adUnits
- The ad units to createDfpApiException
- if an exception is thrown by the API being calledDfpCommunicationException
- if there is a communication problem with the api (such as timeouts etc)public List<Long> createCompanies(List<com.google.api.ads.dfp.axis.v201711.Company> companies) throws DfpApiException, DfpCommunicationException
companies
- The Companies for createDfpApiException
- if an exception is thrown by the API being calledDfpCommunicationException
- if there is a communication problem with the api (such as timeouts etc)public List<Long> createContacts(List<com.google.api.ads.dfp.axis.v201711.Contact> contacts) throws DfpApiException, DfpCommunicationException
contacts
- The contacts for createDfpApiException
- if an exception is thrown by the API being calledDfpCommunicationException
- if there is a communication problem with the api (such as timeouts etc)public List<Long> createLineItems(List<com.google.api.ads.dfp.axis.v201711.LineItem> lineItems) throws DfpApiException, DfpCommunicationException
lineItems
- The Line Items for createDfpApiException
- if an exception is thrown by the API being calledDfpCommunicationException
- if there is a communication problem with the api (such as timeouts etc)public List<Long> createOrders(List<com.google.api.ads.dfp.axis.v201711.Order> orders) throws DfpApiException, DfpCommunicationException
orders
- The Orders for createDfpApiException
- if an exception is thrown by the API being calledDfpCommunicationException
- if there is a communication problem with the api (such as timeouts etc)public List<Long> createUsers(List<com.google.api.ads.dfp.axis.v201711.User> users) throws DfpApiException, DfpCommunicationException
users
- The Users for createDfpApiException
- if an exception is thrown by the API being calledDfpCommunicationException
- if there is a communication problem with the api (such as timeouts etc)Copyright © 2010–2018. All rights reserved.