Developer manual
Google Adwords
Simplified method of including Google Adwords scripts.
Updated: Type: springtag
Method
<adwords option="value"/>
Current
Request Attributes
| Attribute | Type | Description | Default | Required? | |
|---|---|---|---|---|---|
| current | conversion-id | string | Valid Conversion ID | Yes | |
| current | conversion-language | string | Valid 2 letter language value | Yes | |
| current | conversion-format | number | Valid Conversion format value | Yes | |
| current | conversion-color | Valid Conversion color value | Yes | ||
| current | conversion-label | string | Valid Conversion label | Yes | |
| current | conversion-value | string | Valid Conversion value | Yes | |
| current | remarketing-only | boolean | Valid Remarketing only boolean Allowed values: true, false |
Yes |
Examples
#1
Request
<if id="pageid" value="thank-you"> <adwords conversion-id="123456789" conversion-language="en" conversion-format="2" conversion-color="ffffff" conversion-label="xyz123456-12ab" conversion-value="0" remarketing-only="false"/> </if>
Including adwords on a page with an id of 'thank-you'
Response
<div style="position:absolute;">
<script src="/javascript.js/file/google.adwords/a/123456789/b/en/c/2/d/ffffff/e/xyz123456-12ab/f/0/g/false"></script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/123456789/?value=0&label=xyz123456-12ab&guid=ON&script=0" />
</div>
</noscript>
</div>