Embedding Ads in Newsletter
g10tto - May 7, 2009 - 19:39
| Project: | Advertisement |
| Version: | 6.x-2.x-dev |
| Component: | ad_embed module |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Is there a method of placing ads into a newsletter using the ad_embed module or otherwise, without resorting to a linked image?
I am aware of the three methods for embedding an ad into content, but all three seem to call JavaScript to serve the ads.
Is this correct, and is there an alternative, given that JavaScript is not read by most email clients?
Thanks!

#1
Hi I'm having the same issue, I have a page themed specifically for a newsletter, with all styles inline and absolute paths to all images, I have some ad's hard themed into the page, but since they are called with javascript, the newsletter can't create the ad's...
<div class="advertisement group-tids-65" id="group-id-tids-65"><script type='text/javascript' src='http://www.example.com/sites/all/modules/ad/serve.php?q=1&t=65&u=node/149'></script></div>I need the code to generate just a regular hard coded image tag inside an , like what the browser ultimately creates using javascript
Like this...
<div id="ad-179" class="image-advertisement"><a href="http://www.example.com/ad/redirect/179/t65?url=node/149"><img width="300" height="250" title="Test Deli" alt="Test Deli" src="http://www.example.com/sites/default/files/test_deli.jpg"/></a></div>I tried changing the method to raw, but it still uses javascript to create the ad... is there a workaround we can use for newsletter integration?
Thanks for your time, this module is otherwise PERFECT
#2
Remote ads are always displayed with JavaScript so that the ads change each time the "page" is displayed. If you want to use the raw method to display ads, then the same ad will always be displayed in the same place whenever the newsletter is displayed. If this is what you want, locally display the ads in raw mode then cut and paste the resulting HTML into your newsletter -- does that give you what you're looking for?