# AS3 clickTAG Help for Google Adwords

**URL:** https://forum.kirupa.com/t/as3-clicktag-help-for-google-adwords/321037
**Category:** flash
**Created:** [April 8, 2011, 12:50pm UTC](https://forum.kirupa.com/t/as3-clicktag-help-for-google-adwords/321037 "2011-04-08T12:50:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jlatshaw](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jlatshaw](https://forum.kirupa.com/u/jlatshaw)
#### Post date: [April 8, 2011, 12:50pm UTC](https://forum.kirupa.com/t/as3-clicktag-help-for-google-adwords/321037/1 "2011-04-08T12:50:17Z")

</div>

Google says they accept AS3 now but I have yet to find a code that works. Help please:

I need a clickTAG code that words for AS3 and google ads. Google give this code to use:

```
import flash.events.MouseEvent;
import flash.net.URLRequest;
// ......

```

thisButton.addEventListener(  
MouseEvent.CLICK,  
function(event: MouseEvent) : void {  
flash.net.navigateToURL(new URLRequest( root.loaderInfo.parameters.clickTAG), “\_blank”);  
}  
);

But I get this error message when I click on the banner  
TypeError: Error #2007: Parameter url must be non-null.  
at global/flash.net::navigateToURL()

Help!
