{"id":28124,"date":"2024-02-26T07:43:15","date_gmt":"2024-02-26T15:43:15","guid":{"rendered":"https:\/\/www.intentwise.com\/blog\/?p=28124"},"modified":"2024-02-26T07:43:17","modified_gmt":"2024-02-26T15:43:17","slug":"how-to-customize-an-amc-query","status":"publish","type":"post","link":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/","title":{"rendered":"How to customize an Amazon Marketing Cloud query","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you use Amazon Marketing Cloud on your own\u2014without the assistance of a platform like Intentwise Explore\u2014you\u2019re going to have to learn to customize queries.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The quick background: When you use AMC, you are asking the platform your pressing business questions\u2014such as, \u201cshow me a list of shoppers who added to cart but did not purchase.\u201d Those questions are posed in the form of queries written in SQL.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To get you started, Amazon gives you a library of several dozen instructional queries and audiences. But these queries have a <a href=\"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/why-amcs-instructional-queries-are-not-enough\/\">number of important limitations<\/a>. Inevitably, you\u2019re going to want to modify those queries to meet your own specifications.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But how do you actually modify an instructional query? In theory, it\u2019s just some code tweaks\u2014but the more complex you get, the more difficult it becomes.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our team <a href=\"https:\/\/www.intentwise.com\/services\/intentwise-analytics-services\">customizes<\/a> queries for clients every single day, so we know this process inside and out. And we know it can sometimes feel a bit opaque how queries actually work.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We wanted to pull back the curtain for a second, and show you what\u2019s actually happening when you modify an instructional query or audience.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-do-instructional-queries-actually-say\"><strong>What do instructional queries actually say?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To start, we\u2019re going to show you a very simple example\u2014the instructional audience for shoppers who added a product to cart but didn\u2019t purchase. This is a high-utility audience that <a href=\"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/comparison-amazon-dsp-vs-amc-audiences\/\">you can\u2019t create in DSP<\/a>.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019re choosing this example because it is one of the simplest instructional audiences available. Keep in mind that modifying pretty much any other instructional query or audience will be more complicated than this.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In SQL code, the \u201cshoppers who added to cart but didn\u2019t purchase\u201d audience looks like this:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/lh7-us.googleusercontent.com\/jBZfrcR-Jbo7xz36TxMOQflOCmmqfIjxsXBzkJyXRM9QK6c8hXcjOMDVnQOFrx44KMK0gEmRx1_2ZFRIwpfbVhRqE91cCLCzfzkvgR_Mv5dF2JBDPLQayzg8QNevuyLytR_qyDXc1Ocqm4yYiz-1boE\" alt=\"SQL code for shoppers who added to cart but didn't purchase\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">What is all of this SQL actually saying? It helps to think of AMC queries as a series of tables, where each table contains signals from a set of shopper actions. AMC works by joining together those parts of the table that fit your specifications, and then creating a new output based on your specification.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, AMC\u2019s instructional query references 2 tables:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A table of shoppers sorted by their most recent purchase (called \u201cmax purchase event\u201d)<\/li>\n\n\n\n<li>A table of shoppers sorted by their most recent add to cart event (called \u201cmax ATC event\u201d)&nbsp;<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Those tables might look a bit like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"884\" height=\"268\" src=\"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/amc-table-1.png\" alt=\"Table of shoppers sorted by max purchase event and max ATC event\" class=\"wp-image-28128\" srcset=\"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/amc-table-1.png 884w, https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/amc-table-1-300x91.png 300w, https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/amc-table-1-768x233.png 768w, https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/amc-table-1-560x170.png 560w\" sizes=\"(max-width: 884px) 100vw, 884px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once those tables are created, the work of narrowing down your audience comes in. The instructional query instructs AMC to create a pool of shoppers who added to cart but did <em>not<\/em> purchase.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That means it wants to find the set of shoppers whose most recent add to cart date was <em>after<\/em> their most recent purchase date.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019re simplifying a bit, but in a sense what AMC does is take those tables and highlight the shoppers who added a product to cart that they have yet to purchase. Using the logic of SQL, you might visualize the process along these lines:&nbsp;&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/lh7-us.googleusercontent.com\/10LIYfABZ2j5td479hndxsmVXxe4SKyAg0Efz9Mtd8QBYlaiZpgJ-1DbWNA5M4E7NwPi2-nhMaV8WNXBfdU6ZzvmmDD_1bZnuLR_6o35M2eJYgBvP2nXWlzt8dvrJPdB__sjHIEljzSSNt2Dn1FnmJ8\" alt=\"table of highlighted users who added product to cart but didn't purchase\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see, user 1 and user 4 each had a last purchase date more recent than their last add-to-cart date. That means they are disqualified from our final audience.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The three other users\u2014highlighted in green\u2014had an add-to-cart date more recent than their last purchase date, meaning they added a product to cart that they have yet to purchase.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Those three users will make it into your final audience, producing a table of user 2, user 3, and user 5.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-but-how-do-i-modify-the-instructional-query-nbsp\"><strong>But how do I modify the instructional query?&nbsp;<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">What we just outlined is a very simple, boilerplate instructional query. What if you want to make it more specific? For instance, what if you want to track shoppers who added<em> specific ASINs<\/em> to their cart, but did not purchase them?&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this case, it\u2019s a relatively simple change, amounting to adding another column to your existing tables.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the SQL code, what you want to do is take those two groups\u2014those add-to-cart and purchase tables\u2014and then add \u201cASIN\u201d as a filter for both.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The new column specifies which ASIN each customer bought or added to their cart. Like this:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/lh7-us.googleusercontent.com\/ED2Ir-_H2XJ9mlaxEngECheQuVlLFdMHgMsXPCcfFA0pfXYoqaPcTJAOq3NoKYfb8obd3Ox3T1KVWQ2ykMvcpIQXE4ZOkWucBLnQB8gJiy6QtnHMVFKHc3EXumkGMW7q4XxEhCJVK8W5oySEHGfMac4\" alt=\"table of customers who added specific ASINs to their cart\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then, through SQL code, you tell AMC to narrow down the tables. You add just a few extra lines of code, such as in the following example. The SQL we added is in bold:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" width=\"658\" height=\"1024\" data-src=\"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-at-10.05.00-AM-658x1024.png\" alt=\"AMC query to narrow down tables\" class=\"wp-image-28125 lazyload\" style=\"--smush-placeholder-width: 658px; --smush-placeholder-aspect-ratio: 658\/1024;width:600px\" data-srcset=\"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-at-10.05.00-AM-658x1024.png 658w, https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-at-10.05.00-AM-193x300.png 193w, https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-at-10.05.00-AM-768x1195.png 768w, https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-at-10.05.00-AM-560x871.png 560w, https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-26-at-10.05.00-AM.png 838w\" data-sizes=\"(max-width: 658px) 100vw, 658px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As before, you first want to find the users who added a product to cart more recently than they made a purchase. Once again, you\u2019ll be left with users 2, 3, and 5.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But now, with our modifications to the instructional query, you only are interested in users who added specific ASINs to cart but did not purchase. We used the<strong> tracked_asin <\/strong>column in order to focus on those specific ASINs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, let\u2019s say you\u2019re only interested in ASIN 3. That means you only want to see an audience of shoppers who added ASIN 3 to their cart but did not purchase it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your final table will look like this, with only user 5 in your audience:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-src=\"https:\/\/lh7-us.googleusercontent.com\/F4MjICgYYL8Pzqkc5My0bhzEzIYFB8LlTDO43ZPPRn07l00oL1ZNzm9AQ30g9xcpVpijE47sgKQl4KWj_rXhF4qozIgKo-9j-ZXw9aH6jgqWcAb9q-_rOo5wC9QEI69AZuotwdzybLomGyZ9fFESRyk\" alt=\"output table through AMC query\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-hard-is-modifying-queries-really-nbsp\"><strong>How hard is modifying queries, really?&nbsp;<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Even if you don\u2019t have detailed knowledge of SQL, you might be able to get by with making a simple modification to an easy instructional query like this one. But remember, editing the code is only one part of the task of customizing a query or audience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You also have to:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Validate the query<\/strong> to be sure the data is accurate.&nbsp;<\/li>\n\n\n\n<li><strong>Ensure your audience is larger <\/strong>than Amazon\u2019s 2k shopper minimum threshold. Remember, as you add more constraints, you\u2019re creating a higher probability that the audience will fall below that 2k minimum.&nbsp;<\/li>\n\n\n\n<li><strong>Run a cost-benefit analysis<\/strong> of whether the audience is worth all the trouble in the first place. Even if it clears the 2k threshold, is it a big enough or valuable enough audience to make back the money you spend creating it?\u00a0<\/li>\n\n\n\n<li><strong>Examine all of the available data sets in AMC<\/strong> to verify you are using the best possible data sets, along with the proper columns in those data sets. It therefore helps to have someone on your team with domain knowledge of AMC. In this case, the proper field to customize the audience was the tracked_asin column.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Only after taking those steps will you know if your custom query is good to go.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-what-about-more-complicated-modifications-nbsp\"><strong>What about more complicated modifications?&nbsp;<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Oftentimes, you won\u2019t just want to add one tiny ASIN filter to AMC\u2019s instructional audiences. You may want to do something a bit more dramatic.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Say you want to create an audience of shoppers who were exposed to Sponsored Products and Sponsored Brands ads\u2014but not Sponsored Display ads\u2014and did not make a purchase.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You\u2019ll want to take the instructional query audience, \u201c<strong>Audience Exposed to Amazon Streaming TV Campaign but not Display Campaign<\/strong>,\u201d and then modify it to replace \u201cExposed to Amazon Streaming TV Campaign\u201d with \u201cExposed to SP and SB ads.\u201d Then, you also need to add the requirement that these shoppers haven\u2019t purchased.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What this audience calls for is an entirely new series of tables. First, build two common table expressions\u2014one for people exposed to Sponsored Products ads and another for people exposed to Sponsored Brands ads. Join them together, so you have an audience of people exposed to both SP <em>and<\/em> SB.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then, create a table of people who saw your Sponsored Display ads. Negate out all of the shoppers from your SP+SB table who saw the SD ads. Then, you\u2019ll have a new table that is essentially (SP+SB) -SD.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, you want to create a table of shoppers who purchased from you. Again, negate out those purchasers from your (SP+SB) -SD table. At long last, you\u2019ll have your audience of people exposed to SB+SD, but not SD, who didn\u2019t purchase.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This customization takes a lot of work. The original instructional query was about 20 lines of SQL code. Now, the final custom query will probably be more than double that\u2014about 45 lines of code.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This modification is intensive enough that you will basically be writing a whole new query from scratch. It\u2019s a lot of work, and it requires expertise. If you want to learn how to do more modifications like this, we have a dedicated <a href=\"https:\/\/www.intentwise.com\/training\/sql\">SQL training module<\/a> that is widely used across the industry.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Or, of course, you can just use Intentwise Explore to pull insights from Amazon Marketing Cloud. When you use <a href=\"https:\/\/www.intentwise.com\/amazon-marketing-cloud\">Intentwise Explore<\/a>, get access to a vast library of fully customizable queries and audiences, which you can schedule to run in the background.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-bonus-get-your-ultimate-amc-guide\"><strong>Bonus: Get your ultimate AMC guide<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We just published our newest whitepaper, \u201c<a href=\"https:\/\/www.intentwise.com\/white-paper\/amazon-marketing-cloud\/amc-strategy\">The Amazon Marketing Cloud Strategy Guide<\/a>,\u201d which is the most robust guide to AMC available online.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Across 16 pages, we break down the best practices for AMC, the key events you can track, the differences between free and paid datasets, and the benefit of uploading your 1P data to AMC.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re still trying to make sense of AMC, this is the document for you. Share it with your team, share it with your clients, and level up the sophistication of your internal discussions about how to leverage AMC.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Download it now for free.<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>If you use Amazon Marketing Cloud on your own\u2014without the assistance of a platform like Intentwise Explore\u2014you\u2019re going to have to learn to customize queries.&nbsp; The quick background: When you use AMC, you are asking the platform your pressing business questions\u2014such as, \u201cshow me a list of shoppers who added to cart but did not [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":22,"featured_media":28132,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","cybocfi_hide_featured_image":"","footnotes":""},"categories":[135],"tags":[97,96,155],"class_list":["post-28124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amazon-marketing-cloud","tag-amazon-marketing-cloud","tag-mobile","tag-newsletter"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.7 (Yoast SEO v27.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to customize an Amazon Marketing Cloud query<\/title>\n<meta name=\"description\" content=\"Writing custom queries is the key to using Amazon Marketing Cloud effectively. Here&#039;s a behind-the-scenes look at how it works.\" \/>\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.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to customize an Amazon Marketing Cloud query\" \/>\n<meta property=\"og:description\" content=\"Writing custom queries is the key to using Amazon Marketing Cloud effectively. Here&#039;s a behind-the-scenes look at how it works.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/\" \/>\n<meta property=\"og:site_name\" content=\"Intentwise Blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-26T15:43:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-26T15:43:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Query.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1750\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Michael Waters\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Waters\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/\"},\"author\":{\"name\":\"Michael Waters\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#\\\/schema\\\/person\\\/b792a03444bf9fe1673eec5daf7fae99\"},\"headline\":\"How to customize an Amazon Marketing Cloud query\",\"datePublished\":\"2024-02-26T15:43:15+00:00\",\"dateModified\":\"2024-02-26T15:43:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/\"},\"wordCount\":1588,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Query.jpg\",\"keywords\":[\"Amazon Marketing Cloud\",\"Mobile\",\"Newsletter\"],\"articleSection\":[\"Amazon Marketing Cloud\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/\",\"url\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/\",\"name\":\"How to customize an Amazon Marketing Cloud query\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Query.jpg\",\"datePublished\":\"2024-02-26T15:43:15+00:00\",\"dateModified\":\"2024-02-26T15:43:17+00:00\",\"description\":\"Writing custom queries is the key to using Amazon Marketing Cloud effectively. Here's a behind-the-scenes look at how it works.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Query.jpg\",\"contentUrl\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/Query.jpg\",\"width\":1750,\"height\":1000},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/amazon-marketing-cloud\\\/how-to-customize-an-amc-query\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Amazon Marketing Cloud\",\"item\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/.\\\/amazon-marketing-cloud\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to customize an Amazon Marketing Cloud query\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/\",\"name\":\"Intentwise Blog\",\"description\":\"Amazon Analytics &amp; Advertising Software\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#organization\",\"name\":\"Intentwise\",\"url\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/favicon256.png\",\"contentUrl\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/favicon256.png\",\"width\":256,\"height\":256,\"caption\":\"Intentwise\"},\"image\":{\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/#\\\/schema\\\/person\\\/b792a03444bf9fe1673eec5daf7fae99\",\"name\":\"Michael Waters\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/a\\\/ACg8ocK8NgD1p_6vDhk06IqnMKXDnxTfjSjK3-VxS9-MMBHnowhzlfI\",\"url\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/a\\\/ACg8ocK8NgD1p_6vDhk06IqnMKXDnxTfjSjK3-VxS9-MMBHnowhzlfI\",\"contentUrl\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/a\\\/ACg8ocK8NgD1p_6vDhk06IqnMKXDnxTfjSjK3-VxS9-MMBHnowhzlfI\",\"caption\":\"Michael Waters\"},\"description\":\"Senior content writer, Intentwise\",\"url\":\"https:\\\/\\\/www.intentwise.com\\\/blog\\\/author\\\/michaelwatersintentwise-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to customize an Amazon Marketing Cloud query","description":"Writing custom queries is the key to using Amazon Marketing Cloud effectively. Here's a behind-the-scenes look at how it works.","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.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/","og_locale":"en_US","og_type":"article","og_title":"How to customize an Amazon Marketing Cloud query","og_description":"Writing custom queries is the key to using Amazon Marketing Cloud effectively. Here's a behind-the-scenes look at how it works.","og_url":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/","og_site_name":"Intentwise Blog","article_published_time":"2024-02-26T15:43:15+00:00","article_modified_time":"2024-02-26T15:43:17+00:00","og_image":[{"width":1750,"height":1000,"url":"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Query.jpg","type":"image\/jpeg"}],"author":"Michael Waters","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Michael Waters","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/#article","isPartOf":{"@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/"},"author":{"name":"Michael Waters","@id":"https:\/\/www.intentwise.com\/blog\/#\/schema\/person\/b792a03444bf9fe1673eec5daf7fae99"},"headline":"How to customize an Amazon Marketing Cloud query","datePublished":"2024-02-26T15:43:15+00:00","dateModified":"2024-02-26T15:43:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/"},"wordCount":1588,"commentCount":0,"publisher":{"@id":"https:\/\/www.intentwise.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/#primaryimage"},"thumbnailUrl":"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Query.jpg","keywords":["Amazon Marketing Cloud","Mobile","Newsletter"],"articleSection":["Amazon Marketing Cloud"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/","url":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/","name":"How to customize an Amazon Marketing Cloud query","isPartOf":{"@id":"https:\/\/www.intentwise.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/#primaryimage"},"image":{"@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/#primaryimage"},"thumbnailUrl":"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Query.jpg","datePublished":"2024-02-26T15:43:15+00:00","dateModified":"2024-02-26T15:43:17+00:00","description":"Writing custom queries is the key to using Amazon Marketing Cloud effectively. Here's a behind-the-scenes look at how it works.","breadcrumb":{"@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/#primaryimage","url":"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Query.jpg","contentUrl":"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2024\/02\/Query.jpg","width":1750,"height":1000},{"@type":"BreadcrumbList","@id":"https:\/\/www.intentwise.com\/blog\/amazon-marketing-cloud\/how-to-customize-an-amc-query\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Amazon Marketing Cloud","item":"https:\/\/www.intentwise.com\/blog\/.\/amazon-marketing-cloud\/"},{"@type":"ListItem","position":2,"name":"How to customize an Amazon Marketing Cloud query"}]},{"@type":"WebSite","@id":"https:\/\/www.intentwise.com\/blog\/#website","url":"https:\/\/www.intentwise.com\/blog\/","name":"Intentwise Blog","description":"Amazon Analytics &amp; Advertising Software","publisher":{"@id":"https:\/\/www.intentwise.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.intentwise.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.intentwise.com\/blog\/#organization","name":"Intentwise","url":"https:\/\/www.intentwise.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.intentwise.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2021\/07\/favicon256.png","contentUrl":"https:\/\/www.intentwise.com\/blog\/wp-content\/uploads\/2021\/07\/favicon256.png","width":256,"height":256,"caption":"Intentwise"},"image":{"@id":"https:\/\/www.intentwise.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.intentwise.com\/blog\/#\/schema\/person\/b792a03444bf9fe1673eec5daf7fae99","name":"Michael Waters","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lh3.googleusercontent.com\/a\/ACg8ocK8NgD1p_6vDhk06IqnMKXDnxTfjSjK3-VxS9-MMBHnowhzlfI","url":"https:\/\/lh3.googleusercontent.com\/a\/ACg8ocK8NgD1p_6vDhk06IqnMKXDnxTfjSjK3-VxS9-MMBHnowhzlfI","contentUrl":"https:\/\/lh3.googleusercontent.com\/a\/ACg8ocK8NgD1p_6vDhk06IqnMKXDnxTfjSjK3-VxS9-MMBHnowhzlfI","caption":"Michael Waters"},"description":"Senior content writer, Intentwise","url":"https:\/\/www.intentwise.com\/blog\/author\/michaelwatersintentwise-com\/"}]}},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/posts\/28124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/comments?post=28124"}],"version-history":[{"count":0,"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/posts\/28124\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/media\/28132"}],"wp:attachment":[{"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/media?parent=28124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/categories?post=28124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intentwise.com\/blog\/wp-json\/wp\/v2\/tags?post=28124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}