public class CreateMethods extends Object
Constructor and Description |
---|
CreateMethods(AbstractConfig connectionStrategy)
Initialise the create methods with the specified connection strategy.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
createAdUnits(List<com.google.api.ads.admanager.axis.v201902.AdUnit> adUnits)
Create a list of Ad Units.
|
List<Long> |
createCompanies(List<com.google.api.ads.admanager.axis.v201902.Company> companies)
Create a list of Companies.
|
List<Long> |
createContacts(List<com.google.api.ads.admanager.axis.v201902.Contact> contacts)
Create a list of Contacts.
|
List<Long> |
createCustomFieldOptions(List<com.google.api.ads.admanager.axis.v201902.CustomFieldOption> customFieldOptions)
Creates a list of new CustomFieldOption objects.
|
List<Long> |
createCustomFields(List<com.google.api.ads.admanager.axis.v201902.CustomField> customFields)
Creates a list of new CustomField objects.
|
List<Long> |
createCustomTargetingKeys(List<com.google.api.ads.admanager.axis.v201902.CustomTargetingKey> customTargetingKeys)
Create a list of Custom Targeting Keys.
|
List<Long> |
createCustomTargetingValues(List<com.google.api.ads.admanager.axis.v201902.CustomTargetingValue> customTargetingValues)
Create a list of Custom Targeting Values.
|
List<Long> |
createLineItems(List<com.google.api.ads.admanager.axis.v201902.LineItem> lineItems)
Create a list of Line Items.
|
List<Long> |
createOrders(List<com.google.api.ads.admanager.axis.v201902.Order> orders)
Create a list of Orders.
|
List<Long> |
createPlacements(List<com.google.api.ads.admanager.axis.v201902.Placement> placements)
Create a list of Placements.
|
List<Long> |
createUsers(List<com.google.api.ads.admanager.axis.v201902.User> users)
Create a list of Users.
|
public CreateMethods(AbstractConfig connectionStrategy)
connectionStrategy
- the connection strategy used to connect to the APIpublic List<String> createAdUnits(List<com.google.api.ads.admanager.axis.v201902.AdUnit> adUnits) throws AdManagerApiException, AdManagerCommunicationException
adUnits
- the Ad Units to createAdManagerApiException
- if an exception is thrown by the API being calledAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)public List<Long> createCompanies(List<com.google.api.ads.admanager.axis.v201902.Company> companies) throws AdManagerApiException, AdManagerCommunicationException
companies
- the Companies for createAdManagerApiException
- if an exception is thrown by the API being calledAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)public List<Long> createContacts(List<com.google.api.ads.admanager.axis.v201902.Contact> contacts) throws AdManagerApiException, AdManagerCommunicationException
contacts
- the contacts for createAdManagerApiException
- if an exception is thrown by the API being calledAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)public List<Long> createLineItems(List<com.google.api.ads.admanager.axis.v201902.LineItem> lineItems) throws AdManagerApiException, AdManagerCommunicationException
lineItems
- the Line Items for createAdManagerApiException
- if an exception is thrown by the API being calledAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)public List<Long> createOrders(List<com.google.api.ads.admanager.axis.v201902.Order> orders) throws AdManagerApiException, AdManagerCommunicationException
orders
- the Orders for createAdManagerApiException
- if an exception is thrown by the API being calledAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)public List<Long> createUsers(List<com.google.api.ads.admanager.axis.v201902.User> users) throws AdManagerApiException, AdManagerCommunicationException
users
- the Users for createAdManagerApiException
- if an exception is thrown by the API being calledAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)public List<Long> createCustomFieldOptions(List<com.google.api.ads.admanager.axis.v201902.CustomFieldOption> customFieldOptions) throws AdManagerApiException, AdManagerCommunicationException
customFieldOptions
- the CustomFieldOptions to createAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)AdManagerApiException
- if there is a problem with the request made to the API.public List<Long> createCustomFields(List<com.google.api.ads.admanager.axis.v201902.CustomField> customFields) throws AdManagerApiException, AdManagerCommunicationException
customFields
- the CustomFields to createAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)AdManagerApiException
- if there is a problem with the request made to the API.public List<Long> createCustomTargetingKeys(List<com.google.api.ads.admanager.axis.v201902.CustomTargetingKey> customTargetingKeys) throws AdManagerApiException, AdManagerCommunicationException
customTargetingKeys
- the CustomTargetingKeys for createAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)AdManagerApiException
- if there is a problem with the request made to the API.public List<Long> createCustomTargetingValues(List<com.google.api.ads.admanager.axis.v201902.CustomTargetingValue> customTargetingValues) throws AdManagerApiException, AdManagerCommunicationException
customTargetingValues
- the CustomTargetingValues for createAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)AdManagerApiException
- if there is a problem with the request made to the API.public List<Long> createPlacements(List<com.google.api.ads.admanager.axis.v201902.Placement> placements) throws AdManagerApiException, AdManagerCommunicationException
placements
- the Placements for createAdManagerCommunicationException
- if there is a communication problem with the API (such as
timeouts etc.)AdManagerApiException
- if there is a problem with the request made to the API.Copyright © 2010–2019. All rights reserved.