Convert a Doubleclick, AdWords or AdMob ad to Non-Google ad
  • 21 Sep 2023
  • 1 Minute to read
  • Dark
    Light

Convert a Doubleclick, AdWords or AdMob ad to Non-Google ad

  • Dark
    Light

Article summary

If you've already built your banner using the Doubleclick environment, here's a step-by-step guide to convert it to a Non-Google ad.

Get the latest gwdgenericad_min.js file

  1. Create a new file and select Non-Google Ad as the environment. This will generate the gwdgenericad_min.js file.
  2. Copy the gwdgenericad_min.js file from the folder of the new ad you just created.
  3. Paste this file to your existing project folder containing the Google Web Designer source HTML file you want to convert.
  4. Remove the gwddoubleclick_min.js file from your existing project folder.

Convert the HTML file

  1. Open the HTML file you want to convert.
  2. Switch to Code View.
  3. Find and remove the following lines:
  • This line
<script data-source="https://s0.2mdn.net/ads/studio/Enabler.js" data-exports-type="gwd-doubleclick" type="text/javascript" src="https://s0.2mdn.net/ads/studio/Enabler.js"></script>
  • This line
            <link href="gwddoubleclick_style.css" rel="stylesheet" data-version="10" data-exports-type="gwd-doubleclick">

  • This line
            <link href="gwddoubleclick_style.css" rel="stylesheet" data-version="10" data-exports-type="gwd-doubleclick">
  1. Find and replace any mention of doubleclick with genericad. Here's the main instances:
  • This line
            <script data-source="gwddoubleclick_min.js" data-version="10" data-exports-type="gwd-doubleclick" type="text/javascript" src="gwddoubleclick_min.js"></script>

With this line

            <script data-source="gwdgenericad_min.js" data-version="4" data-exports-type="gwd-genericad" type="text/javascript" src="gwdgenericad_min.js"></script>
  • This line
            <gwd-doubleclick id="gwd-ad" polite-load="">

With this line

            <gwd-genericad id="gwd-ad">
  • This line
            </gwd-doubleclick>

With this line

            </gwd-genericad>
  • Optionally, this line (Doubleclick environment)
            <meta name="environment" content="gwd-doubleclick">

With this line

            <meta name="environment" content="gwd-genericad">
  1. Save and reopen the file.
  2. You can then follow the Building HTML5 with Google Web Designer guide to implement the AdGear API.

Notes

AdWords Environment

If you were converting from an AdWords file, this is the line you would find on 4d.

    <meta name="environment" content="gwd-adwords">

AdMob Environment

If you were converting from an AdMob file, this is the line you would find on 4d.

    <meta name="environment" content="gwd-admob">

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.