Documentation

Setting up static ads

This guide will help you to set up orders for static ads in Google Ad Manager through App Events.

❗️

Auto-Refresh

This integration method involves manual loading of ads, so make sure that auto-refresh is disabled for ad units.

Access your account

Log in to your account on https://admanager.google.com. You will see a similar screen as below

Step 1 - Setup Order

If you already have order and you want to use it, move to "Step 2 - Setup Creative".

  1. Choose "Orders" in the Delivery group. Then click on "New order".

  1. Fill in three fields: Name, Advertiser, and Trafficker. Then click "SAVE"

Step 2 - Setup Creative

  1. Choose "Creatives" in the Delivery group. Then click on "New creative".

  1. Select the same Advertiser that you used when setting up an Order. Then click on "OK".

  1. Choose "Third party".

  1. Fill in these two fields: Name and Target ad unit size.
    Choose "Standard" for "Code type" and insert the code snippet from the "Creative code snippet" (at the bottom of the page) in the field below.
    Uncheck the SafeFrame checkbox.

Step 3 - Setup LineItem

  1. Choose "Orders" in the Delivery group.
  2. Choose a necessary Order from the list. Then click on "New line item"
  3. Choose "Display"

  1. On the next screen:

    • Fill in the Name of line item.

    • Set the "Line item type" to "Price Priority":

    • Select "Expected creatives":

    • Input "Start time", "End time" in the "Delivery settings" group. Also set "Goal type" to "None" and fill "Rate" with your line item price:


    • Pay attention to the "Child-directed ads" parameter, the value of which affects the fill rate.
      The highest fill rate is achieved by selecting "Allow to serve on child-directed requests":

    • Select an ad unit from the list In the "Inventory" group. Add Custom targeting for BidMachine price. Value of custom parameter must contain 2 decimal points, for example, for price 2.9 - bm_pf:2.90:



  2. After creating a line item, connect the creative with the line item. For that choose the line item, then choose "Creatives". Then click on "ADD CREATIVE" -> "Existing creative"

  1. Find creative and click on it.

Creative code snippets

Banner:

<html>
<head>
  <script src="//www.gstatic.com/afma/api/v1/google_mobile_app_ads.js"></script>
  <script>
    document.addEventListener("DOMContentLoaded", function() {
      admob.events.dispatchAppEvent("bidmachine-banner", "");
    });
  </script>
</head>
<body>
</body>
</html>

Interstitial:

<html>
<head>
  <script src="//www.gstatic.com/afma/api/v1/google_mobile_app_ads.js"></script>
  <script>
    document.addEventListener("DOMContentLoaded", function() {
      admob.events.dispatchAppEvent("bidmachine-interstitial", "");
    });
  </script>
</head>
<body>
</body>
</html>