ads
Provides the ability to access and render an ad.
The ads
object allows you to select a specific ad or ad placement:
<div>
{% assign ad = ads["Ad Name"] %}
<h4>{{ ad.title }}</h4>
<a href="{{ ad.redirect_url }}">
<img src="{{ ad.image.url }}" alt="{{ ad.image.alternate_text }}" />
</a>
</div>
Ads Attributes
placements |
Returns the |
[ad name or id] |
You can access any {% assign ad = ads["Ad Name"] %} |
Ad Placements Attributes
[ad placement name or id] |
You can access any {% assign placement = ads.placements["Placement Name or Id"] %} |
Ad Placement Attributes
ads |
Returns the collection of Iteration tags and array filters may be used with this collection. |
name |
Returns the Name field for the ad placement. |
placement_url |
The URL that can be used to retrieve the ad placement fully rendered by a template. |
random_url |
The URL that can be used to retrieve a random ad from the placement fully rendered by a template. |
Ad Attributes
ad_url |
The URL that can be used to retrieve the ad fully rendered by a template. |
copy |
Returns the Copy field for the ad. |
image |
Returns the image object (if any) for the ad. |
name |
Returns the Name field for the ad. |
open_in_new_window |
Returns true if the url specified by |
redirect_url |
The URL that the user will be directed to by clicking on the ad. |
Ad Image Attributes
alternate_text |
Return the text that is intended to appear in the |
height |
Returns the height in pixels for the image |
url |
Returns the url source for the image. |
width |
Returns the width in pixels for the image |