Posted By

nargalzius on 01/16/13


Tagged

temp doubleclick remarketing


Versions (?)

DoubleClick YouTube Masthead remarketing pixel implementation


 / Published in: ActionScript 3
 

Implementation followed according to doubleclick documentation

In the case of the provided urls, I took out the extraneous ; and the "/> at the end.

//

http://googleads.g.doubleclick.net/pagead/viewthroughconversion/1004756267/?value=0&;label=dAakCK3CzgQQq7qN3wM&;guid=ON&;script=0"/>

interpreted as:

http://googleads.g.doubleclick.net/pagead/viewthroughconversion/1004756267/?value=0&label=dAakCK3CzgQQq7qN3wM&guid=ON&script=0

//

http://googleads.g.doubleclick.net/pagead/viewthroughconversion/1004756267/?value=0&;label=Hrr7CLXBzgQQq7qN3wM&;guid=ON&;script=0"/>

interpreted as:

http://googleads.g.doubleclick.net/pagead/viewthroughconversion/1004756267/?value=0&label=Hrr7CLXBzgQQq7qN3wM&guid=ON&script=0

  1. var tp1:String = "http://googleads.g.doubleclick.net/pagead/viewthroughconversion/1004756267/?value=0&label=Hrr7CLXBzgQQq7qN3wM&guid=ON&script=0";
  2. var tp2:String = "http://googleads.g.doubleclick.net/pagead/viewthroughconversion/1004756267/?value=0&label=dAakCK3CzgQQq7qN3wM&guid=ON&script=0";
  3.  
  4. function loadPixel(trackingPixel){
  5. var pixelLoader: Loader = new Loader();
  6. pixelLoader.load(new URLRequest(trackingPixel));
  7. addChild(pixelLoader);
  8.  
  9. trace("REMARKETING PIXEL: "+trackingPixel);
  10. };
  11.  
  12. // Then ALL exit click functions have this appended on them:
  13.  
  14. loadPixel(tp1);
  15. loadPixel(tp2);

Report this snippet  

You need to login to post a comment.