**Service** [AdRuleService](https://developers.google.com/ad-manager/api/reference/v202605/AdRuleService.Statement) [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202605/AdjustmentService.Statement) [AudienceSegmentService](https://developers.google.com/ad-manager/api/reference/v202605/AudienceSegmentService.Statement) [CdnConfigurationService](https://developers.google.com/ad-manager/api/reference/v202605/CdnConfigurationService.Statement) [CmsMetadataService](https://developers.google.com/ad-manager/api/reference/v202605/CmsMetadataService.Statement) [CompanyService](https://developers.google.com/ad-manager/api/reference/v202605/CompanyService.Statement) [ContactService](https://developers.google.com/ad-manager/api/reference/v202605/ContactService.Statement) [ContentBundleService](https://developers.google.com/ad-manager/api/reference/v202605/ContentBundleService.Statement) [ContentService](https://developers.google.com/ad-manager/api/reference/v202605/ContentService.Statement) [CreativeService](https://developers.google.com/ad-manager/api/reference/v202605/CreativeService.Statement) [CreativeSetService](https://developers.google.com/ad-manager/api/reference/v202605/CreativeSetService.Statement) [CreativeTemplateService](https://developers.google.com/ad-manager/api/reference/v202605/CreativeTemplateService.Statement) [CreativeWrapperService](https://developers.google.com/ad-manager/api/reference/v202605/CreativeWrapperService.Statement) [CustomFieldService](https://developers.google.com/ad-manager/api/reference/v202605/CustomFieldService.Statement) [CustomTargetingService](https://developers.google.com/ad-manager/api/reference/v202605/CustomTargetingService.Statement) [DaiAuthenticationKeyService](https://developers.google.com/ad-manager/api/reference/v202605/DaiAuthenticationKeyService.Statement) [DaiEncodingProfileService](https://developers.google.com/ad-manager/api/reference/v202605/DaiEncodingProfileService.Statement) [InventoryService](https://developers.google.com/ad-manager/api/reference/v202605/InventoryService.Statement) **LabelService** [LineItemCreativeAssociationService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemCreativeAssociationService.Statement) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemService.Statement) [LineItemTemplateService](https://developers.google.com/ad-manager/api/reference/v202605/LineItemTemplateService.Statement) [LiveStreamEventService](https://developers.google.com/ad-manager/api/reference/v202605/LiveStreamEventService.Statement) [MobileApplicationService](https://developers.google.com/ad-manager/api/reference/v202605/MobileApplicationService.Statement) [NativeStyleService](https://developers.google.com/ad-manager/api/reference/v202605/NativeStyleService.Statement) [OrderService](https://developers.google.com/ad-manager/api/reference/v202605/OrderService.Statement) [PlacementService](https://developers.google.com/ad-manager/api/reference/v202605/PlacementService.Statement) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202605/ProposalLineItemService.Statement) [ProposalService](https://developers.google.com/ad-manager/api/reference/v202605/ProposalService.Statement) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202605/PublisherQueryLanguageService.Statement) [ReportService](https://developers.google.com/ad-manager/api/reference/v202605/ReportService.Statement) [SiteService](https://developers.google.com/ad-manager/api/reference/v202605/SiteService.Statement) [StreamActivityMonitorService](https://developers.google.com/ad-manager/api/reference/v202605/StreamActivityMonitorService.Statement) [SuggestedAdUnitService](https://developers.google.com/ad-manager/api/reference/v202605/SuggestedAdUnitService.Statement) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202605/TargetingPresetService.Statement) [TeamService](https://developers.google.com/ad-manager/api/reference/v202605/TeamService.Statement) [UserService](https://developers.google.com/ad-manager/api/reference/v202605/UserService.Statement) [UserTeamAssociationService](https://developers.google.com/ad-manager/api/reference/v202605/UserTeamAssociationService.Statement) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202605/YieldGroupService.Statement) **Dependencies** [getLabelsByStatement()](https://developers.google.com/ad-manager/api/reference/v202605/LabelService#getLabelsByStatement) [performLabelAction()](https://developers.google.com/ad-manager/api/reference/v202605/LabelService#performLabelAction) ▼ **Statement**

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%'"`.
The value for the variable idValue must then be set with an object of type [Value](https://developers.google.com/ad-manager/api/reference/v202605/LabelService.Value), e.g., [NumberValue](https://developers.google.com/ad-manager/api/reference/v202605/LabelService.NumberValue), [TextValue](https://developers.google.com/ad-manager/api/reference/v202605/LabelService.TextValue) or [BooleanValue](https://developers.google.com/ad-manager/api/reference/v202605/LabelService.BooleanValue).

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202605`

| ## Field ||
|---|---|
| ### `query` | ` xsd:string` Holds the query in PQL syntax. The syntax is: `[WHERE <condition> {[AND | OR] <condition> ...}]` `[ORDER BY <property> [ASC | DESC]]` `[LIMIT {[<offset>,] <count>} | {<count> OFFSET <offset>}]` `<condition>` `:= <property> {< | <= | > | >= | = | != } <value>` `<condition>` `:= <property> {< | <= | > | >= | = | != } <bind variable>` `<condition> := <property> IN <list>` `<condition> := <property> IS NULL` `<condition> := <property> LIKE <wildcard%match>` `<bind variable> := :<name>` <br /> |
| ### `values` | ` https://developers.google.com/ad-manager/api/reference/v202605/LabelService.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](https://developers.google.com/ad-manager/api/reference/v202605/LabelService.TextValue). The final result, for example, would be an entry of `"bindStatus" => StringParam("ACTIVE")`. <br /> |