{"id":21490,"date":"2022-03-09T15:54:00","date_gmt":"2022-03-09T10:24:00","guid":{"rendered":"https:\/\/www.adpushup.com\/blog\/?p=21490"},"modified":"2022-10-17T20:33:06","modified_gmt":"2022-10-17T15:03:06","slug":"what-is-publisher-query-language-a-complete-guide","status":"publish","type":"post","link":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/","title":{"rendered":"What is Publisher Query Language- A Complete Guide","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"\n<p>If you&#8217;re an advanced Google Ad Manager user, you might have heard of the &#8216;Publisher Query Language (or PQL). After all, it makes your reporting work faster and simpler. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If PQL is a new term for you, no worries. We&#8217;ll walk you through what it does and how publishers can benefit from it. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Before we talk about Publisher Query Language and its reporting capabilities, let&#8217;s do a quick brief of Google Ad Manager and it&#8217;s reporting feature.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#feeaef\"><strong>Also read: <a href=\"https:\/\/www.adpushup.com\/blog\/how-to-use-google-ad-manager-with-adsense-and-ad-exchange\/\">How to Use Google Ad Manager with AdSense and Ad Exchange<\/a><\/strong><\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-flat ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents:<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#Google_Ad_Manager_Reporting\" >Google Ad Manager Reporting<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#What_is_a_Query_Language\" >What is a Query Language?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#What_is_a_Publisher_Query_Language\" >What is a Publisher Query Language?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#What_is_Structured_Query_Language_SQL\" >What is Structured Query Language (SQL)?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#Syntax_of_Publisher_Query_Language\" >Syntax of Publisher Query Language<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#Conclusion\" >Conclusion:&nbsp;<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#Summary\" >Summary:&nbsp;<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#FAQs\" >FAQs<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Google_Ad_Manager_Reporting\"><\/span>Google Ad Manager Reporting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>With Google Ad Manager, you can create reports of every service and task managed on the platform \u2014 demand partners, yield partners, AdSense, Ad Exchange, and other linked services.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The reports can be scheduled by day, week, and month. GAM allows filters based on dimensions and metrics. And if you are new to GAM reporting, you can start with predefined templates. Once these reports are generated, you can share them with your team within the dashboard or save as CSV or Excel files.<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<p>In short, GAM&#8217;s reporting feature helps analyze the data and extract actionable insights that helps publishers increase the overall ad revenue and extract publisher-focused metrics such as click-through rates, eCPMs, etc. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\"><strong>Read more: <a href=\"https:\/\/www.adpushup.com\/blog\/how-to-generate-google-ad-manager-reports\/\">How to Generate Reports in Google Ad Manager<\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>But, if you want to do more with GAM, you need to take a look at PQL and see how it  directly interacts with the Google Ad Manager database and generates different reports accurately?<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>In this article, you will get to know everything about Publisher Query Language. But let\u2019s clear the basics first.<\/p>\n\n\n\n<h2 id=\"h-what-is-a-query-language\"><span class=\"ez-toc-section\" id=\"What_is_a_Query_Language\"><\/span>What is a Query Language?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before discussing Publisher Query Language, let us first understand what a Query language is. A query language is a programming language used to request data from the database and retrieve data based on the commands or specifications.&nbsp;<\/p>\n\n\n\n<h2 id=\"h-what-is-a-publisher-query-language\"><span class=\"ez-toc-section\" id=\"What_is_a_Publisher_Query_Language\"><\/span>What is a Publisher Query Language?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>PQL or Publisher Query Language is an SQL- based language to interact with the Google Ad Manager database and generate reports based on the queries provided by the publisher. PQL requires users to give structured commands to retrieve data and report.&nbsp;<\/p>\n\n\n\n<p>Users apply filters to narrow the results by using commands like &#8216;is any of,&#8217; &#8216;contains,&#8217; &#8216;does not contain,&#8217; &#8216;line item end date.&#8217;&nbsp;PQL helps the ad server understand what the user is asking for, retrieves the data based on the queries, and generates reports.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff1f5\"><strong>Also read: <a href=\"https:\/\/www.adpushup.com\/blog\/data-discrepancy-between-google-ads-manager-and-google-analytics\/\">Data Discrepancy between Google Ads Manager and Google Analytics<\/a><\/strong><\/p>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"What_is_Structured_Query_Language_SQL\"><\/span>What is Structured Query Language (SQL)?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>As you might&#8217;ve read, we mentioned SQL in the previous paragraph. To give some context, Structured Query Language (SQL) is a standardised programming language used for managing <a href=\"https:\/\/www.techtarget.com\/searchdatamanagement\/definition\/relational-database\">relational databases<\/a>&nbsp;and perform various operations on the data in them. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>SQL is used not only by database administrators, but also by <meta charset=\"utf-8\">data analysts and developers who write data and run analytical queries.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The term&nbsp;<em>SQL<\/em>&nbsp;is pronounced&nbsp;<em>ess-kew-ell&nbsp;<\/em>or&nbsp;<em>sequel<\/em>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>SQL is used for the following:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul><li>modifying database table <\/li><li>Modify index structures<\/li><li>adding, removing, and updating rows of data; and<\/li><li>retrieving information from within relational database management systems <\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>SQL queries take the form of commands written as statements. These queries are aggregated into programs which enable users to retrieve, add, or modify data from database tables.<\/p>\n\n\n\n<h3 id=\"h-syntax-of-publisher-query-language\"><span class=\"ez-toc-section\" id=\"Syntax_of_Publisher_Query_Language\"><\/span>Syntax of Publisher Query Language<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The PQL syntax can be recapitulated as:&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">[WHERE &lt;condition&gt; {[AND | OR] &lt;condition&gt; &#8230;}]<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">[ORDER BY &lt;property&gt; [ASC | DESC]]<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">[LIMIT {[&lt;offset&gt;,] &lt;count&gt;} | {&lt;count&gt; OFFSET &lt;offset&gt;}]<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">&lt;condition&gt; := &lt;property&gt; { = | != } &lt;value&gt;<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">&lt;condition&gt; := &lt;property&gt; { = | != } &lt;bind variable&gt;<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">&lt;condition&gt; := &lt;property&gt; IN &lt;list&gt;<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">&lt;condition&gt; := NOT &lt;property&gt; IN &lt;list&gt;<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">&lt;condition&gt; := &lt;property&gt; LIKE &lt;wildcard%match&gt;<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">&lt;condition&gt; := &lt;property&gt; IS NULL<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#fff0f4\">&lt;bind variable&gt; := :&lt;name&gt;<\/p>\n\n\n\n<p class=\"has-text-align-center\">(Source:&nbsp;<a target=\"_blank\" href=\"https:\/\/developers.google.com\/ad-manager\/api\/pqlreference\" rel=\"noreferrer noopener\">Google<\/a>)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>PQL keywords are not case-sensitive. For example, take a look at the following keywords:&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul><li><strong>WHERE-<\/strong> The keyword WHERE expresses a set of conditions, optionally conjoined with AND or OR phrases with parentheses ( ). AND or OR phrases filter data based on one or more conditions.&nbsp; <strong>Example<\/strong>&#8211; WHERE width = 728<\/li><\/ul>\n\n\n\n<p>WHERE width = 728 AND height = 90<\/p>\n\n\n\n<p>WHERE (width = 728 AND height = 90) AND id IN (5008, 8745, 3487)<\/p>\n\n\n\n<p>In the above example, the report will contain only data about an ad that meets both the conditions, 728&#215;90 size, and the Advertiser&#8217;s ID is the same as stated above.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Example-<\/strong> WHERE (width = 728 AND height = 90) OR id IN (5000, 5678, 8775)<\/p>\n\n\n\n<p>In this example, the report will contain data about an ad that meets either of the conditions, either the ad with 728 x 90 size or the advertiser&#8217;s ID the same as above.&nbsp;<\/p>\n\n\n\n<p>(<a target=\"_blank\" href=\"https:\/\/developers.google.com\/ad-manager\/api\/pqlreference\" rel=\"noreferrer noopener\">Source<\/a>)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul><li><strong>ORDER BY:<\/strong> This command sorts the results in either ascending (ASC) order or descending order (DESC). In case of any specification, the results generated will be in ascending order by default.&nbsp;<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Example:<\/strong> WHERE id IN (6873, 6979, 9764) ORDER BY id;&nbsp;<\/p>\n\n\n\n<p>The above command will select the advertisers with these IDs and generate the results in ascending order, by default, 6873, 6979, and 9764.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Example- <\/strong>WHERE id IN (6873, 9764, 7654) ORDER BY DESC id;&nbsp;<\/p>\n\n\n\n<p>The results generated will be the advertisers&#8217; IDs in descending order, that is, 9764, 7654, and 6873.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul><li><strong>LIMIT-<\/strong> The LIMIT command limits the number of results of the query. LIMIT can also include &lt;offset&gt;, which will state how many rows, from start to offset, the results will set.&nbsp;<strong>Example<\/strong>&#8211; WHERE type = \u2018AGENCY\u2019 LIMIT 50 OFFSET 100. The resulting report will show data from rows 50 to 100.&nbsp;<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<ul><li><strong>IN:<\/strong> The command IN compares the value of a property with each item in a list. A matched value means a positive match.<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Example: <\/strong>WHERE name IN ( \u2018CompanyNameA,\u2019 \u2018CompanyNameB\u2019)<\/p>\n\n\n\n<p>The values of which data is requested are comma-separated and enclosed in parentheses.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul><li><strong>NOT IN<\/strong>: The command NOT IN compares the value of a property with each item in the list. Unmatched values mean a positive match. Like in IN command, the values specified are comma-separated and enclosed in parentheses.&nbsp; <strong>Example:<\/strong> WHERE name NOT IN ( \u2018CompanyNameA\u2019 , \u2018CompanyNameB\u2019 )<\/li><\/ul>\n\n\n\n<ul><li><strong>LIKE<\/strong>: LIKE clause is used in the WHERE clause to look for a specified value in the database using WILDCARD string matching.&nbsp;<strong>Example:<\/strong> WHERE name LIKE \u2018foo %searchstring% bar\u2019<\/li><\/ul>\n\n\n\n<p>WHERE name LIKE &#8216;Aus%.&#8217;&nbsp;<\/p>\n\n\n\n<p>Being well-versed in SQL will benefit you in writing your PQL queries in Google Ads Manager as Publisher Query Language is quite similar to SQL.&nbsp;<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul><li><code><strong>IS NULL<\/strong><\/code>&nbsp;&#8211; Enables publishers to query for objects with an undefined property value. A good example of this is querying for the root&nbsp;<code>AdUnit<\/code>&nbsp;by querying for an&nbsp;<code>AdUnit<\/code>&nbsp;with a null parent ID. <strong>Example:<\/strong>&nbsp;<code>WHERE parentId IS NULL<\/code>.<\/li><li><code><strong>&lt;bind variable&gt;<\/strong><\/code>&nbsp;&#8211; GAM user can use&nbsp;<code>Value<\/code>&nbsp;objects in place of hard-coded &lt;value&gt; values in their PQL query. <\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Example (Creates a query and enters two variables in place of hard-coded&nbsp;<code>id<\/code>&nbsp;and&nbsp;<code>status<\/code>&nbsp;property values):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ Create two mapped parameters: id and status\nString_ValueMapEntry&#91;] values = new String_ValueMapEntry&#91;2];\nvalues&#91;0] = new String_ValueMapEntry(\"id\", new NumberValue(null, \"123\"));\nvalues&#91;1] = new String_ValueMapEntry(\"status\", new TextValue(null, \"APPROVED\"));\n\n\/\/ Create our statement and map our bind variables\nStatement statement = new Statement();\nstatement.setQuery(\"WHERE id = :id AND status = :status LIMIT 500\");\nstatement.setValues(values);<\/code><\/pre>\n\n\n\n<h3 id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion:&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Publisher Query Language is an advanced solution to help advertisers and publishers get accurate reports. PQL, a SQL-based programming language, is used to retrieve data from the Google Ads Manager database regarding eCPMS, CTRs, etc., on specified ads and gives you actionable insights on how you can improve the overall performance of ad campaigns.&nbsp;<\/p>\n\n\n\n<h2 id=\"h-summary\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary:&nbsp;<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol><li>Publisher Query Language, i.e., PQL, is an SQL-based query language used to interact directly with the Google Ads Manager database and generate reports based on the specifications.&nbsp;<\/li><li>PQL syntax is structured to help advertisers and publishers write queries in GAM.<\/li><li>PQL allows users to apply filters to narrow down their search in the Google Ads Manager database.&nbsp;<\/li><li>Commands like &#8216;is any of,&#8217; &#8216;contains,&#8217; &#8216;does not contain,&#8217; &#8216;line item end date,&#8217; etc., are used to make queries.&nbsp;<\/li><li>If you are well-versed in SQL, you can quickly write queries in PQL.&nbsp;<\/li><li>PQL helps the ad server understand what the user is looking for and then retrieves data from the GAM database.&nbsp;<\/li><\/ol>\n\n\n\n<h2 id=\"h-faqs\"><span class=\"ez-toc-section\" id=\"FAQs\"><\/span>FAQs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1666018665592\"><strong class=\"schema-faq-question\">1. What are the two types of query language?<\/strong> <p class=\"schema-faq-answer\">There are two types of queries: snapshots and continuous queries.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1666018782916\"><strong class=\"schema-faq-question\">2. What is query language and its types?<\/strong> <p class=\"schema-faq-answer\">Query language is a language for retrieving data from databases. There are two types of query languages:\u00a0<br\/>i. procedural and imperative<br\/>ii. Non-procedural language.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1666018888066\"><strong class=\"schema-faq-question\">3. What is the most popular query language?<\/strong> <p class=\"schema-faq-answer\">SQL is the most common query language used to interact with relational databases.<\/p> <\/div> <\/div>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>If you&#8217;re an advanced Google Ad Manager user, you might have heard of the &#8216;Publisher Query Language (or PQL). After all, it makes your reporting work faster and simpler. If PQL is a new term for you, no worries. We&#8217;ll walk you through what it does and how publishers can benefit from it. Before we<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":18,"featured_media":21801,"comment_status":"open","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"content-type":"","om_disable_all_campaigns":false,"inline_featured_image":false,"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\""},"categories":[6452],"tags":[6422],"apple_news_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.5 (Yoast SEO v18.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is Publisher Query Language- A Complete Guide |Adpushup<\/title>\n<meta name=\"description\" content=\"PQL or Publisher Query Language is an SQL- based language that interacts with the GAM database and generate reports based on the queries.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:title\" content=\"What is Publisher Query Language- A Complete Guide |Adpushup\" \/>\n<meta name=\"twitter:description\" content=\"PQL or Publisher Query Language is an SQL- based language that interacts with the GAM database and generate reports based on the queries.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2022\/03\/Untitled-design-3.png\" \/>\n<meta name=\"twitter:creator\" content=\"@adpushup\" \/>\n<meta name=\"twitter:site\" content=\"@adpushup\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shubham Grover\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/#organization\",\"name\":\"AdPushup\",\"url\":\"https:\/\/www.adpushup.com\/blog\/\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/adpushup\/\",\"https:\/\/www.facebook.com\/AdPushup\/\",\"https:\/\/twitter.com\/adpushup\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/02\/AdPushup-logo.png\",\"contentUrl\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/02\/AdPushup-logo.png\",\"width\":3294,\"height\":893,\"caption\":\"AdPushup\"},\"image\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/#website\",\"url\":\"https:\/\/www.adpushup.com\/blog\/\",\"name\":\"AdPushup Blog\",\"description\":\"A\/B Testing, Monetization &amp; Ad Optimization\",\"publisher\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.adpushup.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#primaryimage\",\"url\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2022\/03\/Untitled-design-3.png\",\"contentUrl\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2022\/03\/Untitled-design-3.png\",\"width\":1024,\"height\":768},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#webpage\",\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/\",\"name\":\"What is Publisher Query Language- A Complete Guide |Adpushup\",\"isPartOf\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#primaryimage\"},\"datePublished\":\"2022-03-09T10:24:00+00:00\",\"dateModified\":\"2022-10-17T15:03:06+00:00\",\"description\":\"PQL or Publisher Query Language is an SQL- based language that interacts with the GAM database and generate reports based on the queries.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018665592\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018782916\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018888066\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"blog\",\"item\":\"https:\/\/www.adpushup.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Ad Manager\",\"item\":\"https:\/\/www.adpushup.com\/blog\/category\/google-ad-manager\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"What is Publisher Query Language- A Complete Guide\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#\/schema\/person\/8dbbe9397dddf4ab1d858603e751f897\"},\"headline\":\"What is Publisher Query Language- A Complete Guide\",\"datePublished\":\"2022-03-09T10:24:00+00:00\",\"dateModified\":\"2022-10-17T15:03:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#webpage\"},\"wordCount\":1418,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2022\/03\/Untitled-design-3.png\",\"keywords\":[\"explainers\"],\"articleSection\":[\"Google Ad Manager\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/#\/schema\/person\/8dbbe9397dddf4ab1d858603e751f897\",\"name\":\"Shubham Grover\",\"description\":\"Shubham is a digital marketer with rich experience working in the advertisement technology industry. He has vast experience in the programmatic industry, driving business strategy and scaling functions including but not limited to growth and marketing, Operations, process optimization, and Sales.\",\"url\":\"https:\/\/www.adpushup.com\/blog\/author\/shubham\/\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018665592\",\"position\":1,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018665592\",\"name\":\"1. What are the two types of query language?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"There are two types of queries: snapshots and continuous queries.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018782916\",\"position\":2,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018782916\",\"name\":\"2. What is query language and its types?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Query language is a language for retrieving data from databases. There are two types of query languages:\u00a0<br\/>i. procedural and imperative<br\/>ii. Non-procedural language.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018888066\",\"position\":3,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018888066\",\"name\":\"3. What is the most popular query language?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"SQL is the most common query language used to interact with relational databases.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"What is Publisher Query Language- A Complete Guide |Adpushup","description":"PQL or Publisher Query Language is an SQL- based language that interacts with the GAM database and generate reports based on the queries.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/","twitter_card":"summary","twitter_title":"What is Publisher Query Language- A Complete Guide |Adpushup","twitter_description":"PQL or Publisher Query Language is an SQL- based language that interacts with the GAM database and generate reports based on the queries.","twitter_image":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2022\/03\/Untitled-design-3.png","twitter_creator":"@adpushup","twitter_site":"@adpushup","twitter_misc":{"Written by":"Shubham Grover","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.adpushup.com\/blog\/#organization","name":"AdPushup","url":"https:\/\/www.adpushup.com\/blog\/","sameAs":["https:\/\/www.linkedin.com\/company\/adpushup\/","https:\/\/www.facebook.com\/AdPushup\/","https:\/\/twitter.com\/adpushup"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.adpushup.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/02\/AdPushup-logo.png","contentUrl":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/02\/AdPushup-logo.png","width":3294,"height":893,"caption":"AdPushup"},"image":{"@id":"https:\/\/www.adpushup.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.adpushup.com\/blog\/#website","url":"https:\/\/www.adpushup.com\/blog\/","name":"AdPushup Blog","description":"A\/B Testing, Monetization &amp; Ad Optimization","publisher":{"@id":"https:\/\/www.adpushup.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.adpushup.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#primaryimage","url":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2022\/03\/Untitled-design-3.png","contentUrl":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2022\/03\/Untitled-design-3.png","width":1024,"height":768},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#webpage","url":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/","name":"What is Publisher Query Language- A Complete Guide |Adpushup","isPartOf":{"@id":"https:\/\/www.adpushup.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#primaryimage"},"datePublished":"2022-03-09T10:24:00+00:00","dateModified":"2022-10-17T15:03:06+00:00","description":"PQL or Publisher Query Language is an SQL- based language that interacts with the GAM database and generate reports based on the queries.","breadcrumb":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018665592"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018782916"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018888066"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"blog","item":"https:\/\/www.adpushup.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Google Ad Manager","item":"https:\/\/www.adpushup.com\/blog\/category\/google-ad-manager\/"},{"@type":"ListItem","position":3,"name":"What is Publisher Query Language- A Complete Guide"}]},{"@type":"Article","@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#article","isPartOf":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#webpage"},"author":{"@id":"https:\/\/www.adpushup.com\/blog\/#\/schema\/person\/8dbbe9397dddf4ab1d858603e751f897"},"headline":"What is Publisher Query Language- A Complete Guide","datePublished":"2022-03-09T10:24:00+00:00","dateModified":"2022-10-17T15:03:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#webpage"},"wordCount":1418,"commentCount":0,"publisher":{"@id":"https:\/\/www.adpushup.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2022\/03\/Untitled-design-3.png","keywords":["explainers"],"articleSection":["Google Ad Manager"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#respond"]}]},{"@type":"Person","@id":"https:\/\/www.adpushup.com\/blog\/#\/schema\/person\/8dbbe9397dddf4ab1d858603e751f897","name":"Shubham Grover","description":"Shubham is a digital marketer with rich experience working in the advertisement technology industry. He has vast experience in the programmatic industry, driving business strategy and scaling functions including but not limited to growth and marketing, Operations, process optimization, and Sales.","url":"https:\/\/www.adpushup.com\/blog\/author\/shubham\/"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018665592","position":1,"url":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018665592","name":"1. What are the two types of query language?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"There are two types of queries: snapshots and continuous queries.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018782916","position":2,"url":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018782916","name":"2. What is query language and its types?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Query language is a language for retrieving data from databases. There are two types of query languages:\u00a0<br\/>i. procedural and imperative<br\/>ii. Non-procedural language.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018888066","position":3,"url":"https:\/\/www.adpushup.com\/blog\/what-is-publisher-query-language-a-complete-guide\/#faq-question-1666018888066","name":"3. What is the most popular query language?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"SQL is the most common query language used to interact with relational databases.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/posts\/21490"}],"collection":[{"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/comments?post=21490"}],"version-history":[{"count":4,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/posts\/21490\/revisions"}],"predecessor-version":[{"id":29658,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/posts\/21490\/revisions\/29658"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/media\/21801"}],"wp:attachment":[{"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/media?parent=21490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/categories?post=21490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/tags?post=21490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}