public final class MediaDelegate extends AbstractGetDelegate<com.google.api.ads.adwords.axis.v201409.cm.Media,com.google.api.ads.adwords.axis.v201409.cm.MediaServiceInterface>
Media
.
Implementation is not thread-safe, because AdWordsSession and Apache Axis service objects are not thread-safe.
Constructor and Description |
---|
MediaDelegate(AdWordsSession adWordsSession)
Default Constructor.
|
MediaDelegate(AdWordsSession adWordsSession,
List<SelectorFields.Media> selectorFields)
Constructor with custom fields.
|
Modifier and Type | Method and Description |
---|---|
List<com.google.api.ads.adwords.axis.v201409.cm.Media> |
getByMediaId(long mediaId)
Retrieves Medias by mediaId.
|
List<com.google.api.ads.adwords.axis.v201409.cm.Media> |
upload(List<com.google.api.ads.adwords.axis.v201409.cm.Media> medias)
Upload a list of Medias.
|
createSelectorBuilder, get, get, get, getByField, getByField, getByField, getByField, getByFieldContainsAny, getClassT, getOneByField, getPage, setGetMethodName
getAdWordsSession, getService
public MediaDelegate(AdWordsSession adWordsSession)
adWordsSession
- the adWordsSession
to use with the delegate/servicepublic MediaDelegate(AdWordsSession adWordsSession, List<SelectorFields.Media> selectorFields)
adWordsSession
- the adWordsSession
to use with the delegate/serviceselectorFields
- for the Generic Selectors using the SelectorField classpublic List<com.google.api.ads.adwords.axis.v201409.cm.Media> upload(List<com.google.api.ads.adwords.axis.v201409.cm.Media> medias) throws RemoteException
medias
- a list Media
to uploadRemoteException
- for communication-related exceptionspublic List<com.google.api.ads.adwords.axis.v201409.cm.Media> getByMediaId(long mediaId) throws RemoteException
mediaId
- RemoteException
- for communication-related exceptionsCopyright © 2015. All Rights Reserved.