Provides operations for creating, updating and retrieving CustomTargetingKey and CustomTargetingValue objects.
- Production WSDL
-
https://ads.google.com/apis/ads/publisher/v202405/CustomTargetingService?wsdl
- Namespace
-
https://www.google.com/apis/ads/publisher/v202405
- Operations
- Errors
-
- ApiVersionError
- AuthenticationError
- CollectionSizeError
- CommonError
- CustomTargetingError
- EntityChildrenLimitReachedError
- EntityLimitReachedError
- FeatureError
- InternalApiError
- NotNullError
- NullError
- ParseError
- PermissionError
- PublisherQueryLanguageContextError
- PublisherQueryLanguageSyntaxError
- QuotaError
- RequiredCollectionError
- RequiredError
- ServerError
- StatementError
- StringFormatError
- StringLengthError
- TypeError
- UniqueError
createCustomTargetingKeys
Creates new CustomTargetingKey objects.
The following fields are required:
Parameters
Field | Type | Description |
---|---|---|
keys
|
|
Response
Field | Type | Description |
---|---|---|
rval
|
|
createCustomTargetingValues
Creates new CustomTargetingValue objects.
The following fields are required:
Parameters
Field | Type | Description |
---|---|---|
values
|
|
Response
Field | Type | Description |
---|---|---|
rval
|
|
getCustomTargetingKeysByStatement
Gets a CustomTargetingKeyPage of CustomTargetingKey objects that satisfy the given Statement.query. The following fields are supported for filtering:
PQL Property | Object Property |
---|---|
id
|
CustomTargetingKey.id |
name
|
CustomTargetingKey.name |
displayName
|
CustomTargetingKey.displayName |
type
|
CustomTargetingKey.type |
Parameters
Field | Type | Description |
---|---|---|
filterStatement
|
|
Response
Field | Type | Description |
---|---|---|
rval
|
|
getCustomTargetingValuesByStatement
Gets a CustomTargetingValuePage of CustomTargetingValue objects that satisfy the given Statement.query.
The WHERE
clause in the
Statement.query must always contain CustomTargetingValue.customTargetingKeyId as one of its columns in a way that it is
AND'ed with the rest of the query. So, if you want to retrieve
values for a known set of key ids, valid Statement.query would look like:
- "WHERE customTargetingKeyId IN ('17','18','19')" retrieves all values that are associated with keys having ids 17, 18, 19.
- "WHERE customTargetingKeyId = '17' AND name = 'red'" retrieves values that are associated with keys having id 17 and value name is 'red'.
The following fields are supported for filtering:
PQL Property | Object Property |
---|---|
id
|
CustomTargetingValue.id |
customTargetingKeyId
|
CustomTargetingValue.customTargetingKeyId |
name
|
CustomTargetingValue.name |
displayName
|
CustomTargetingValue.displayName |
matchType
|
CustomTargetingValue.matchType |
Parameters
Field | Type | Description |
---|---|---|
filterStatement
|
|
Response
Field | Type | Description |
---|---|---|
rval
|
|
performCustomTargetingKeyAction
Performs actions on CustomTargetingKey objects that match the given Statement.query.
Parameters
Field | Type | Description |
---|---|---|
customTargetingKeyAction
|
|
|
filterStatement
|
|
Response
Field | Type | Description |
---|---|---|
rval
|
|
performCustomTargetingValueAction
Performs actions on CustomTargetingValue objects that match the given Statement.query.
Parameters
Field | Type | Description |
---|---|---|
customTargetingValueAction
|
|
|
filterStatement
|
|
Response
Field | Type | Description |
---|---|---|
rval
|
|
updateCustomTargetingKeys
Updates the specified CustomTargetingKey objects.
Parameters
Field | Type | Description |
---|---|---|
keys
|
|
Response
Field | Type | Description |
---|---|---|
rval
|
|
updateCustomTargetingValues
Updates the specified CustomTargetingValue objects.
Parameters
Field | Type | Description |
---|---|---|
values
|
|
Response
Field | Type | Description |
---|---|---|
rval
|
|
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
|
CustomTargetingError
|
Lists all errors related to CustomTargetingKey and
CustomTargetingValue objects.
Enumerations
|
EntityChildrenLimitReachedError
|
Lists errors relating to having too many children on an entity.
Enumerations
|
EntityLimitReachedError
|
An error that occurs when creating an entity if the limit on the number of allowed entities for
a network has already been reached.
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. InternalApiError s
are generally not the result of an invalid request or message sent by the
client.
Enumerations
|
NotNullError
|
Caused by supplying a null value for an attribute that cannot be null.
Enumerations
|
NullError
|
Errors associated with violation of a NOT NULL check.
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
|
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
|
TypeError
|
An error for a field which is an invalid type. |
UniqueError
|
An error for a field which must satisfy a uniqueness constraint |