Integration


Push Subscription Flow

Summary

Learn how the Push advertising format works in DAO.AD, from the visitor's first interaction with your website to subscription collection, ad delivery, and revenue generation.

push_subs_flow-1107

Overview

The Push subscription process consists of several stages.

  1. Visitor opens your website.
  2. JavaScript initializes the Push SDK.
  3. The browser requests notification permission.
  4. The visitor accepts or declines the request.
  5. A subscription is created.
  6. DAO.AD starts delivering push notifications.
  7. You earn revenue from subscriber activity.
Stage 1: Visitor opens your website

The visitor loads a page containing the DAO.AD JavaScript code.

The script initializes automatically after the page has finished loading.

Stage 2: Permission request

Depending on the selected integration type and display settings, the browser displays a notification permission request.

The visitor can either:

Only visitors who allow notifications become subscribers.

Stage 3: Subscriber registration

After permission has been granted:

Stage 4: Campaign delivery

Once a matching campaign becomes available:

Stage 5: User interaction

The subscriber may:

Only clicks redirect the subscriber to the advertiser's landing page.

Stage 6: Revenue generation

When the subscriber clicks the notification, DAO.AD records the event and calculates your earnings according to the campaign pricing model.

Revenue is displayed in your statistics and included in future payouts.

Best Practices

Tags & SDK

Tags & SDK

JavaScript Tag (Push)

Summary

Generate the JavaScript code required to display the Push ad format on your website. Configure the display settings, generate the script, and add it to your website.

Before You Begin

Important! JavaScript code is available only for Site traffic sources. If your source type is Link, create and approve a Site Source before continuing.

Steps
  1. Open your approved Site source of Push. After your Site Source has been approved, navigate to Sources - Push and open the source that will be used for the Push format.
  2. Open the Code page and click Code to open the JavaScript code configuration settings.
  3. Configure the following parameters:
    - Click ID for postback - if you want to track conversion through postback
    - Redirect Count - Maximum number of redirects before the user is subscribed. We recommend using no more than 5 redirects.
    - Decline Count - Maximum number of declined subscription attempts before redirecting the user to the Trafficback URL. We recommend using the default value.
    - Full-screen Mode - Enable or disable full-screen display on the landing page.
    - Landing Page Type - Select one of the available landing page types.image.png- Start Popup Delay - Time (in seconds) before the first popup appears.
    - Popup Timeout - Time interval (in seconds) between popup displays.
  4. Download the generated code archive, extract it, and upload the script files to your website's root directory.image.png
  5. Subscriber collection begins once visitors allow push notifications on your website.
Troubleshooting

Issue: The Code button is unavailable.

Solutions: If you have not received the authorization code.
Verify that:


Tags & SDK

JavaScript Tag (Inpage Push)

Summary

Generate the JavaScript code required to display the In-Page Push ad format on your website. Configure the display settings, generate the script, and add it to your website.

Before You Begin

Important! JavaScript code is available only for Site traffic sources. If your source type is Link, create and approve a Site Source before continuing.

Steps
  1. Open your approved Site source of Inpage Push. After your Site Source has been approved, navigate to Sources - Push InPage and open the source you want to use.
  2. Open the Code page and click Code to open the JavaScript code configuration settings.
  3. Configure the following parameters:
    - Type - Choose how the JavaScript code will be generated. Download Script - Downloads a JavaScript file that must be uploaded to your website's root directory. Inject Script - Displays the JavaScript code that can be copied and pasted directly into your website.
    - Position Y - Choose whether the In-Page Push notification appears at the top or bottom of the screen.
    - Position X - Choose whether the notification appears on the left or right side of the screen.
    - Max Ad Count - Maximum number of In-Page Push messages displayed on the same time.
    - Delay Before First Show - Time (in seconds) before the first In-Page Push message is displayed.
    - Delay Before Next Show - Time (in seconds) before the next message is displayed.
    - Renew Ad Interval - Time (in seconds) before the current advertisement is refreshed.
    - Pulse Interval - Time interval (in seconds) between pulse animations.
  4. You can also customize the appearance and behavior of your In-Page Push message using the settings below.image.png
  5. Download the generated code archive, extract it, and upload the script files to your website's root directory.
  6. Subscriber collection begins once visitors allow push notifications on your website.
Troubleshooting

Issue: The downloaded script does not work.

Solutions: Check whether a VPN, browser extension, or another JavaScript library is preventing the script from loading correctly.

Tags & SDK

JavaScript Tag (Popunder)

Summary

Generate the JavaScript code required to display the Popunder ad format on your website. Configure the display behavior, generate the script, and add it to your website pages.

Before You Begin

Important! JavaScript code is available only for Site traffic sources. If your traffic source type is Link, create and approve a Site Source before continuing.

Steps
  1. Open your approved Site source. After your Site Source has been approved, navigate to: Sources - Your Source. Open the source that will be used for the Popunder format.
  2. Open the Code page. Click the Code button to open the JavaScript code configuration page.
  3. Select the display typesite_code_v060726.jpg
    1. Pop Up
    2. Pop Under
    3. Tab Up
    4. Tab Under
  4. Configure the display frequency. Select how often the script can display an advertisement to the same visitor.site_code_v060726.pngPossible time range: 30 minutes – 24 hours
  5. Configure the delay. Specify how many seconds should pass before the first advertisement is displayed.site_code_v060726 (1).png
  6. Configure UTM parameters (optional). This helps identify traffic sources in your analytics platform.site_code_v060726 (2).png
  7. Generate the JavaScript code. Click Get Script.site_code_v060726 (3).png
  8. Copy the entire generated code.
  9. Install the code. Paste the generated JavaScript immediately before the closing </body> tag on every page where Popunder ads should be displayed.
  10. After the code is published on your website, traffic will start being monetized automatically.


Troubleshooting

Issue: The Code button is unavailable.

Solutions: If you have not received the authorization code.
Verify that:

- your traffic source has been approved;
- the source type is Site;
- you have permission to access the source.


Issue: Advertisements are not displayed.

Solution:

Check that:


Tags & SDK

JavaScript Tag (Video)

Summary

Generate the JavaScript code required to display the Video ad format on your website. Configure the display settings, generate the script, and add it to your website.

Before You Begin

Important! JavaScript code is available only for Site traffic sources. If your source type is Link, create and approve a Site Source before continuing.

Steps
  1. After your Site Source has been approved, navigate to Sources - Video and open the source you want to use.
  2. Open the Code page and click Code to open the JavaScript code configuration settings.
  3. Configure the following parameters:
    Type - Select one of the available video integration modes:
    a) VAST Ad Link
    b) Video Player (Pre-roll)
    c) Slider Ad
    d) Video Pre-roll + Slider
    - Container ID - ID of the HTML element where the video player will be inserted.
    - Position Y - Choose whether the video player appears at the top or bottom of the page.
    - Position X - Choose whether the video player appears on the left or right side of the page.
    - Size - Select the size of the video player.
    - Count video - Maximum number of video ads shown in sequence.
    - Max Ad View Count - Maximum number of times the Slider Ad can be displayed.
    - Pause Before End - Number of seconds before the end of the video when playback is paused.
    - Renew Slider Ad Interval - Time interval (in seconds) before the Slider Ad is refreshed.
    - Volume - Default playback volume for the video.
  4. You can also customize the appearance and animations of the video player using the settings below.image.png
  5. Click Get Code to generate the JavaScript code, then copy and paste it into your website.
Troubleshooting

Issue: The downloaded script does not work.

Solutions: Check whether a VPN, browser extension, or another JavaScript library is preventing the script from loading correctly.