Skip to main content
All CollectionsPublisherPublisher Knowledge Base
How to: setup and integrate advanced ads
How to: setup and integrate advanced ads

How to configure the advanced tag for perfect ad delivery

Heiko Vogelgesang avatar
Written by Heiko Vogelgesang
Updated over a year ago

With our new advanced ads you're able to place a different kind of ads on your website. For all our ads the main code is always the same. However there are a lot of configuration options to perfectly optimize the ad delivery for your website or project.

TOC:

  1. General

  2. Ad-Pool Rotation

  3. Single Advertiser 

1. General

For all advanced tags and all ad cases you will be able to set all the settings within the ad code or in our UI. The configuration in the ad code always overwrites the settings from the UI.

2. Ad-Pool Rotation

With our In addition to our performance optimized ad selection the ad-pool ... retargeting.

<script type="text/javascript" charset="utf-8" src="https://ad4m.at/abcd1234.js"></script>

<script type="text/javascript">
advancedStoreTag.config({
   config: 6
})
advancedStoreTag.dispatch('reach', {
   subId: "LOREM",
   width: 300,
   height: 250,
   target: "#ad-1"
})
</script>
<div id="ad-1"></div>

3. Single Advertiser 

If you like to decide your own which advertiser should be displayed you can do so by set the variable 'program' in the advanced tag config.

<script type="text/javascript" charset="utf-8" src="https://ad4m.at/abcd1234.js"></script>

<script type="text/javascript">
advancedStoreTag.config({
   program: 20535,
   displayType: "native"
})
advancedStoreTag.dispatch('reach', {
   subId: "LOREM",
   width: 300,
   height: 250,
   target: "#ad-1"
})
</script>
<div id="ad-1"></div>

For the complete list of all available advertiser please ask your key account or just submit a support request.

4. Different ad slots on the same page

If you like to place more then one advanced an on your page the code have to be changed slightly. For every additional ad slot an own .dispatch configuration is needed.

<script type="text/javascript" charset="utf-8" src="https://ad4m.at/abcd1234.js"></script>

<script>
advancedStoreTag.config({
   displayType: "native"
});
// Ad 1
advancedStoreTag.dispatch('reach', {
   program: 638,
   id: 333,
   width: 300,
   height: 150,
   target: "#promotion-1"
});
// Ad 2
advancedStoreTag.dispatch('reach', {
   program: 4038,
   id: 527,
   width: 300,
   height: 150,
   target: "#promotion-2"
});
</script>

<div id="promotion-1"></div>
... some page content ...
<div id="promotion-2"></div>


Explanation of all parameters

Name: program
Description: Add the program id of the program you want to be delivered. For the complete list of all available advertiser please ask your key account or just submit a support request.
Type: Integer
Example: 20763

- - - 

Name: subid
Description:
Type: String
Example: MYID2029_SUMMER_AW

- - - 

Name: width
Description:
Type: Integer
Example: 728

- - - 

Name: height
Description:
Type: Integer
Example: 90

5. Add your own click tracking

All impressions and clicks of our ads will be tracked and you'll be see them in the our advanced suite reporting. However, there are use-cases where you like to use an own click tracker in order to get all the clicks in your own system or for auto-optimizing systems.

You can easily use you own click tracker by adding the following parameter to your code:

...
adClickUrl: "https://your.adserver.com/click/redirect="
...

⚠️ Keep in mind that the URL of this parameter will receive another URL to redirect to. When using this features the integration should be tested heavily, since this could cause that the user won't be redirected anymore, if there is something wrong.

Did this answer your question?