PageSourceSearch

https://www.thriftizer.com/_next/static/chunks/pages/admin/ads-build-90080cd202579d35.js

js thriftizer.com collected 2026-10-03 21:34:24 UTC 31,766 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9437],{71581:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]])},72175:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("calendar-clock",[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]])},64998:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},85594:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},93623:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]])},17836:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]])},26330:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},80433:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("image-plus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]])},75283:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},56841:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]])},57235:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},36316:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},78051:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]])},71309:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]])},57307:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},77705:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},40116:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},6571:function(e,n,s){"use strict";s.d(n,{Z:function(){return a}});const a=(0,s(91373).Z)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},77561:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/ads-build",function(){return s(40576)}])},40576:function(e,n,s){"use strict";s.r(n),s.d(n,{__N_SSP:function(){return g},default:function(){return y}});var a=s(35666),c=s.n(a),i=s(85893),t=s(65988),l=s(67294);const r=(0,s(91373).Z)("circle-pause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]);var b=s(36316),o=s(6571),x=s(40116),d=s(17836),f=s(85594),p=s(36623);function u(e,n,s,a,c,i,t){try{var l=e[i](t),r=l.value}catch(b){return void s(b)}
1l.done?n(r):Promise.resolve(r).then(a,c)}function j(e){return function(){var n=this,s=arguments;return new Promise((function(a,c){var i=e.apply(n,s);function t(e){u(i,a,c,t,l,"next",e)}function l(e){u(i,a,c,t,l,"throw",e)}t(void 0)}))}}function h(e,n,s){return n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function m(e){for(var n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{},a=Object.keys(s);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(s).filter((function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})))),a.forEach((function(n){h(e,n,s[n])}))}return e}var g=!0;function y(e){var n=e.user,s=(0,l.useState)([]),a=s[0],u=s[1],g=(0,l.useState)(""),y=g[0],k=g[1],w=(0,l.useState)({goal:"",product:"",audience:"",landingUrl:"",locations:"",dailyBudget:"",usp:"",avoid:"",notes:""}),N=w[0],v=w[1],z=(0,l.useState)(null),Z=z[0],M=z[1],C=(0,l.useState)(null),A=C[0],P=C[1],_=(0,l.useState)(""),S=_[0],q=_[1],B=(0,l.useState)(null),H=B[0],O=B[1],D=(0,l.useCallback)(j(c().mark((function e(){var n,s,a;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/admin/clients");case 2:return n=e.sent,e.next=5,n.json();case 5:s=e.sent,a=(s.clients||[]).flatMap((function(e){return(e.accounts||[]).map((function(n){return m({},n,{clientName:e.name})}))})),u(a.filter((function(e){return!e.isManager&&!e.missing})).sort((function(e,n){return e.clientName.localeCompare(n.clientName)})));case 8:case"end":return e.stop()}}),e)}))),[]);(0,l.useEffect)((function(){D()}),[D]);var F=function(e){return function(n){return v(m({},N,h({},e,n.target.value)))}};function L(e,n){return T.apply(this,arguments)}function T(){return(T=j(c().mark((function e(n,s){var a,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return q(s),O(null),e.prev=2,e.next=5,fetch("/api/admin/ads-build",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});case 5:return a=e.sent,e.next=8,a.json();case 8:if(i=e.sent,a.ok){e.next=11;break}throw new Error(i.error||"HTTP ".concat(a.status));case 11:return e.abrupt("return",i);case 14:return e.prev=14,e.t0=e.catch(2),O({bad:!0,text:String(e.t0.message||e.t0)}),e.abrupt("return",null);case 18:return e.prev=18,q(""),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,14,18,21]])})))).apply(this,arguments)}function E(){return(E=j(c().mark((function e(n){var s;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),M(null),P(null),e.next=5,L({action:"draft",customerId:y,brief:N},"draft");case 5:(s=e.sent)&&(M(s),O(s.errors.length?{bad:!0,text:"The draft has ".concat(s.errors.length," problem(s) to fix before it can be built.")}:{bad:!1,text:"Drafted for ".concat(s.client,". Read it, then build.")}));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(){return(V=j(c().mark((function e(){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.confirm('Create "'.concat(Z.plan.campaignName,'" in ').concat(Z.account,"?\n\n
1It will be created PAUSED and cannot spend anything until you enable it in Google Ads."))){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,L({action:"create",customerId:y,plan:Z.plan},"build");case 4:(n=e.sent)&&(P(n.made),O({bad:!1,text:"Built in ".concat(n.account,". It is paused.")}));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var I=A?3:Z?2:1;return(0,i.jsxs)(p.Z,{title:"Build a campaign",subtitle:"Drafted from a brief, created paused",user:n,children:[H&&(0,i.jsx)("div",{className:"jsx-42424738b0c77f4b "+"msg ".concat(H.bad?"bad":"ok"),children:H.text}),(0,i.jsxs)("ol",{className:"jsx-42424738b0c77f4b steps",children:[(0,i.jsxs)("li",{className:"jsx-42424738b0c77f4b "+((I>=1?"on":"")||""),children:[(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:"1"})," Brief"]}),(0,i.jsxs)("li",{className:"jsx-42424738b0c77f4b "+((I>=2?"on":"")||""),children:[(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:"2"})," Review the plan"]}),(0,i.jsxs)("li",{className:"jsx-42424738b0c77f4b "+((I>=3?"on":"")||""),children:[(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:"3"})," Built, paused"]})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b banner",children:[(0,i.jsx)(r,{size:16}),(0,i.jsxs)("p",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:"Every campaign is created paused."})," Nothing built here can spend until you open the account and enable it. The plan is checked against Google's limits and dry-run against the API before anything is created."]})]}),(0,i.jsxs)("form",{onSubmit:function(e){return E.apply(this,arguments)},className:"jsx-42424738b0c77f4b card",children:[(0,i.jsx)("h2",{className:"jsx-42424738b0c77f4b",children:"The brief"}),(0,i.jsx)("p",{className:"jsx-42424738b0c77f4b sub",children:"The more specific this is, the less editing the plan needs. Vague briefs produce vague keywords."}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"acct",className:"jsx-42424738b0c77f4b",children:"Account"}),(0,i.jsxs)("select",{id:"acct",value:y,onChange:function(e){return k(e.target.value)},required:!0,className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("option",{value:"",className:"jsx-42424738b0c77f4b",children:"Choose an account\u2026"}),a.map((function(e){return(0,i.jsxs)("option",{value:e.customerId,className:"jsx-42424738b0c77f4b",children:[e.clientName," \u2014 ",e.name," (",e.currency,")"]},e.customerId)}))]})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b two",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"budget",className:"jsx-42424738b0c77f4b",children:"Daily budget"}),(0,i.jsx)("input",{id:"budget",type:"number",min:"0",value:N.dailyBudget,onChange:F("dailyBudget"),placeholder:"1200",className:"jsx-42424738b0c77f4b"})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"locs",className:"jsx-42424738b0c77f4b",children:"Where to show"}),(0,i.jsx)("input",{id:"locs",value:N.locations,onChange:F("locations"),placeholder:"India, United Arab Emirates",className:"jsx-42424738b0c77f4b"})]})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b two",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"goal",className:"jsx-42424738b0c77f4b",children:"Goal"}),(0,i.jsx)("input",{id:"goal",value:N.goal,onChange:F("goal"),placeholder:"Qualified leads for bulk enquiries",className:"jsx-42424738b0c77f4b"})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"url",className:"jsx-42424738b0c77f4b",children:"Landing page"}),(0,i.jsx)("input",{id:"url",value:N.landingUrl,onChange:F("landingUrl"),placeholder:"https://\u2026",className:"jsx-42424738b0c77f4b"})]})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"product",className:"jsx-42424738b0c77f4b",children:"What is being sold"}),(0,i.jsx)("textarea",{id:"product",rows:2,value:N.product,onChange:F("product"),placeholder:"Be specific \u2014 this drives every keyword and headline.",className:"jsx-42424738b0c77f4b"})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b two",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"aud",className:"jsx-42424738b0c77f4b",children:"Who it is for"}),(0,i.jsx)("textarea",{id:"aud",rows:2,value:N.audience,onChange:F("audience"),placeholder:"Procurement managers at mid-size hotels, not consumers",className:"jsx-42424738b0c77f4b"})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"usp",className:"jsx-42424738b0c77f4b",children:"Why choose them"}),(0,i.jsx)("textarea",{id:"usp",rows:2,value:N.usp,onChange:F("usp"),placeholder:"Only claims that are actually true \u2014 these become ad copy",className:"jsx-42424738b0c77f4b"})]})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b two",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"avoid",className:"jsx-42424738b0c77f4b",children:"Do not target"}),(0,i.jsx)("input",{id:"avoid",value:N.avoid,onChange:F("avoid"),placeholder:"jobs, free, DIY, wholesale",className:"jsx-42424738b0c77f4b"})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b f",children:[(0,i.jsx)("label",{htmlFor:"notes",className:"jsx-42424738b0c77f4b",children:"Anything else"}),(0,i.jsx)("input",{id:"notes",value:N.notes,onChange:F("notes"),placeholder:"Four ad groups maximum",className:"jsx-42424738b0c77f4b"})]})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b actions",children:[(0,i.jsxs)("button",{type:"submit",disabled:!y||!!S,className:"jsx-42424738b0c77f4b btn primary",children:["draft"===S?(0,i.jsx)(b.Z,{size:14,className:"spin"}):(0,i.jsx)(o.Z,{size:14})," Draft the campaign"]}),(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b hint",children:"Drafting costs nothing and can be repeated. Nothing is created yet."})]})]}),Z&&(0,i.jsxs)("section",{className:"jsx-42424738b0c77f4b card",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b planhead",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("h2",{className:"jsx-42424738b0c77f4b",children:Z.plan.campaignName}),(0,i.jsx)("p",{className:"jsx-42424738b0c77f4b sub",children:Z.plan.structure})]}),(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b tag",children:"draft"})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b facts",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:"Daily budget"}),(0,i.jsxs)("b",{className:"jsx-42424738b0c77f4b",children:[Z.plan.dailyBudget," ",Z.plan.currency]})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:"Bidding"}),(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:"MANUAL_CPC"===Z.plan.bid
1ding?"Manual CPC":"Max conversions"})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:"Ad groups"}),(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:Z.plan.adGroups.length})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:"Keywords"}),(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:Z.plan.adGroups.reduce((function(e,n){return e+n.keywords.length}),0)})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:"Negatives"}),(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:Z.plan.negativeKeywords.length})]})]}),(0,i.jsx)("p",{className:"jsx-42424738b0c77f4b rationale",children:Z.plan.rationale}),"MANUAL_CPC"===Z.plan.bidding&&(0,i.jsx)("p",{className:"jsx-42424738b0c77f4b note",children:"Manual CPC because this account has no recent conversions for a smart strategy to learn from. Move it to Maximize Conversions once it has conversion data."}),Z.errors.length>0&&(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b block bad",children:[(0,i.jsxs)("b",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)(x.Z,{size:13})," Fix before building"]}),(0,i.jsx)("ul",{className:"jsx-42424738b0c77f4b",children:Z.errors.map((function(e,n){return(0,i.jsx)("li",{className:"jsx-42424738b0c77f4b",children:e},n)}))})]}),Z.repairs.length>0&&(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b block warn",children:[(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:"Adjusted automatically"}),(0,i.jsx)("ul",{className:"jsx-42424738b0c77f4b",children:Z.repairs.map((function(e,n){return(0,i.jsx)("li",{className:"jsx-42424738b0c77f4b",children:e},n)}))})]}),Z.plan.adGroups.map((function(e){return(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b ag",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b agh",children:[(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:e.name}),(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:e.theme})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b agbody",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b pane",children:[(0,i.jsxs)("h4",{className:"jsx-42424738b0c77f4b",children:["Keywords \xb7 ",e.keywords.length]}),(0,i.jsx)("ul",{className:"jsx-42424738b0c77f4b kws",children:e.keywords.map((function(e,n){return(0,i.jsxs)("li",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:e.text}),(0,i.jsx)("i",{className:"jsx-42424738b0c77f4b "+(e.matchType.toLowerCase()||""),children:e.matchType.toLowerCase()})]},n)}))})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b pane",children:[(0,i.jsxs)("h4",{className:"jsx-42424738b0c77f4b",children:["Headlines \xb7 ",e.headlines.length]}),(0,i.jsx)("ul",{className:"jsx-42424738b0c77f4b copy",children:e.headlines.map((function(e,n){return(0,i.jsxs)("li",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:e}),(0,i.jsx)("i",{className:"jsx-42424738b0c77f4b",children:e.length})]},n)}))}),(0,i.jsxs)("h4",{className:"jsx-42424738b0c77f4b",children:["Descriptions \xb7 ",e.descriptions.length]}),(0,i.jsx)("ul",{className:"jsx-42424738b0c77f4b copy",children:e.descriptions.map((function(e,n){return(0,i.jsxs)("li",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:e}),(0,i.jsx)("i",{className:"jsx-42424738b0c77f4b",children:e.length})]},n)}))}),(0,i.jsx)("p",{className:"jsx-42424738b0c77f4b url",children:e.finalUrl})]})]})]},e.name)})),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b ag",children:[(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b agh",children:[(0,i.jsx)("b",{className:"jsx-42424738b0c77f4b",children:"Campaign negatives"}),(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b",children:"Applied to every ad group"})]}),(0,i.jsx)("div",{className:"jsx-42424738b0c77f4b chips",children:Z.plan.negativeKeywords.map((function(e,n){return(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b chip",children:e},n)}))})]}),(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b actions",children:[(0,i.jsxs)("button",{disabled:!!S||Z.errors.length>0,onClick:function(){return V.apply(this,arguments)},className:"jsx-42424738b0c77f4b btn primary",children:["build"===S?(0,i.jsx)(b.Z,{size:14,className:"spin"}):(0,i.jsx)(d.Z,{size:14})," Build it (paused)"]}),(0,i.jsx)("span",{className:"jsx-42424738b0c77f4b hint",children:"Creates the campaign, ad groups, keywords and ads. It will not serve until you enable it."})]})]}),A&&(0,i.jsxs)("section",{className:"jsx-42424738b0c77f4b card",children:[(0,i.jsxs)("h2",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)(f.Z,{size:16})," Built and paused"]}),(0,i.jsxs)("ul",{className:"jsx-42424738b0c77f4b done",children:[(0,i.jsxs)("li",{className:"jsx-42424738b0c77f4b",children:[A.adGroups.length," ad group(s), ",A.keywords," keyword(s), ",A.ads," responsive search ad(s)"]}),(0,i.jsxs)("li",{className:"jsx-42424738b0c77f4b",children:[A.negatives," campaign negative(s)"]}),(0,i.jsx)("li",{className:"jsx-42424738b0c77f4b",children:A.locations.length?"Targeting ".concat(A.locations.join(", ")):"No location targeting applied"})]}),A.warnings.length>0&&(0,i.jsxs)("div",{className:"jsx-42424738b0c77f4b block bad",children:[(0,i.jsxs)("b",{className:"jsx-42424738b0c77f4b",children:[(0,i.jsx)(x.Z,{size:13})," Before you enable it"]}),(0,i.jsx)("ul",{className:"jsx-42424738b0c77f4b",children:A.warnings.map((function(e,n){return(0,i.jsx)("li",{className:"jsx-42424738b0c77f4b",children:e},n)}))})]}),(0,i.jsx)("p",{className:"jsx-42424738b0c77f4b sub",children:"Review it in Google Ads and enable it there when you are happy with it."})]}),(0,i.jsx)(t.default,{id:"42424738b0c77f4b",children:".msg.jsx-42424738b0c77f4b {padding:10px 14px;\nborder-radius:10px;\nfont-size:13px;\nmargin-bottom:14px}\n.msg.ok.jsx-42424738b0c77f4b {background:#ecfdf3;\ncolor:#05603a;\nborder:1px solid #abefc6}\n.msg.bad.jsx-42424738b0c77f4b {background:#fef3f2;\ncolor:#b42318;\nborder:1px solid #fecdca}\n.steps.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\ngap:8px;\nlist-style:none;\nmargin:0 0 14px;\npadding:0;\nflex-wrap:wrap}\n.steps.jsx-42424738b0c77f4b li.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\n-webkit-align-items:center;\n-webkit-box-align:center;\n-ms-flex-align:center;\nalign-items:center;\ngap:7px;\nfont-size:12.5px;\ncolor:#98a2b3;\nbackground:#fff;\nborder:1px solid #e9edf5;\nborder-radius:999px;\npadding:6px 14px 6px 7px}\n.steps.jsx-42424738b0c77f4b li.jsx-42424738b0c77f4b b.jsx-42424738b0c77f4b {display:grid;\nplace-items:center;\nwidth:20px;\nheight:20px;\nborder-radius:50%;\nbackground:#f2f4f7;\ncolor:#98a2b3;\nfont-size:11px}\n.steps.jsx-42424738b0c77f4b li.on.jsx-42424738b0c77f4b {color:#14142b;\nborder-color:#dbe4fb}\n.steps.jsx-42424738b0c77f4b li.on.jsx-42424738b0c77f4b b.jsx-42424738b0c77f4b {background:#4f6ef7;\ncolor:#fff}\n.banner.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\ngap:10px;\n-webkit-align-items:flex-start;\n-webkit-box-align:flex-start;\n-ms-flex-align:flex-start;\nalign-items:flex-start;\nbackground:#f5f8ff;\nborder:1px solid #dbe4fb;\nborder-radius:12px;\npadding:12px 15px;\nmargin-bottom:16px;\ncolor:#3538cd}\n.banner.jsx-42424738b0c77f4b p.jsx-42424738b0c77f4b {margin:0;\nfont-size:12.5px;\nline-height:1.7;\ncolor:#4b5163;\nmax-width:92ch}\n.banner.jsx-42424738b0c77f4b b.jsx-42424738b0c77f4b {color:#14142b}\n.card.jsx-42424738b0c77f4b {background:#fff;\nborder:1px solid #e9edf5;\nborder-radius:14px;\npadding:20px 22px;\nmargin-bottom:16px}\nh2.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\n-webkit-align-items:center;\n-webkit-box-align:center;\n-ms-flex-align:center;\nalign-items:center;\ngap:8px;\nfont-size:15.5px;\ncolor:#14142b;\nmargin:0 0 4px}\nh4.jsx-42424738b0c77f4b {font-size:11px;\ncolor:#6b7086;\ntext-transform:uppercase;\nletter-spacing:.06em;\nmargin:0 0 7px}\nh4.jsx-42424738b0c77f4b +ul.jsx-42424738b0c77f4b +h4.jsx-42424738b0c77f4b {margin-top:14px}\n.sub.jsx-42424738b0c77f4b {font-size:12.5px;\ncolor:#6b7086;\nline-height:1.65;\nmargin:0 0 16px;\nmax-width:88ch}\n.f.jsx-42424738b0c77f4b {margin-bottom:14px}\n.f.jsx-42424738b0c77f4b label.jsx-42424738b0c77f4b {display:block;\nfont-size:12px;\ncolor:#4b5163;\nmargin-bottom:5px;
1\nfont-weight:500}\n.f.jsx-42424738b0c77f4b input.jsx-42424738b0c77f4b, .f.jsx-42424738b0c77f4b select.jsx-42424738b0c77f4b, .f.jsx-42424738b0c77f4b textarea.jsx-42424738b0c77f4b {display:block;\nwidth:100%;\nbox-sizing:border-box;\npadding:9px 12px;\nborder:1px solid #dfe4ee;\nborder-radius:9px;\nfont-size:13px;\nfont-family:inherit;\ncolor:#14142b;\nbackground:#fff}\n.f.jsx-42424738b0c77f4b textarea.jsx-42424738b0c77f4b {resize:vertical;\nline-height:1.6}\n.f.jsx-42424738b0c77f4b input.jsx-42424738b0c77f4b:focus, .f.jsx-42424738b0c77f4b select.jsx-42424738b0c77f4b:focus, .f.jsx-42424738b0c77f4b textarea.jsx-42424738b0c77f4b:focus {outline:none;\nborder-color:#4f6ef7;\nbox-shadow:0 0 0 3px rgba(79, 110, 247, .12)}\n.f.jsx-42424738b0c77f4b input.jsx-42424738b0c77f4b::placeholder, .f.jsx-42424738b0c77f4b textarea.jsx-42424738b0c77f4b::placeholder {color:#b0b7c9}\n.two.jsx-42424738b0c77f4b {display:grid;\ngrid-template-columns:repeat(auto-fit, minmax(min(100%, 240px), 1fr));\ngap:0 16px}\n.actions.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\ngap:12px;\n-webkit-align-items:center;\n-webkit-box-align:center;\n-ms-flex-align:center;\nalign-items:center;\nflex-wrap:wrap;\nmargin-top:6px}\n.hint.jsx-42424738b0c77f4b {font-size:12px;\ncolor:#98a2b3}\n.btn.jsx-42424738b0c77f4b {display:-webkit-inline-box;\ndisplay:-webkit-inline-flex;\ndisplay:-ms-inline-flexbox;\ndisplay:inline-flex;\n-webkit-align-items:center;\n-webkit-box-align:center;\n-ms-flex-align:center;\nalign-items:center;\ngap:7px;\npadding:10px 16px;\nborder-radius:9px;\nborder:1px solid #dfe4ee;\nbackground:#fff;\ncolor:#14142b;\nfont-size:13px;\ncursor:pointer}\n.btn.primary.jsx-42424738b0c77f4b {background:#14142b;\ncolor:#fff;\nborder-color:#14142b}\n.btn.jsx-42424738b0c77f4b:disabled {opacity:.45;\ncursor:default}\n.planhead.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\ngap:14px;\n-webkit-align-items:flex-start;\n-webkit-box-align:flex-start;\n-ms-flex-align:flex-start;\nalign-items:flex-start;\n-webkit-box-pack:justify;\n-webkit-justify-content:space-between;\njustify-content:space-between}\n.tag.jsx-42424738b0c77f4b {font-size:11px;\ntext-transform:uppercase;\nletter-spacing:.06em;\nbackground:#fffaeb;\ncolor:#b54708;\nborder-radius:999px;\npadding:4px 10px;\n-webkit-flex:none;\n-ms-flex:none;\nflex:none}\n.facts.jsx-42424738b0c77f4b {display:grid;\ngrid-template-columns:repeat(auto-fit, minmax(min(100%, 120px), 1fr));\ngap:10px;\nmargin:4px 0 14px}\n.facts.jsx-42424738b0c77f4b div.jsx-42424738b0c77f4b {background:#fbfcfe;\nborder:1px solid #e9edf5;\nborder-radius:10px;\npadding:10px 12px;\nmin-width:0}\n.facts.jsx-42424738b0c77f4b span.jsx-42424738b0c77f4b {display:block;\nfont-size:11px;\ncolor:#6b7086}\n.facts.jsx-42424738b0c77f4b b.jsx-42424738b0c77f4b {display:block;\nfont-size:15px;\ncolor:#14142b;\nmargin-top:3px}\n.rationale.jsx-42424738b0c77f4b {font-size:13px;\ncolor:#4b5163;\nline-height:1.75;\nmax-width:92ch;\nmargin:0}\n.note.jsx-42424738b0c77f4b {font-size:12.5px;\ncolor:#b54708;\nbackground:#fffaeb;\nborder:1px solid #fedf89;\nborder-radius:9px;\npadding:10px 12px;\nmargin:14px 0 0;\nline-height:1.65}\n.block.jsx-42424738b0c77f4b {border-radius:10px;\npadding:11px 14px;\nmargin-top:14px}\n.block.bad.jsx-42424738b0c77f4b {background:#fef3f2;\nborder:1px solid #fecdca}\n.block.warn.jsx-42424738b0c77f4b {background:#fffaeb;\nborder:1px solid #fedf89}\n.block.jsx-42424738b0c77f4b b.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\n-webkit-align-items:center;\n-webkit-box-align:center;\n-ms-flex-align:center;\nalign-items:center;\ngap:6px;\nfont-size:12.5px;\ncolor:#14142b}\n.block.jsx-42424738b0c77f4b ul.jsx-42424738b0c77f4b {margin:7px 0 0;\npadding-left:18px}\n.block.jsx-42424738b0c77f4b li.jsx-42424738b0c77f4b {font-size:12.5px;\ncolor:#4b5163;\nline-height:1.7}\n.ag.jsx-42424738b0c77f4b {border:1px solid #e9edf5;\nborder-radius:12px;\nmargin-top:14px;\noverflow:hidden}\n.agh.jsx-42424738b0c77f4b {background:#fbfcfe;\nborder-bottom:1px solid #e9edf5;\npadding:11px 15px;\ndisplay:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\ngap:10px;\n-webkit-align-items:baseline;\n-webkit-box-align:baseline;\n-ms-flex-align:baseline;\nalign-items:baseline;\nflex-wrap:wrap}\n.agh.jsx-42424738b0c77f4b b.jsx-42424738b0c77f4b {font-size:13.5px;\ncolor:#14142b}\n.agh.jsx-42424738b0c77f4b span.jsx-42424738b0c77f4b {font-size:12px;\ncolor:#6b7086}\n.agbody.jsx-42424738b0c77f4b {display:grid;\ngrid-template-columns:repeat(auto-fit, minmax(min(100%, 300px), 1fr));\ngap:18px;\npadding:15px}\n.pane.jsx-42424738b0c77f4b {min-width:0}\n.kws.jsx-42424738b0c77f4b, .copy.jsx-42424738b0c77f4b {list-style:none;\nmargin:0;\npadding:0}\n.kws.jsx-42424738b0c77f4b li.jsx-42424738b0c77f4b, .copy.jsx-42424738b0c77f4b li.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\ngap:10px;\n-webkit-box-pack:justify;
1\n-webkit-justify-content:space-between;\njustify-content:space-between;\n-webkit-align-items:baseline;\n-webkit-box-align:baseline;\n-ms-flex-align:baseline;\nalign-items:baseline;\nfont-size:12.5px;\ncolor:#14142b;\npadding:5px 0;\nborder-bottom:1px solid #f4f6fa}\n.kws.jsx-42424738b0c77f4b li.jsx-42424738b0c77f4b span.jsx-42424738b0c77f4b, .copy.jsx-42424738b0c77f4b li.jsx-42424738b0c77f4b span.jsx-42424738b0c77f4b {min-width:0;\noverflow-wrap:anywhere}\n.kws.jsx-42424738b0c77f4b i.jsx-42424738b0c77f4b, .copy.jsx-42424738b0c77f4b i.jsx-42424738b0c77f4b {font-style:normal;\nfont-size:10.5px;\n-webkit-flex:none;\n-ms-flex:none;\nflex:none;\ncolor:#98a2b3}\n.kws.jsx-42424738b0c77f4b i.exact.jsx-42424738b0c77f4b {color:#3538cd}\n.kws.jsx-42424738b0c77f4b i.broad.jsx-42424738b0c77f4b {color:#b54708}\n.url.jsx-42424738b0c77f4b {font-size:11.5px;\ncolor:#4f6ef7;\nmargin:12px 0 0;\noverflow-wrap:anywhere}\n.chips.jsx-42424738b0c77f4b {display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\ngap:6px;\nflex-wrap:wrap;\npadding:15px}\n.chip.jsx-42424738b0c77f4b {font-size:11.5px;\nborder-radius:999px;\npadding:4px 10px;\nbackground:#fef3f2;\nborder:1px solid #fecdca;\ncolor:#b42318}\n.done.jsx-42424738b0c77f4b {margin:6px 0 0;\npadding-left:18px}\n.done.jsx-42424738b0c77f4b li.jsx-42424738b0c77f4b {font-size:13px;\ncolor:#4b5163;\nline-height:1.85}\n.spin.jsx-42424738b0c77f4b {-webkit-animation:sp .9s linear infinite;\nanimation:sp .9s linear infinite}\n@keyframes sp {to {transform:rotate(360deg)}}"})]})}}},function(e){e.O(0,[2477,6623,9774,2888,179],(function(){return n=77561,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.