feat: add auto ad integration

- Add a new file to render the ad.
- Modify `app/views/cities/show.html.erb` to render
 the ad.
- The change is to add a new feature to the ad.
This commit is contained in:
songtianlun 2025-02-15 16:39:17 +08:00
parent 98a335100b
commit 983564d534
2 changed files with 14 additions and 0 deletions

View File

@ -65,6 +65,10 @@
<%= render 'shared/map', city: @city %>
</div>
<div class="card bg-base-100 backdrop-blur-md shadow-lg overflow-hidden"> <!-- 调整透明度和阴影 -->
<%= render 'shared/auto_ad' %>
</div>
<%= render 'cities/admin_panel' %>
</div>
</div>

View File

@ -0,0 +1,10 @@
<!-- today_ai_weather -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-7296634171837358"
data-ad-slot="7447936130"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>