-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from readthedocs/show-client-code
Add the basic embed code to the adserver dashboard for publishers.
- Loading branch information
Showing
6 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% extends "adserver/reports/base.html" %} | ||
{% load humanize %} | ||
{% load i18n %} | ||
|
||
|
||
{% block title %}{% trans 'Publisher Embed' %} - {{ publisher }}{% endblock %} | ||
|
||
|
||
{% block heading %}{% blocktrans %}Publisher Embed for {{ publisher }}{% endblocktrans %}{% endblock heading %} | ||
|
||
{% block filters %} | ||
{% endblock %} | ||
|
||
{% block breadcrumbs %} | ||
{{ block.super }} | ||
<li class="breadcrumb-item active">{{ publisher }}</li> | ||
{% endblock breadcrumbs %} | ||
|
||
|
||
{% block summary %} | ||
<section> | ||
<div> | ||
<h2></h2> | ||
<div class="row col-md-8"> | ||
|
||
<p> | ||
This code will allow you to get started with showing ads on your site. | ||
You publisher Id is <strong>{{ publisher.slug }}</strong>, | ||
you can use this for all integrations. | ||
</p> | ||
|
||
<pre><code><script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script> | ||
|
||
<!-- Show a text ad --> | ||
<div data-ea-publisher="{{ publisher.slug }}" data-ea-type="text"></div> | ||
|
||
<!-- Show an image ad --> | ||
<div data-ea-publisher="{{ publisher.slug }}" data-ea-type="image"></div></code></pre> | ||
|
||
<p> | ||
You can find full documentation and more information about the client in our <a href="https://github.com/readthedocs/ethical-ad-client">GitHub repo</a>. | ||
</p> | ||
|
||
</div> | ||
</section> | ||
{% endblock summary %} | ||
|
||
|
||
{% block report %}{% endblock report %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters