{"id":185,"date":"2023-07-03T21:16:00","date_gmt":"2023-07-03T19:16:00","guid":{"rendered":"https:\/\/nilsrooijmans.com\/daily\/?p=185"},"modified":"2023-12-11T04:59:31","modified_gmt":"2023-12-11T03:59:31","slug":"google-ads-scripts-does-not-support-ga4-heres-a-workaround","status":"publish","type":"post","link":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround","title":{"rendered":"Google Ads Scripts does not support GA4. Here&#8217;s a workaround."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Two days ago, July 1st, good old Universal Analytics has stopped aggregating data. We all need to move to the new GA4 solution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is bad news for us scripters: <strong>currently, Google Ads Scripts does not support GA4.<\/strong> Under &#8220;Advanced APIs&#8221; there is only one Analytics and that is the old UA version. GA4 is not (yet) supported.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Here&#8217;s the workaround:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Use an App script within a Google Sheet that connects to the new\u00a0Google Analytics Data API, and from there, fetch the data from GA4 into the Google Sheet.<br>2. Next, use a Google Ads Script that reads the GA4 data from the Google Sheet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I am considering hosting a short webinar on this topic if there is enough interest. Let me know if you&#8217;re interested.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8211; Nils<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two days ago, July 1st, good old Universal Analytics has stopped aggregating data. We all need to move to the new GA4 solution. This is bad news for us scripters: currently, Google Ads Scripts does not support GA4. Under &#8220;Advanced APIs&#8221; there is only one Analytics and that is the old UA version. GA4 is &hellip; <a href=\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Google Ads Scripts does not support GA4. Here&#8217;s a workaround.&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-google-ads"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Google Ads Scripts does not support GA4. Here&#039;s a workaround. - Nils Rooijmans<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Ads Scripts does not support GA4. Here&#039;s a workaround. - Nils Rooijmans\" \/>\n<meta property=\"og:description\" content=\"Two days ago, July 1st, good old Universal Analytics has stopped aggregating data. We all need to move to the new GA4 solution. This is bad news for us scripters: currently, Google Ads Scripts does not support GA4. Under &#8220;Advanced APIs&#8221; there is only one Analytics and that is the old UA version. GA4 is &hellip; Continue reading &quot;Google Ads Scripts does not support GA4. Here&#8217;s a workaround.&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround\" \/>\n<meta property=\"og:site_name\" content=\"Nils Rooijmans\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-03T19:16:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-11T03:59:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nilsrooijmans.com\/daily\/wp-content\/uploads\/2024\/05\/NilsRooijmans_GreenBG_SQUARE_200x186.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"186\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nils Rooijmans\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nils Rooijmans\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround#article\",\"isPartOf\":{\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround\"},\"author\":{\"name\":\"Nils Rooijmans\",\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/645ba0bda90c1467f9d23d332d1f3aa0\"},\"headline\":\"Google Ads Scripts does not support GA4. Here&#8217;s a workaround.\",\"datePublished\":\"2023-07-03T19:16:00+00:00\",\"dateModified\":\"2023-12-11T03:59:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround\"},\"wordCount\":141,\"publisher\":{\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/645ba0bda90c1467f9d23d332d1f3aa0\"},\"articleSection\":[\"Google Ads\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround\",\"url\":\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround\",\"name\":\"Google Ads Scripts does not support GA4. Here's a workaround. - Nils Rooijmans\",\"isPartOf\":{\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/#website\"},\"datePublished\":\"2023-07-03T19:16:00+00:00\",\"dateModified\":\"2023-12-11T03:59:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/nilsrooijmans.com\/daily\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Ads Scripts does not support GA4. Here&#8217;s a workaround.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/#website\",\"url\":\"https:\/\/nilsrooijmans.com\/daily\/\",\"name\":\"Nils Rooijmans Daily Newsletter - Google Ads\",\"description\":\"Daily emails to boost your Google Ads Performance\",\"publisher\":{\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/645ba0bda90c1467f9d23d332d1f3aa0\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/nilsrooijmans.com\/daily\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/645ba0bda90c1467f9d23d332d1f3aa0\",\"name\":\"Nils Rooijmans\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/nilsrooijmans.com\/daily\/wp-content\/uploads\/2024\/05\/NilsRooijmans_Green_Background_300x300.jpg\",\"contentUrl\":\"https:\/\/nilsrooijmans.com\/daily\/wp-content\/uploads\/2024\/05\/NilsRooijmans_Green_Background_300x300.jpg\",\"width\":300,\"height\":300,\"caption\":\"Nils Rooijmans\"},\"logo\":{\"@id\":\"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/image\/\"},\"description\":\"Google Ads Performance Architect with a passion for PPC Automation &amp; AI, in particular via Google Ads Scripts.\",\"sameAs\":[\"https:\/\/nilsrooijmans.com\/\",\"https:\/\/www.linkedin.com\/in\/nilsrooijmans\/\"],\"url\":\"https:\/\/nilsrooijmans.com\/daily\/author\/nils\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Ads Scripts does not support GA4. Here's a workaround. - Nils Rooijmans","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:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround","og_locale":"en_US","og_type":"article","og_title":"Google Ads Scripts does not support GA4. Here's a workaround. - Nils Rooijmans","og_description":"Two days ago, July 1st, good old Universal Analytics has stopped aggregating data. We all need to move to the new GA4 solution. This is bad news for us scripters: currently, Google Ads Scripts does not support GA4. Under &#8220;Advanced APIs&#8221; there is only one Analytics and that is the old UA version. GA4 is &hellip; Continue reading \"Google Ads Scripts does not support GA4. Here&#8217;s a workaround.\"","og_url":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround","og_site_name":"Nils Rooijmans","article_published_time":"2023-07-03T19:16:00+00:00","article_modified_time":"2023-12-11T03:59:31+00:00","og_image":[{"width":200,"height":186,"url":"https:\/\/nilsrooijmans.com\/daily\/wp-content\/uploads\/2024\/05\/NilsRooijmans_GreenBG_SQUARE_200x186.jpg","type":"image\/jpeg"}],"author":"Nils Rooijmans","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nils Rooijmans","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround#article","isPartOf":{"@id":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround"},"author":{"name":"Nils Rooijmans","@id":"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/645ba0bda90c1467f9d23d332d1f3aa0"},"headline":"Google Ads Scripts does not support GA4. Here&#8217;s a workaround.","datePublished":"2023-07-03T19:16:00+00:00","dateModified":"2023-12-11T03:59:31+00:00","mainEntityOfPage":{"@id":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround"},"wordCount":141,"publisher":{"@id":"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/645ba0bda90c1467f9d23d332d1f3aa0"},"articleSection":["Google Ads"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround","url":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround","name":"Google Ads Scripts does not support GA4. Here's a workaround. - Nils Rooijmans","isPartOf":{"@id":"https:\/\/nilsrooijmans.com\/daily\/#website"},"datePublished":"2023-07-03T19:16:00+00:00","dateModified":"2023-12-11T03:59:31+00:00","breadcrumb":{"@id":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nilsrooijmans.com\/daily\/google-ads-scripts-does-not-support-ga4-heres-a-workaround#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nilsrooijmans.com\/daily"},{"@type":"ListItem","position":2,"name":"Google Ads Scripts does not support GA4. Here&#8217;s a workaround."}]},{"@type":"WebSite","@id":"https:\/\/nilsrooijmans.com\/daily\/#website","url":"https:\/\/nilsrooijmans.com\/daily\/","name":"Nils Rooijmans Daily Newsletter - Google Ads","description":"Daily emails to boost your Google Ads Performance","publisher":{"@id":"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/645ba0bda90c1467f9d23d332d1f3aa0"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nilsrooijmans.com\/daily\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/645ba0bda90c1467f9d23d332d1f3aa0","name":"Nils Rooijmans","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/image\/","url":"https:\/\/nilsrooijmans.com\/daily\/wp-content\/uploads\/2024\/05\/NilsRooijmans_Green_Background_300x300.jpg","contentUrl":"https:\/\/nilsrooijmans.com\/daily\/wp-content\/uploads\/2024\/05\/NilsRooijmans_Green_Background_300x300.jpg","width":300,"height":300,"caption":"Nils Rooijmans"},"logo":{"@id":"https:\/\/nilsrooijmans.com\/daily\/#\/schema\/person\/image\/"},"description":"Google Ads Performance Architect with a passion for PPC Automation &amp; AI, in particular via Google Ads Scripts.","sameAs":["https:\/\/nilsrooijmans.com\/","https:\/\/www.linkedin.com\/in\/nilsrooijmans\/"],"url":"https:\/\/nilsrooijmans.com\/daily\/author\/nils"}]}},"_links":{"self":[{"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":1,"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":186,"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/posts\/185\/revisions\/186"}],"wp:attachment":[{"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/categories?post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nilsrooijmans.com\/daily\/wp-json\/wp\/v2\/tags?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}