diff --git a/components/GoogleAdsGenerator.tsx b/components/GoogleAdsGenerator.tsx index 4f165bf..ed2ea49 100644 --- a/components/GoogleAdsGenerator.tsx +++ b/components/GoogleAdsGenerator.tsx @@ -43,6 +43,7 @@ export default function GoogleAdsGenerator() { const [budgetMax, setBudgetMax] = useState("2000"); const [duration, setDuration] = useState("30 days"); const [industry, setIndustry] = useState(""); + const [specialInstructions, setSpecialInstructions] = useState(""); const [copied, setCopied] = useState(false); const [expandedSections, setExpandedSections] = useState(["keywords"]); @@ -193,7 +194,9 @@ export default function GoogleAdsGenerator() { budgetRange: { min: parseInt(budgetMin), max: parseInt(budgetMax), currency: "USD" }, campaignDuration: duration, industry, - language: "English" + competitors: [], + language: language === "ru" ? "Russian" : language === "he" ? "Hebrew" : "English", + specialInstructions: specialInstructions, }, selectedProvider, selectedModel); console.log("[GoogleAdsGenerator] Generation result:", result); @@ -282,8 +285,9 @@ export default function GoogleAdsGenerator() { const result = await modelAdapter.generateMagicWand( websiteUrl, - productString, - parseInt(budgetMax), + firstProduct.url ? `${firstProduct.name} (URL: ${firstProduct.url})` : firstProduct.name, + Number(budgetMax), + specialInstructions, selectedProvider, selectedModel ); @@ -896,6 +900,16 @@ export default function GoogleAdsGenerator() { /> +
+ +