Use this service to manage media for your ads. For example:
- Upload new images for location extensions.
- Get the IDs of videos you want to use in template ads.
- Production WSDL
-
https://adwords.google.com/api/adwords/cm/v201209/MediaService?wsdl - Sandbox WSDL
-
https://adwords-sandbox.google.com/api/adwords/cm/v201209/MediaService?wsdl - Namespace
-
https://adwords.google.com/api/adwords/cm/v201209 - Operations
- Errors
-
- AudioError
- AuthenticationError
- AuthorizationError
- ClientTermsError
- DatabaseError
- EntityNotFound
- ImageError
- InternalApiError
- MediaError
- NewEntityCreationError
- NotWhitelistedError
- NullError
- OperationAccessDenied
- QuotaCheckError
- RangeError
- RateExceededError
- ReadOnlyError
- RequestError
- RequiredError
- SelectorError
- SizeLimitError
- VideoError
get
Returns a list of media that meet the criteria specified by the selector.
Note:
MediaService will not return any
ImageAd image files.
Parameters
| Field | Type | Description |
|---|---|---|
| serviceSelector |
Selector
|
Selects which media objects to return. |
Response
| Field | Type | Description |
|---|---|---|
| rval |
MediaPage
|
A list of Media objects. |
upload
Uploads new media. Currently, you can only upload Image files.
Parameters
| Field | Type | Description |
|---|---|---|
| media | A list of Media objects, each containing the data to
be uploaded. |
Response
| Field | Type | Description |
|---|---|---|
| rval | A list of uploaded media in the same order as the argument list. |
Errors
| Error | Reasons |
|---|---|
| AudioError | Error class for errors associated with parsing audio data. Enumerations
|
| AuthenticationError | Errors returned when Authentication failed. Enumerations
|
| AuthorizationError | Errors encountered when trying to authorize a user. Enumerations
|
| ClientTermsError | Error due to user not accepting the AdWords terms of service. Enumerations
|
| DatabaseError | Errors that are thrown due to a database access problem. Enumerations
|
| EntityNotFound | An id did not correspond to an entity, or it referred to an entity which does not belong to the
customer. Enumerations
|
| ImageError | Error class for errors associated with parsing image data. Enumerations
|
| InternalApiError | Indicates that a server-side error has occured. InternalApiErrors
are generally not the result of an invalid request or message sent by the
client.Enumerations
|
| MediaError | Error class for media related errors. Enumerations
|
| NewEntityCreationError | Error associated with creation of new entities using
TempIds.Enumerations
|
| NotWhitelistedError | Indicates that the customer is not whitelisted for accessing the API. Enumerations
|
| NullError | Errors associated with violation of a NOT NULL check. Enumerations
|
| OperationAccessDenied | Operation not permitted due to the invoked service's access policy. Enumerations
|
| QuotaCheckError | Encapsulates the errors thrown during developer quota checks. Enumerations
|
| RangeError | A list of all errors associated with the Range constraint. Enumerations
|
| RateExceededError | Signals that a call failed because a measured rate exceeded. Enumerations
|
| ReadOnlyError | Errors from attempting to write to read-only fields. Enumerations
|
| RequestError | Encapsulates the generic errors thrown when there's an error with user
request. Enumerations
|
| RequiredError | Errors due to missing required field. Enumerations
|
| SelectorError | Represents possible error codes for Selector. Enumerations
|
| SizeLimitError | Indicates that the number of entries in the request or response exceeds the system limit. Enumerations
|
| VideoError | Error class for errors associated with parsing video data. Enumerations
|