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
- Create a new file and select Non-Google Ad as the environment. This will generate the
gwdgenericad_min.jsfile. - Copy the
gwdgenericad_min.jsfile from the folder of the new ad you just created. - Paste this file to your existing project folder containing the Google Web Designer source HTML file you want to convert.
- Remove the
gwddoubleclick_min.jsfile from your existing project folder.
Convert the HTML file
- Open the HTML file you want to convert.
- Switch to Code View.
- 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">
- 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">
- Save and reopen the file.
- 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">