Captures the WHERE, ORDER BY and LIMIT clauses of a
PQL query. Statements are typically used to retrieve objects of a predefined
domain type, which makes SELECT clause unnecessary.
An example query text might be "WHERE status = 'ACTIVE' ORDER BY id
LIMIT 30".
Statements support bind variables. These are substitutes for literals
and can be thought of as input parameters to a PQL query.
An example of such a query might be "WHERE id = :idValue".
Statements also support use of the LIKE keyword. This provides wildcard string matching.
An example of such a query might be "WHERE name LIKE '%searchString%'".
Holds keys and values for bind variables and their values. The key is the
name of the bind variable. The value is the literal value of the variable.
In the example "WHERE status = :bindStatus ORDER BY id LIMIT 30",
the bind variable, represented by :bindStatus is named bindStatus, which would also be the parameter map key. The bind variable's
value would be represented by a parameter map value of type
TextValue. The final result, for example, would be an entry of
"bindStatus" => StringParam("ACTIVE").
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThe Statement object defines the \u003ccode\u003eWHERE\u003c/code\u003e, \u003ccode\u003eORDER BY\u003c/code\u003e, and \u003ccode\u003eLIMIT\u003c/code\u003e clauses for PQL queries used in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eIt allows for retrieving specific objects without needing a \u003ccode\u003eSELECT\u003c/code\u003e clause, using criteria and sorting options.\u003c/p\u003e\n"],["\u003cp\u003eBind variables and wildcard matching through the \u003ccode\u003eLIKE\u003c/code\u003e keyword are supported for dynamic query construction.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003equery\u003c/code\u003e field holds the PQL syntax, while the \u003ccode\u003evalues\u003c/code\u003e field stores bind variable keys and their corresponding values for parameterization.\u003c/p\u003e\n"]]],["The core content details various services and a structured query mechanism. The services cover a wide range, including ad rules, adjustments, audience segments, content, creatives, inventory, and reporting. The `Statement` component defines a query language using `WHERE`, `ORDER BY`, and `LIMIT` clauses, along with bind variables for dynamic values. Queries support wildcards via `LIKE`. Bind variables require corresponding key-value pairs for the values to set the variable, like a number or a string.\n"],null,["# type Statement (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.Statement) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.Statement) [AudienceSegmentService](/ad-manager/api/reference/v202411/AudienceSegmentService.Statement) [CdnConfigurationService](/ad-manager/api/reference/v202411/CdnConfigurationService.Statement) [CmsMetadataService](/ad-manager/api/reference/v202411/CmsMetadataService.Statement) [CompanyService](/ad-manager/api/reference/v202411/CompanyService.Statement) [ContactService](/ad-manager/api/reference/v202411/ContactService.Statement) [ContentBundleService](/ad-manager/api/reference/v202411/ContentBundleService.Statement) [ContentService](/ad-manager/api/reference/v202411/ContentService.Statement) [CreativeService](/ad-manager/api/reference/v202411/CreativeService.Statement) [CreativeSetService](/ad-manager/api/reference/v202411/CreativeSetService.Statement) [CreativeTemplateService](/ad-manager/api/reference/v202411/CreativeTemplateService.Statement) [CreativeWrapperService](/ad-manager/api/reference/v202411/CreativeWrapperService.Statement) [CustomFieldService](/ad-manager/api/reference/v202411/CustomFieldService.Statement) [CustomTargetingService](/ad-manager/api/reference/v202411/CustomTargetingService.Statement) [DaiAuthenticationKeyService](/ad-manager/api/reference/v202411/DaiAuthenticationKeyService.Statement) [DaiEncodingProfileService](/ad-manager/api/reference/v202411/DaiEncodingProfileService.Statement) [InventoryService](/ad-manager/api/reference/v202411/InventoryService.Statement) [LabelService](/ad-manager/api/reference/v202411/LabelService.Statement) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202411/LineItemCreativeAssociationService.Statement) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.Statement) [LineItemTemplateService](/ad-manager/api/reference/v202411/LineItemTemplateService.Statement) [LiveStreamEventService](/ad-manager/api/reference/v202411/LiveStreamEventService.Statement) [MobileApplicationService](/ad-manager/api/reference/v202411/MobileApplicationService.Statement) **NativeStyleService** [OrderService](/ad-manager/api/reference/v202411/OrderService.Statement) [PlacementService](/ad-manager/api/reference/v202411/PlacementService.Statement) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.Statement) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.Statement) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.Statement) [ReportService](/ad-manager/api/reference/v202411/ReportService.Statement) [SiteService](/ad-manager/api/reference/v202411/SiteService.Statement) [StreamActivityMonitorService](/ad-manager/api/reference/v202411/StreamActivityMonitorService.Statement) [SuggestedAdUnitService](/ad-manager/api/reference/v202411/SuggestedAdUnitService.Statement) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.Statement) [TeamService](/ad-manager/api/reference/v202411/TeamService.Statement) [UserService](/ad-manager/api/reference/v202411/UserService.Statement) [UserTeamAssociationService](/ad-manager/api/reference/v202411/UserTeamAssociationService.Statement) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.Statement) **Dependencies** \n[getNativeStylesByStatement()](/ad-manager/api/reference/v202411/NativeStyleService#getNativeStylesByStatement) [performNativeStyleAction()](/ad-manager/api/reference/v202411/NativeStyleService#performNativeStyleAction) \n▼\n**Statement**\n\nCaptures the `WHERE`, `ORDER BY` and `LIMIT` clauses of a\nPQL query. Statements are typically used to retrieve objects of a predefined\ndomain type, which makes SELECT clause unnecessary.\n\n\nAn example query text might be `\"WHERE status = 'ACTIVE' ORDER BY id\nLIMIT 30\"`.\n\n\nStatements support bind variables. These are substitutes for literals\nand can be thought of as input parameters to a PQL query.\n\n\nAn example of such a query might be `\"WHERE id = :idValue\"`.\n\n\nStatements also support use of the LIKE keyword. This provides wildcard string matching.\n\n\nAn example of such a query might be `\"WHERE name LIKE '%searchString%'\"`.\nThe value for the variable idValue must then be set with an object of type [Value](/ad-manager/api/reference/v202411/NativeStyleService.Value), e.g., [NumberValue](/ad-manager/api/reference/v202411/NativeStyleService.NumberValue), [TextValue](/ad-manager/api/reference/v202411/NativeStyleService.TextValue) or [BooleanValue](/ad-manager/api/reference/v202411/NativeStyleService.BooleanValue).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `query` | ` `xsd:`string` Holds the query in PQL syntax. The syntax is: `[WHERE \u003ccondition\u003e {[AND | OR] \u003ccondition\u003e ...}]` `[ORDER BY \u003cproperty\u003e [ASC | DESC]]` `[LIMIT {[\u003coffset\u003e,] \u003ccount\u003e} | {\u003ccount\u003e OFFSET \u003coffset\u003e}]` `\u003ccondition\u003e` `:= \u003cproperty\u003e {\u003c | \u003c= | \u003e | \u003e= | = | != } \u003cvalue\u003e` `\u003ccondition\u003e` `:= \u003cproperty\u003e {\u003c | \u003c= | \u003e | \u003e= | = | != } \u003cbind variable\u003e` `\u003ccondition\u003e := \u003cproperty\u003e IN \u003clist\u003e` `\u003ccondition\u003e := \u003cproperty\u003e IS NULL` `\u003ccondition\u003e := \u003cproperty\u003e LIKE \u003cwildcard%match\u003e` `\u003cbind variable\u003e := :\u003cname\u003e` \u003cbr /\u003e |\n| ### `values` | ` `[String_ValueMapEntry](/ad-manager/api/reference/v202411/NativeStyleService.String_ValueMapEntry)`[]` Holds keys and values for bind variables and their values. The key is the name of the bind variable. The value is the literal value of the variable. In the example `\"WHERE status = :bindStatus ORDER BY id LIMIT 30\"`, the bind variable, represented by `:bindStatus` is named `bindStatus`, which would also be the parameter map key. The bind variable's value would be represented by a parameter map value of type [TextValue](/ad-manager/api/reference/v202411/NativeStyleService.TextValue). The final result, for example, would be an entry of `\"bindStatus\" =\u003e StringParam(\"ACTIVE\")`. \u003cbr /\u003e |"]]