# Google Ads Template
channel: google_ads
priority: 3
language: [th, en]

# Field specifications (matches Google Ads API structure)
fields:
  headlines:
    count: 15
    max_chars: 30
    thai_note: "Thai characters may display differently. Test on mobile."
    pin_options:
      enabled: true
      positions: [1, 2, 3]
      
  descriptions:
    count: 4
    max_chars: 90
    thai_note: "Use full 90 chars for Thai to convey complete message"
    pin_options:
      enabled: true
      positions: [1, 2]
      
  keywords:
    suggested_count: 15-20
    match_types:
      - exact: "[keyword th]"
      - phrase: '"keyword th"'
      - broad: "keyword th"
      - negative: "-keyword th"
      
  negative_keywords:
    suggested_count: 10-15
    purpose: "Exclude irrelevant traffic"
    
  ad_extensions:
    sitelinks:
      count: 4
      fields:
        - link_text: "25 chars"
        - description_line_1: "35 chars"
        - description_line_2: "35 chars"
        - final_url: "full URL"
        
    callouts:
      count: 4
      max_chars: 25
      examples_th:
        - "รองรับภาษาไทย"
        - "ทีมซัพพอร์ท 24/7"
        - "ยกเลิกเมื่อไหร่ก็ได้"
        
    structured_snippets:
      header: ["Brands", "Services", "Types", etc.]
      values:
        count: 4-10
        max_chars: 25
        
    call_extension:
      phone_number: "+66 XX XXX XXXX"
      country_code: "TH"
      
    location_extension:
      business_name: "string"
      address: "string"

# Campaign settings
campaign:
  type: "SEARCH"
  advertising_channel_sub_type: "SEARCH_STANDARD"
  bidding:
    strategy: "MAXIMIZE_CLICKS"
    target_cpa: null
    target_roas: null
  budget:
    type: "DAILY"
    amount: 1000  # THB
    delivery_method: "STANDARD"
  networks:
    google_search: true
    search_partners: true
    display_network: false
  location_targeting:
    - "Thailand"
    - optional: specific provinces
  language_targeting:
    - "Thai"
    - "English"

# Audience signals (for Performance Max campaigns)
audience_signals:
  custom_segments:
    - based_on: "keywords or URLs"
  interest_categories: []
  remarketing_lists: []
  customer_match_lists: []

# Output configuration
output:
  variations: 3  # Complete RSA variations
  format: json
  include_api_metadata: true
  ready_for_import: true
  
# Quality requirements
quality:
  min_score: 75
  checks:
    - keyword_relevance
    - headline_diversity
    - cta_clarity
    - landing_page_relevance
    - policy_compliance
    - thai_language_quality

# API readiness (for future Google Ads API integration)
api_ready:
  platform: google
  api_version: v15.0
  service: "GoogleAdsService"
  endpoint: "/google.ads.googleads.v15.services/GoogleAdsService:Mutate"
  
  resource_hierarchy:
    - customer
    - campaign
    - ad_group
    - ad_group_ad
    - ad (RESPONSIVE_SEARCH_AD)
    
  field_mapping:
    headlines: responsive_search_ad.headlines
    descriptions: responsive_search_ad.descriptions
    final_url: responsive_search_ad.final_urls
    display_path: responsive_search_ad.path1, path2
    keywords: ad_group_criterion
    bid_modifier: ad_group_criterion.cpc_bid_modifier
    
  future_integration_notes:
    - "Add conversion_tracking_setup"
    - "Add value_track_parameters"
    - "Add ad_schedule_bid_modifiers"
    - "Add device_bid_modifiers"
    - "Add location_bid_modifiers"
    - "Setup enhanced conversions"

# Compliance
compliance:
  google_ads_policies:
    - "No misleading claims"
    - "No prohibited content"
    - "Trademark compliance"
    - "Editorial requirements"
    - "Destination requirements"
  thailand_specific:
    - "FDA approval for health products"
    - "No gambling content"
    - "No adult content"
    - "Consumer Protection Board compliance"
