Service for retrieving Content.
Content entities can be
targeted in video LineItems.
You can query for content that belongs to a particular category
or has assigned metadata. Categories and metadata for
Content are stored in DFP as
CustomCriteria.
For example, to find all Content that is "genre=comedy", you would:
- Retrieve the custom targeting key corresponding to "genre" using CustomTargetingService.getCustomTargetingKeysByStatement
- Using the CustomTargetingService.getCustomTargetingValuesByStatement method and a filter like "WHERE customTargetingKeyId = :genreKeyId and name = 'comedy'", retrieve the ID for the "comedy" custom targeting value.
- Call getContentByStatementAndCustomTargetingValue with a filter like "WHERE status = 'ACTIVE'" and the ID of the custom targeting value from step 2.
- Production WSDL
-
https://ads.google.com/apis/ads/publisher/v201705/ContentService?wsdl - Namespace
-
https://www.google.com/apis/ads/publisher/v201705 - Operations
- Errors
-
- ApiVersionError
- AuthenticationError
- CollectionSizeError
- CommonError
- FeatureError
- InternalApiError
- InvalidUrlError
- NotNullError
- ParseError
- PermissionError
- PublisherQueryLanguageContextError
- PublisherQueryLanguageSyntaxError
- QuotaError
- RequiredCollectionError
- RequiredError
- RequiredNumberError
- ServerError
- StatementError
- StringLengthError
- TypeError
getContentByStatement
Gets a ContentPage of Content objects that satisfy the given Statement.query. The following fields are supported for filtering:
| PQL Property | Object Property |
|---|---|
id
|
Content.id |
status
|
Content.status |
name
|
Content.name |
lastModifiedDateTime
|
Content.lastModifiedDateTime |
lastDaiIngestDateTime
|
Content.lastDaiIngestDateTime |
daiIngestStatus
|
Content.daiIngestStatus |
Parameters
| Field | Type | Description |
|---|---|---|
statement
|
|
a Publisher Query Language statement used to filter a set of content |
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
the content that matches the given filter |
getContentByStatementAndCustomTargetingValue
Gets a ContentPage of Content objects that satisfy the given Statement.query. Additionally, filters on the given value ID and key ID that the value belongs to. The following fields are supported for filtering:
| PQL Property | Object Property |
|---|---|
id
|
Content.id |
status
|
Content.status |
name
|
Content.name |
lastModifiedDateTime
|
Content.lastModifiedDateTime> |
Parameters
| Field | Type | Description |
|---|---|---|
filterStatement
|
|
|
customTargetingValueId
|
|
the id of the value to match |
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
the content that matches the given filter |
Errors
| Error | Reasons |
|---|---|
ApiVersionError
|
Errors related to the usage of API versions.
Enumerations
|
AuthenticationError
|
An error for an exception that occurred when authenticating.
Enumerations
|
CollectionSizeError
|
Error for the size of the collection being too large
Enumerations
|
CommonError
|
A place for common errors that can be used across services.
Enumerations
|
FeatureError
|
Errors related to feature management. If you attempt using a feature that is not available to
the current network you'll receive a FeatureError with the missing feature as the trigger.
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
|
InvalidUrlError
|
Lists all errors associated with URLs.
Enumerations
|
NotNullError
|
Caused by supplying a null value for an attribute that cannot be null.
Enumerations
|
ParseError
|
Lists errors related to parsing.
Enumerations
|
PermissionError
|
Errors related to incorrect permission.
Enumerations
|
PublisherQueryLanguageContextError
|
An error that occurs while executing a PQL query contained in
a Statement object.
Enumerations
|
PublisherQueryLanguageSyntaxError
|
An error that occurs while parsing a PQL query contained in a
Statement object.
Enumerations
|
QuotaError
|
Describes a client-side error on which a user is attempting
to perform an action to which they have no quota remaining.
Enumerations
|
RequiredCollectionError
|
A list of all errors to be used for validating sizes of collections.
Enumerations
|
RequiredError
|
Errors due to missing required field.
Enumerations
|
RequiredNumberError
|
A list of all errors to be used in conjunction with required number
validators.
Enumerations
|
ServerError
|
Errors related to the server.
Enumerations
|
StatementError
|
An error that occurs while parsing Statement objects.
Enumerations
|
StringLengthError
|
Errors for Strings which do not meet given length constraints.
Enumerations
|
TypeError
|
An error for a field which is an invalid type. |
