PageSourceSearch

https://www.pxl.to/_next/static/chunks/pages/tools/google-ad-copy-generator-bb04332a305b1be2.js

js pxl.to collected 2026-10-01 13:05:09 UTC 15,187 bytes, 3 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[581],{12004:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/google-ad-copy-generator",function(){return s(47439)}])},41300:function(e,t,s){"use strict";s.d(t,{V:function(){return a}});var r=s(85893),o=s(86010);function a(e){let{className:t,heading:s,features:a}=e;return(0,r.jsxs)("section",{className:(0,o.Z)("relative z-0 m-auto h-full w-full items-center overflow-hidden rounded-md border bg-slate-50 text-left p-8",t),children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-slate-800 mb-10 text-center",children:s}),(0,r.jsx)("div",{className:"flex flex-col md:flex-row justify-between gap-8",children:a.map((e,t)=>(0,r.jsxs)("div",{className:"flex flex-col items-start",children:[(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("span",{className:"mr-2",children:e.icon}),(0,r.jsx)("h3",{className:"text-xl font-semibold text-slate-800",children:e.heading})]}),(0,r.jsx)("p",{className:"text-slate-600 text-lg mt-2",children:e.text})]},t))})]})}},7753:function(e,t,s){"use strict";s.d(t,{_:function(){return o}});var r=s(85893);function o(e){return(0,r.jsx)("div",{className:"w-full",children:(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,r.jsx)("h1",{className:"w-full text-4xl font-extrabold text-slate-800 md:text-5xl",children:e.heading}),(0,r.jsx)("h2",{className:"mt-2 w-full text-2xl font-extralight text-slate-600 mmd:text-2xl",children:e.subheading}),(0,r.jsx)("div",{className:"mt-6 w-full font-extralight text-slate-600",children:(0,r.jsx)(()=>e.action,{})})]})})}},26067:function(e,t,s){"use strict";s.d(t,{c:function(){return l}});var r=s(85893),o=s(86010),a=s(67294);function l(e){let t=(0,a.useId)();return(0,r.jsxs)("svg",{className:(0,o.Z)("absolute top-0 right-0 -z-10 h-[100rem] w-[50rem] [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]",e.className),"aria-hidden":"true",children:[(0,r.jsx)("defs",{children:(0,r.jsx)("pattern",{id:t,width:e.width??200,height:e.height??200,x:"50%",y:-1,patternUnits:"userSpaceOnUse",children:(0,r.jsx)("path",{d:e.path,fill:"none"})})}),(0,r.jsx)("rect",{width:"100%",height:"100%",strokeWidth:0,fill:`url(#${t})`})]})}},47439:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return x}});var r=s(85893),o=s(67294);let a=[{code:"en",name:"\uD83C\uDDFA\uD83C\uDDF8 English"},{code:"es",name:"\uD83C\uDDEA\uD83C\uDDF8 Spanish"},{code:"fr",name:"\uD83C\uDDEB\uD83C\uDDF7 French"},{code:"de",name:"\uD83C\uDDE9\uD83C\uDDEA German"},{code:"it",name:"\uD83C\uDDEE\uD83C\uDDF9 Italian"}];var l=()=>{let[e,t]=(0,o.useState)(""),[s,l]=(0,o.useState)("Formal"),[n,i]=(0,o.useState)(""),[c,d]=(0,o.useState)("en"),[u,m]=(0,o.useState)(""),[h,g]=(0,o.useState)(!1),[x,f]=(0,o.useState)({}),[p,b]=(0,o.useState)(""),y=(0,o.useRef)(null),w=(0,o.useRef)(null),[j,v]=(0,o.useState)([]),N=()=>{let t={};return e||(t.productInfo="Product info is required"),s||(t.tone="Tone is required"),n||(t.keywords="Keywords are required"),t},C=()=>{let e=Date.now(),t=j.filter(t=>e-t<18e4);return(v(t),t.length>=10)?(b("You have exceeded the limit of 10 requests in 3 minutes. Please try again later."),!0):(v([...t,e]),!1)},G=async()=>{if(C())return;let t=N();if(Object.keys(t).length>0){f(t);return}g(!0),f({}),b("");let r=n.split("\n").filter(Boolean).join(", ");try{let t=await fetch("/api/generateGoogleAdCopy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({productInfo:e,tone:s,keywords:r,language:c})}),o=await t.json();g(!1),t.ok?(m(o.adCopy),setTimeout(()=>{w.current?.scrollIntoView({behavior:"smooth"})},100)):alert(o.error)}catch(e){console.error("Failed to generate ad copy:",e),g(!1)}};return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-md font-medium text-gray-700 mb-1",children:"Describe the page you want to advertise"}),(0,r.jsx)("input",{ref:y,type:"text",placeholder:"An online shop for hamsters targeting English customers",value:e,onChange:e=>t(e.target.value),className:"block w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"}),x.productInfo&&(0,r.jsx)("p",{className:"m-1 text-red-500 text-sm",children:x.productInfo})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-md font-medium text-gray-700",children:"Tone"}),(0,r.jsxs)("select",{value:s,onChange:e=>l(e.target.value),className:"block w-full mt-1 px-3 py-2 border border-gray-300 bg-white rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",children:[(0,r.jsx)("option",{value:"Formal",children:"Formal"}),(0,r.jsx)("option",{value:"Friendly",children:"Friendly"}),(0,r.jsx)("option",{value:"Casual",children:"Casual"}),(0,r.jsx)("option",{value:"Professional",children:"Professional"}),(0,r.jsx)("option",{value:"Confident",children:"Confident"})]}),x.tone&&(0,r.jsx)("p",{className:"m-1 text-red-500 text-sm",children:x.tone})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-md font-medium text-gray-700",children:"Language"}),(0,r.jsx)("select",{value:c,onChange:e=>d(e.target.value),className:"block w-full mt-1 px-3 py-2 border border-gray-300 bg-white rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500",children:a.map(e=>(0,r.jsx)("option",{value:e.code,children:e.name},e.code))})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:"block text-md font-medium text-gray-700",children:"Keywords"}),(0,r.jsx)("textarea",{placeholder:"Enter keywords (one phrase per line)",value:n,onChange:e=>i(e.target.value),rows:"5",className:"block w-full px-4 py-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"}),x.keywords&&(0,r.jsx)("p",{className:"m-1 text-red-500 text-sm",children:x.keywords})]}),p&&(0,r.jsx)("div",{className:"text-red-500 text-sm mt-2",children:p}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:flex-row-reverse sm:justify-between items-center mt-6",children:[(0,r.jsx)("button",{onClick:()=>{G()},disabled:h,className:"w-full sm:w-auto inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-md font-medium rounded-md text-white bg-blue-500 hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-600 mb-4 sm:mb-0",children:h?"Generating...":"Generate Google Ad Copy"}),(0,r.jsx)("a",{href:"/?ref=google-ad-copy-generator",target:"_blank",className:"w-full sm:w-auto text-blue-500 hover:text-blue-600 text-md mb-4 sm:mb-0 sm:order-1",children:"← Get short links by Pxl.to"})]}),u&&(0,r.jsxs)("div",{ref:w,className:"mt-6",children:[(0,r.jsx)("h2",{className:"text-2xl font-semibold text-gray-800",children:"Congratulations \uD83C\uDF89 Here is your AI-generated Google Ad copy:"}),(0,r.jsx)("pre",{className:"bg-white p-4 rounded-md mt-2 whitespace-pre-wrap break-words text-gray-900",children:u}),(0,r.jsxs)("div",{className:"mt-6 flex flex-col sm:flex-row sm:flex-row-reverse sm:justify-between items-center",children:[(0,r.jsx)("button",{onClick:()=>
1{let e=`**Generated with the Pxl Google Ad Copy Generator (https://www.pxl.to/tools/google-ad-copy-generator)**
2
3${u}`,t=new Blob([e],{type:"text/plain"}),s=document.createElement("a");s.href=URL.createObjectURL(t),s.download="Pxl-GoogleAdCopy.txt",s.click()},className:"w-full sm:w-auto bg-white inline-flex justify-center py-2 px-4 border border-blue-500 text-blue-500 shadow-sm text-sm font-medium rounded-md bg-transparent hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 mb-4 sm:mb-0",children:"Download as text file"}),(0,r.jsx)("button",{onClick:()=>{t(""),l("Formal"),i(""),m(""),y.current?.focus()},className:"w-full sm:w-auto text-blue-500 hover:text-blue-600 text-md focus:outline-none",children:"Start again"})]})]})]})},n=s(7753),i=s(26067),c=s(47582),d=s(95649),u=s(41300),m=s(8193);let h=[{icon:(0,r.jsx)(m.AiOutlineLink,{className:"text-blue-600 text-lg"}),heading:"Enhance Ad Relevance with Keyword-Rich Copy",text:"Create Google Ads that are optimized with targeted keywords to improve relevance and ad quality. Generate headlines and descriptions that align with your SEO strategy, boosting ad placement and lowering costs."},{icon:(0,r.jsx)(m.AiOutlineLineChart,{className:"text-blue-600 text-lg"}),heading:"Generate Compelling Ads for A/B Testing",text:"Easily create multiple ad variants for A/B testing to see which copy drives more clicks and conversions. Generate and test various ad headlines and descriptions to optimize campaign performance efficiently."},{icon:(0,r.jsx)(m.AiOutlineAim,{className:"text-blue-600 text-lg"}),heading:"Optimize Ads for Local SEO Campaigns",text:"Create location-specific Google Ads with tailored headlines and descriptions for different regions. Improve ad visibility for local searches, making it easy to target your audience with localized ad copy."}],g=[{icon:(0,r.jsx)(m.AiOutlineShoppingCart,{className:"text-blue-600 text-lg"}),heading:"eCommerce Businesses",text:"eCommerce stores can use the Google Ad Copy Generator to craft high-converting ad copy for product listings, flash sales, or new arrivals. With keyword-rich headlines and optimized descriptions, e-commerce businesses can quickly generate ad variations to highlight product features and drive more traffic to their stores."},{icon:(0,r.jsx)(m.AiOutlineTeam,{className:"text-blue-600 text-lg"}),heading:"Marketing Agencies",text:"Marketing agencies managing multiple clients can streamline the ad creation process with the Google Ad Copy Generator. By generating tailored ad copy for different industries, products, or campaigns, agencies can save time while ensuring that each client gets high-quality, relevant ads to boost their advertising results."},{icon:(0,r.jsx)(m.AiOutlineHome,{className:"text-blue-600 text-lg"}),heading:"Local Service Providers",text:"Local service providers such as plumbers, electricians, and cleaning companies can benefit from localized Google Ads copy that highlights their services and location. By using the generator to create ads tailored to their target area, these businesses can attract more local customers and improve their online presence."}];function x(){return(0,r.jsx)(c.Z,{contentType:"tool",title:"Free Google Ad Copy Generator",description:"Generate high-converting AI-generated Google Ads in seconds with the free Google Ad Copy Generator by Pxl.to. Create custom headlines and descriptions optimized for your keywords. Download your ad copy instantly and enhance your campaigns with ease",image:"/images/google-ad-copy-gen-og.png",tags:["Google Ad Copy Generator","Free Ad Copy Generator","Google Ads Tool","Google Ads Headline Generator","Google Ads Description Generator","AI Google Ads Generator","Google Ads Copy","AI-generated Google Ads","Google Ad Campaigns","Generate Google Ads Copy","Optimize Google Ads Copy"],children:(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(i.c,{className:"stroke-blue-200",uid:"hero",path:"M.5 200V.5H200"}),(0,r.jsx)(d.W,{className:"max-w-4xl pt-10 text-center sm:pt-12 2xl:pt-20",children:(0,r.jsx)(n._,{heading:(0,r.jsxs)(r.Fragment,{children:["Free ",(0,r.jsx)("img",{src:"/images/logos/google-ads.svg",alt:"Google Ad logo",className:"inline-block align-baseline h-8"})," ",(0,r.jsx)("span",{className:"text-blue-400",children:"Google Ad"})," Copy Generator"]}),subheading:"Create high-quality Google Ad text variations that convert customers with the free Google Ad Copy Generator – powered by AI."})}),(0,r.jsxs)(d.W,{className:"max-w-4xl mx-auto pb-8 px-4 sm:px-6 lg:px-8",children:[(0,r.jsx)("section",{className:"relative z-0 m-auto h-full w-full items-center overflow-hidden rounded-md border bg-blue-50 text-left p-5 mb-6",children:(0,r.jsx)(l,{})}),(0,r.jsxs)("section",{className:"relative z-0 m-auto h-full w-full items-center overflow-hidden rounded-md border bg-white text-left p-5 mb-6 text-lg",children:[(0,r.jsx)("h2",{className:"font-semibold text-2xl mb-2",children:"Instructions"}),(0,r.jsx)("p",{className:"mb-1",children:"Describe the site you want to advertise, choose the tone, language and add the keywords you are bidding for. Then click on 'Generate Google Ad Copy'. You will get:"}),(0,r.jsxs)("ul",{className:"mb-2 list-disc ml-4",children:[(0,r.jsx)("li",{children:"5 custom headlines (max. 30 characters)"}),(0,r.jsx)("li",{children:"4 custom descriptions (max. 90 characters)"})]}),(0,r.jsx)("p",{className:"mb-3",children:"Download each generated set of ad copy as text file — all for free."}),(0,r.jsx)("p",{children:(0,r.jsxs)("i",{children:["PS: Use Pxl to shorten ",(0,r.jsx)("a",{href:"../google-url-shortener",className:"text-blue-500",children:"Google Ad URLs for free"}),". Track every click and add retargeting pixels to every link you share with the leading privacy-friendly url shortener."]})})]})]}),(0,r.jsx)(d.W,{className:"mb-14",children:(0,r.jsx)(u.V,{heading:(0,r.jsxs)(r.Fragment,{children:["What can you do with the ",(0,r.jsx)("img",{src:"/images/logos/google-ads.svg",alt:"Google Ads logo",className:"inline-block align-baseline h-7 ml-1"})," Google Ad Copy Generator?"]}),features:h})}),(0,r.jsx)(d.W,{className:"mb-14",children:(0,r.jsx)(u.V,{heading:(0,r.jsxs)(r.Fragment,{children:["Who is the ",(0,r.jsx)("img",{src:"/images/logos/google-ads.svg",alt:"Google Ads logo",className:"inline-block align-baseline h-7 ml-1"})," Google Ad Copy Generator for?"]}),features:g})})]})})}},88357:function(e,t,s){"use strict";s.d(t,{w_:function(){return i},Pd:function(){return a}});var r=s(67294),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=r.createContext&&r.createContext(o),l=function(){return(l=Object.assign||function(e){for(var t,s=1,r=arguments.length;s<r;s++)for(var o in t=arguments[s])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},n=function(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(s[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(s[r[o]]=e[r[o]]);return s};function i(e){return function(t){return r.createElement(c,l({attr:l({},e.attr)},t),function e(t){return t&&t.map(function(t,s){return r.createElement(t.tag,l({key:s},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var s,o=e.attr,a=e.size,i=e.title,c=n(e,["attr","size","title"]),d=a||t.size||"1em";return t.className&&(s=t.className),e.className&&(s=(s?s+" ":"")+e.className),r.createElement("svg",l({stroke:"currentColor",fill:"
3currentColor",strokeWidth:"0"},t.attr,o,c,{className:s,style:l(l({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),i&&r.createElement("title",null,i),e.children)};return void 0!==a?r.createElement(a.Consumer,null,function(e){return t(e)}):t(o)}}},function(e){e.O(0,[617,853,582,774,888,179],function(){return e(e.s=12004)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.