Skip to content
generate-ad-images logo

Generate Ad Images

generate-ad-images

Generate two distinct, AI-powered image variations for advertising campaigns using Google Gemini's image generation capabilities. Use when creating visual assets for ads based on campaign parameters and research insights. Triggers on requests to generate ad images, create visual assets, produce i...

SKILL.md

Full skill instructions

Generate Ad Images

Generate two distinct image variations for advertising campaigns using Google Gemini API. Each variation should be visually distinct, platform-optimized, and aligned with campaign goals.

Workflow

Step 1: Analyze Campaign Context

Extract from provided parameters:

  • product_or_service: What is being advertised
  • target_audience: Who the ad targets
  • platform: Where ad appears (TikTok, Facebook, Instagram, LinkedIn)
  • creative_direction: Tone and style requirements
  • kpi: Success metrics

If research insights provided, incorporate audience behaviors, platform trends, and creative recommendations.

Step 2: Determine Dimensions

Select dimensions based on platform. See references/​platform-guidelines.md for full details.

PlatformDimensionsAspect Ratio
TikTok1080×19209:16
Instagram Feed1080×10801:1
Instagram Story1080×19209:16
Facebook Feed1200×6281.91:1
LinkedIn1200×6271.91:1

Default to 1080×1080 if no platform specified.

Step 3: Create Variation A Prompt

Build a detailed image generation prompt including:

  • Product/​service representation
  • Target audience representation (if appropriate)
  • Platform-appropriate composition
  • Style matching creative direction
  • Dimensions specification
  • "No text overlays" instruction
  • "Leave space for text" instruction

Step 4: Execute Script for Variation A

Run the Python script:

python scripts/​generate_image.py --prompt "[your prompt]" --variation "A" --aspect-ratio "[ratio]"

Aspect ratio options: 1:1, 3:4, 4:3, 9:16, 16:9

The script returns JSON with image_data (base64), mime_type, and variation_id.

Step 5: Create Variation B Prompt

Create a DISTINCT prompt with different:

  • Composition or angle
  • Visual style or mood
  • Focus or emphasis

Variation B must NOT be a minor variation of A. Provide genuine alternative for A/​B testing.

Step 6: Execute Script for Variation B

python scripts/​generate_image.py --prompt "[your prompt]" --variation "B" --aspect-ratio "[ratio]"

Step 7: Determine Recommendation

Analyze both variations and recommend one based on:

  • Campaign KPI alignment
  • Platform best practices
  • Audience appeal from insights

Step 8: Return JSON Output

CRITICAL: Return a raw JSON object as plain text (NOT wrapped in markdown code blocks like ```json). The output must be valid JSON that can be parsed directly by the calling service.

Return this exact structure:

{ "generated_at": "ISO timestamp (e.g., 2024-01-15T10:30:00Z)", "campaign_name": "name or null", "platform": "platform name (lowercase, e.g., tiktok, instagram_feed)", "target_audience": "audience description", "variations": [ { "variation_id": "A", "image_url": "URL from script output (required)", "thumbnail_url": "thumbnail URL from script or null", "file_id": "file ID from script or null", "mime_type": "image/​png or image/​jpeg", "prompt_used": "full prompt used for generation", "visual_approach": "brief description of visual approach (1-2 sentences)", "dimensions": { "width": 1080, "height": 1920 } }, { "variation_id": "B", "image_url": "URL from script output (required)", "thumbnail_url": "thumbnail URL from script or null", "file_id": "file ID from script or null", "mime_type": "image/​png or image/​jpeg", "prompt_used": "full prompt used for generation", "visual_approach": "brief description of visual approach (1-2 sentences)", "dimensions": { "width": 1080, "height": 1920 } } ], "recommended_variation": "A or B", "recommendation_rationale": "2-3 sentences explaining why this variation is recommended based on campaign goals, platform best practices, and audience appeal" }

References

Important Notes

  • Return raw JSON only, not wrapped in code blocks
  • Generate exactly two variations with distinct visual approaches
  • Ensure images are platform-optimized with correct dimensions
  • Leave space for text overlays (headlines, CTAs)
  • Avoid text, logos, or copyrighted elements in generated images
  • Match tone and style to creative direction
  • Provide clear rationale for recommendation
  • Ensure variation B is genuinely different from A

More Marketing skills

copywriting logo
Marketing

copywriting

Marketing copy for homepages, landing pages, pricing pages, and other conversion-focused web pages.

53.3K 216.1K
View
flux-2-klein logo
Marketing

flux-2-klein

Fast image generation with Flux 2 Klein, optimized for sub-second iteration and multi-reference brand styling.

52 176.2K
View

Psychological principles and mental models for understanding customer behavior and influencing marketing decisions.

53.3K 153K
View

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
ai-seo logo
Marketing

ai-seo

Optimize content for discovery, citation, and visibility across AI search platforms and LLM assistants.

53.3K 136.7K
View
copy-editing logo
Marketing

copy-editing

Systematic improvement of existing marketing copy through seven focused editing passes.

53.3K 136.4K
View

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View
revops logo
Marketing

revops

Design and optimize systems connecting marketing, sales, and customer success into a unified revenue engine.

53.3K 104.9K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Convert websites into professional HyperFrames videos with guided storyboarding and brand-aligned composition.

57K 93.5K
View

Sales & marketing AI tools

KreadoAI logo
Sales & marketing

KreadoAI

Revolutionize Video Creation with AI-Generated Avatars and Voices

Paid
View
Followr logo
Sales & marketing

Followr

Social media on autopilot

Paid
View
Logodiffusion logo
Sales & marketing

Logodiffusion

Design custom logos instantly with AI.

Paid
View
I
Sales & marketing

Ideogram

Text-heavy marketing and design images

Freemium
View
Prompt Silo logo
Sales & marketing

Prompt Silo

Boost Your SEO with Content and SEO Silos

Free
View
Marketing Blocks logo
Sales & marketing

Marketing Blocks

Revolutionize Your Marketing with AI-Powered MarketingBlocks!

Paid
View
Scrip AI logo
Sales & marketing

Scrip AI

10X faster & free AI content creation for 100+ use cases

Free
View
Tribescaler logo
Sales & marketing

Tribescaler

Tribescaler | Make Your Tweets Go Viral

Paid
View