AI-generated Key Takeaways
-
The AdRuleService is used to manage AdRule objects which generate video ad playlists.
-
The service offers operations to create, retrieve by query, update, and perform actions on AdRule, AdSpot, and BreakTemplate objects.
-
Numerous error types are defined for the AdRuleService, covering issues with dates, frequency caps, priorities, slots, targeting, and various general API problems.
-
Specific errors are detailed for authentication, collection size, common issues, custom and geo targeting, internal server errors, and quota limitations.
-
The document also outlines errors related to inventory targeting, null or missing required fields, parsing, permissions, podding, PQL queries, and various string format and length constraints.
Provides methods for creating, updating and retrieving AdRule objects.
Ad rules contain data that the ad server uses to generate a playlist of video ads.
- Production WSDL
-
https://ads.google.com/apis/ads/publisher/v202502/AdRuleService?wsdl - Namespace
-
https://www.google.com/apis/ads/publisher/v202502 - Operations
- Errors
-
- AdRuleDateError
- AdRuleError
- AdRuleFrequencyCapError
- AdRulePriorityError
- AdRuleSlotError
- AdRuleTargetingError
- ApiVersionError
- AuthenticationError
- CollectionSizeError
- CommonError
- CustomTargetingError
- FeatureError
- GeoTargetingError
- InternalApiError
- InventoryTargetingError
- NotNullError
- ParseError
- PermissionError
- PoddingError
- PublisherQueryLanguageContextError
- PublisherQueryLanguageSyntaxError
- QuotaError
- RequiredCollectionError
- RequiredError
- RequiredNumberError
- ServerError
- StatementError
- StringFormatError
- StringLengthError
- UniqueError
createAdRules
Creates new AdRule objects.
Parameters
| Field | Type | Description |
|---|---|---|
adRules
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
createAdSpots
Creates new AdSpot objects.
Parameters
| Field | Type | Description |
|---|---|---|
adSpots
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
createBreakTemplates
Creates new breakTemplate objects.
Parameters
| Field | Type | Description |
|---|---|---|
breakTemplate
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
getAdRulesByStatement
Gets an AdRulePage of AdRule objects that satisfy the given Statement.query. The following fields are supported for filtering:
| PQL Property | Object Property |
|---|---|
id
|
AdRule.id (AdRule.adRuleId beginning in v201702) |
name
|
AdRule.name |
priority
|
AdRule.priority |
status
|
AdRule.status |
Parameters
| Field | Type | Description |
|---|---|---|
statement
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
getAdSpotsByStatement
Gets a AdSpotPage of AdSpot objects that satisfy the given Statement.query.
Parameters
| Field | Type | Description |
|---|---|---|
filterStatement
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
getBreakTemplatesByStatement
Gets a BreakTemplatePage of BreakTemplate objects that satisfy the given Statement.query.
Parameters
| Field | Type | Description |
|---|---|---|
filterStatement
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
performAdRuleAction
Performs actions on AdRule objects that match the given Statement.query.
Parameters
| Field | Type | Description |
|---|---|---|
adRuleAction
|
|
|
filterStatement
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
updateAdRules
Updates the specified AdRule objects.
Parameters
| Field | Type | Description |
|---|---|---|
adRules
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
updateAdSpots
Updates the specified AdSpot objects.
Parameters
| Field | Type | Description |
|---|---|---|
adSpots
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
updateBreakTemplates
Updates the specified breakTemplate objects.
Parameters
| Field | Type | Description |
|---|---|---|
breakTemplate
|
|
Response
| Field | Type | Description |
|---|---|---|
rval
|
|
Errors
| Error | Reasons |
|---|---|
AdRuleDateError
|
Lists all errors associated with ad rule start and end dates.
Enumerations
|
AdRuleError
|
Errors ad rule break template objects.
Enumerations
|
AdRuleFrequencyCapError
|
Errors related to ad rule frequency caps
Enumerations
|
AdRulePriorityError
|
Errors associated with ad rule priorities.
Enumerations
|
AdRuleSlotError
|
Errors related to ad rule slots.
Enumerations
|
AdRuleTargetingError
|
Lists all errors associated with ad rule targeting.
Enumerations
|
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
|
CustomTargetingError
|
Lists all errors related to CustomTargetingKey and
CustomTargetingValue objects.
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
|
GeoTargetingError
|
Lists all errors associated with geographical targeting for a
LineItem.
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
|
InventoryTargetingError
|
Lists all inventory errors caused by associating a line item with a targeting
expression.
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
|
PoddingError
|
Errors related to podding fields in ad rule slots.
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
|
StringFormatError
|
A list of error code for reporting invalid content of input strings.
Enumerations
|
StringLengthError
|
Errors for Strings which do not meet given length constraints.
Enumerations
|
UniqueError
|
An error for a field which must satisfy a uniqueness constraint |