Ads Automation

@if (session()->has('message'))
{{ session('message') }}
@endif

@if ($activeTab === 'raw_data') Raw Data @endif @if ($activeTab === 'image_update') Image Update @endif @if ($activeTab === 'bidding') Bidding Update @endif @if ($activeTab === 'coupon_update') Coupon Update @endif @if ($activeTab === 'coupon_check') Coupon Check @endif @if ($activeTab === 'keywords') Keywords @endif @if ($activeTab === 'create_ad') Create Ad @endif

@if ($activeTab === 'raw_data') Campaign list with Target CPA, created date, historical traffic sync, and date-wise traffic filtering. @elseif ($activeTab === 'image_update') Compact row layout with image preview and error visibility. @elseif ($activeTab === 'bidding') Clearer values with Target CPA and change visibility. @elseif ($activeTab === 'coupon_update') Cleaner coupon modification layout. @elseif ($activeTab === 'coupon_check') Track coupon availability/status in a compact way. @elseif ($activeTab === 'keywords') Active campaign keywords with Not eligible and Low search volume status. @elseif ($activeTab === 'create_ad') Generate campaigns automatically from affiliate URLs and coupon codes. @endif

@if ($activeTab === 'raw_data') @endif
🔍
@if ($activeTab === 'raw_data') @endif @if ($editMode && $selectedId) @endif @if ($activeTab === 'keywords') @endif
{{-- RAW DATA TAB --}} @if ($activeTab === 'raw_data')
@forelse ($rows as $row) @php $clicks = $this->metricValue($row, 'filtered_clicks', 'clicks'); $impressions = $this->metricValue($row, 'filtered_impressions', 'impressions'); $cost = $this->metricValue($row, 'filtered_cost', 'cost'); $conversions = $this->metricValue($row, 'filtered_conversions', 'conversions'); @endphp @if ($editMode && $selectedId === $row->id) @endif @empty @endforelse
Campaign Campaign Type Traffic / Goal Target URL Budget / Bidding Target CPA Created / Sync Traffic Metrics Targeting Assets Summary Coupon Error Status Actions
{{ $row->campaign_name ?: '-' }}
Display Path: {{ $row->display_path ?: '-' }}
{{ $row->campaign_type ?: '-' }}
{{ $row->traffic_type ?: '-' }}
{{ $row->goal ?: '-' }}
{{ $row->target_url ?: '-' }}
Clickable / imported target URL
Budget: {{ $this->moneyLabel($row->budget) }} Bidding: {{ $row->bidding_strategy ?: '-' }}
{{ $this->moneyLabel($row->target_cpa) }}
{{ $row->campaign_created_at ? \Carbon\Carbon::parse($row->campaign_created_at)->format('M d, Y') : '-' }}
Last Sync: {{ $row->last_traffic_sync_at ? \Carbon\Carbon::parse($row->last_traffic_sync_at)->format('M d, Y H:i') : '-' }}
Clicks: {{ $this->integerLabel($clicks) }} Impr: {{ $this->integerLabel($impressions) }} Cost: {{ $this->moneyLabel($cost) }} Conv: {{ $this->moneyLabel($conversions) }}
{{ $row->network_setting ?: '-' }}, {{ $row->target_location ?: '-' }}, {{ $row->language ?: '-' }}
Keywords: {{ $this->countLines($row->keywords) }} Headlines: {{ $this->countLines($row->headlines) }} Descriptions: {{ $this->countLines($row->descriptions) }} Sitelinks: {{ $this->countLines($row->sitelinks) }}
{{ $row->coupon_code ?: '-' }} {{ $row->error_message ?: 'No Error' }}
{{ $row->campaign_status ?: 'UNKNOWN' }}
@error('form.campaign_name') {{ $message }} @enderror
@error('form.target_url') {{ $message }} @enderror
No campaigns found.
@endif {{-- IMAGE UPDATE TAB --}} @if ($activeTab === 'image_update')
@forelse ($rows as $row) @if ($editMode && $selectedId === $row->id) @endif @empty @endforelse
Campaign Target CPA Target URL Images Error Actions
{{ $row->campaign_name ?: '-' }}
{{ $this->moneyLabel($row->target_cpa) }}
{{ $row->target_url ?: '-' }}
@if ($row->image_url) img @else No Image @endif {{ $row->image_error ?: $row->error_message ?: 'No Error' }}
No campaigns found.
@endif {{-- BIDDING TAB --}} @if ($activeTab === 'bidding')
@forelse ($rows as $row) @if ($editMode && $selectedId === $row->id) @endif @empty @endforelse
Campaign Current Target CPA Target URL Bidding New New Target CPA % Change Actions
{{ $row->campaign_name ?: '-' }}
{{ $this->moneyLabel($row->target_cpa) }}
{{ $row->target_url ?: '-' }}
{{ $row->bidding_update_value ?: $row->bidding_strategy ?: '-' }} {{ $this->moneyLabel($row->new_target_cpa) }} {{ $this->percentLabel($row->bidding_change_percent) }}
No campaigns found.
@endif {{-- COUPON UPDATE TAB --}} @if ($activeTab === 'coupon_update')
@forelse ($rows as $row) @if ($editMode && $selectedId === $row->id) @endif @empty @endforelse
Campaign Target URL New Coupon Actions
{{ $row->campaign_name ?: '-' }}
{{ $row->target_url ?: '-' }}
{{ $row->new_coupon_code ?: '-' }}
No campaigns found.
@endif {{-- COUPON CHECK TAB --}} @if ($activeTab === 'coupon_check')
@forelse ($rows as $row) @if ($editMode && $selectedId === $row->id) @endif @empty @endforelse
Campaign Target URL Coupon Check Actions
{{ $row->campaign_name ?: '-' }}
{{ $row->target_url ?: '-' }}
{{ $row->coupon_check_status ?: 'Pending Check' }}
No campaigns found.
@endif @if ($activeTab === 'keywords')
@forelse ($keywordRows as $keyword) @empty @endforelse
Campaign Ad Group Keyword Match Type Status Eligibility Reason
{{ $keyword->campaign_name ?: '-' }}
Active campaign
{{ $keyword->ad_group_name ?: '-' }}
{{ $keyword->keyword_text ?: '-' }} {{ $keyword->match_type ?: '-' }} {{ $keyword->keyword_status ?: '-' }} {{ $keyword->primary_status === 'NOT_ELIGIBLE' ? 'Not eligible' : ($keyword->primary_status ?: '-') }} @if (str_contains((string) $keyword->primary_status_reasons, 'LOW_SEARCH_VOLUME')) Low search volume @else {{ $keyword->primary_status_reasons ?: '-' }} @endif
No active campaign keywords found.
{{ $keywordRows->links() }}
@endif @if ($activeTab === 'create_ad') @livewire('create-ad') @endif @if (!in_array($activeTab, ['keywords', 'create_ad']))
{{ $rows->links() }}
@endif
{{-- Offcanvas Details --}}
Campaign Details
Full row view for long Google Sheet content
Campaign
{{ $detail['campaign_name'] ?? '-' }}
Type
{{ $detail['campaign_type'] ?? '-' }}
Target CPA
{{ $detail['target_cpa'] ?? '-' }}
Created Date
{{ !empty($detail['campaign_created_at']) && $detail['campaign_created_at'] !== '-' ? \Carbon\Carbon::parse($detail['campaign_created_at'])->format('M d, Y') : '-' }}
Last Traffic Sync
{{ !empty($detail['last_traffic_sync_at']) && $detail['last_traffic_sync_at'] !== '-' ? \Carbon\Carbon::parse($detail['last_traffic_sync_at'])->format('M d, Y H:i') : '-' }}
Already Sent
{{ !empty($detail['already_sent']) ? 'Yes' : 'No' }}
Traffic Type
{{ $detail['traffic_type'] ?? '-' }}
Conversion Goal
{{ $detail['goal'] ?? '-' }}
Target URL
{{ $detail['target_url'] ?? '-' }}
Budget
{{ $detail['budget'] ?? '-' }}
Bidding
{{ $detail['bidding_strategy'] ?? '-' }}
Clicks
{{ $detail['filtered_clicks'] ?? $detail['clicks'] ?? '-' }}
Impressions
{{ $detail['filtered_impressions'] ?? $detail['impressions'] ?? '-' }}
Cost
{{ $detail['filtered_cost'] ?? $detail['cost'] ?? '-' }}
Conversions
{{ $detail['filtered_conversions'] ?? $detail['conversions'] ?? '-' }}
Networks
{{ $detail['network_setting'] ?? '-' }}
Target Location
{{ $detail['target_location'] ?? '-' }}
Language
{{ $detail['language'] ?? '-' }}
Keywords
{{ $detail['keywords'] ?? '-' }}
Display Path
{{ $detail['display_path'] ?? '-' }}
Coupon
{{ $detail['coupon_code'] ?? '-' }}
Headlines
{{ $detail['headlines'] ?? '-' }}
Description
{{ $detail['descriptions'] ?? '-' }}
Sitelinks
{{ $detail['sitelinks'] ?? '-' }}
Call Outs
{{ $detail['callouts'] ?? '-' }}
Promotions
{{ $detail['promotions'] ?? '-' }}
Structured Snippets
{{ $detail['structured_snippets'] ?? '-' }}
Negative Keywords
{{ $detail['negative_keywords'] ?? '-' }}
Error Message
{{ $detail['error_message'] ?? '-' }}