public interface ContentServiceInterface
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:
CustomTargetingService#getCustomTargetingKeysByStatement
CustomTargetingService#getCustomTargetingValuesByStatement method and a
filter like "WHERE customTargetingKeyId = :genreKeyId and name = 'comedy'", retrieve the ID
for the "comedy" custom targeting value.
getContentByStatementAndCustomTargetingValue(com.google.api.ads.dfp.jaxws.v201805.Statement, java.lang.Long) with a filter like "WHERE status =
'ACTIVE'" and the ID of the custom targeting value from step 2.
| Modifier and Type | Method and Description |
|---|---|
ContentPage |
getContentByStatement(Statement statement)
|
ContentPage |
getContentByStatementAndCustomTargetingValue(Statement filterStatement,
Long customTargetingValueId)
|
@RequestWrapper(localName="getContentByStatement", targetNamespace="https://www.google.com/apis/ads/publisher/v201805", className="com.google.api.ads.dfp.jaxws.v201805.ContentServiceInterfacegetContentByStatement") @ResponseWrapper(localName="getContentByStatementResponse", targetNamespace="https://www.google.com/apis/ads/publisher/v201805", className="com.google.api.ads.dfp.jaxws.v201805.ContentServiceInterfacegetContentByStatementResponse") ContentPage getContentByStatement(Statement statement) throws ApiException_Exception
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 |
statement - a Publisher Query Language statement used to filter a set of contentstatement - ApiException_Exception@RequestWrapper(localName="getContentByStatementAndCustomTargetingValue", targetNamespace="https://www.google.com/apis/ads/publisher/v201805", className="com.google.api.ads.dfp.jaxws.v201805.ContentServiceInterfacegetContentByStatementAndCustomTargetingValue") @ResponseWrapper(localName="getContentByStatementAndCustomTargetingValueResponse", targetNamespace="https://www.google.com/apis/ads/publisher/v201805", className="com.google.api.ads.dfp.jaxws.v201805.ContentServiceInterfacegetContentByStatementAndCustomTargetingValueResponse") ContentPage getContentByStatementAndCustomTargetingValue(Statement filterStatement, Long customTargetingValueId) throws ApiException_Exception
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> |
customTargetingValueId - the id of the value to matchfilterStatement - customTargetingValueId - ApiException_ExceptionCopyright © 2018. All Rights Reserved.