public interface AdRuleServiceInterface extends Remote
| Modifier and Type | Method and Description |
|---|---|
AdRule |
createAdRule(AdRule adRule)
Creates a new
AdRule. |
AdRule[] |
createAdRules(AdRule[] adRules)
Creates new
AdRule objects. |
AdRule |
getAdRule(Integer adRuleId)
Returns the
AdRule uniquely identified by the given
ID. |
AdRulePage |
getAdRulesByStatement(Statement statement)
|
UpdateResult |
performAdRuleAction(AdRuleAction adRuleAction,
Statement filterStatement)
Performs actions on
AdRule objects that match the given
Statement.query. |
AdRule |
updateAdRule(AdRule adRule)
Updates a previously-created
AdRule. |
AdRule[] |
updateAdRules(AdRule[] adRules)
Updates the specified
AdRule objects. |
AdRule createAdRule(AdRule adRule) throws RemoteException, ApiException
AdRule.
The following fields are required:
adRule - the ad rule to createApiException - if there the ad rule is invalid or there is another
errorRemoteExceptionAdRule[] createAdRules(AdRule[] adRules) throws RemoteException, ApiException
AdRule objects.adRules - the ad rules to createRemoteExceptionApiExceptionAdRule getAdRule(Integer adRuleId) throws RemoteException, ApiException
AdRule uniquely identified by the given
ID.adRuleId - the ID of the ad rule, which must already existAdRule uniquely identified by the given IDApiException - if there is an error retrieving the ad rule
or the ID is invalidRemoteExceptionAdRulePage getAdRulesByStatement(Statement statement) throws RemoteException, ApiException
AdRulePage of AdRule objects that satisfy
the given
Statement.query. The following fields are supported
for filtering:
| PQL Property | Object Property |
|---|---|
id |
AdRule.id |
name |
AdRule.name |
priority |
AdRule.priority |
status |
AdRule.status |
filterStatement - a Publisher Query Language statement used to
filter
a set of ad rulesApiException - if the ID of the active network does not exist
or
there is a backend errorRemoteExceptionUpdateResult performAdRuleAction(AdRuleAction adRuleAction, Statement filterStatement) throws RemoteException, ApiException
AdRule objects that match the given
Statement.query.adRuleAction - the action to performfilterStatement - a Publisher Query Language statement used to
filter
a set of ad rulesRemoteExceptionApiExceptionAdRule updateAdRule(AdRule adRule) throws RemoteException, ApiException
AdRule.adRule - the ad rule that should be updatedApiException - if there is an error updating the ad ruleRemoteExceptionAdRule[] updateAdRules(AdRule[] adRules) throws RemoteException, ApiException
AdRule objects.adRules - the ad rules to updateApiException - if there is an error updating the ad rulesRemoteExceptionCopyright © 2014. All Rights Reserved.