type SavedQuery (v202411)

  • SavedQuery objects store selection criteria for running reports, essentially acting as templates for recurring reports.

  • They include an ID, a name, and the underlying ReportQuery defining the report's structure.

  • The isCompatibleWithApiVersion flag indicates if the saved query can be used with the current API version, based on the features used in the report.

  • If isCompatibleWithApiVersion is true, the reportQuery field will contain the actual query details; otherwise, it will be null.

A saved ReportQuery representing the selection criteria for running a report.


Namespace
https://www.google.com/apis/ads/publisher/v202411

Field

id

xsd:long

The ID of the saved query.

name

xsd:string

The name of the saved query.

reportQuery

ReportQuery

The ReportQuery representing the selection criteria for the saved query. This will be non-null if and only if SavedQuery.isCompatibleWithApiVersion is true.

isCompatibleWithApiVersion

xsd:boolean

Whether or not the saved query is compatible with the current API version. This will be true if and only if SavedQuery.reportQuery is non-null. A saved query will be incompatible with the API if it uses columns, dimensions, or other reporting features from the UI that are not available in the ReportQuery entity.