homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Google / Google AdWords
Forum Library, Charter, Moderators: buckworks & eWhisper & skibum

Google AdWords Forum

Implementation of Adwords Remarketing JS Code
Want to merge campaigns into one snippet of code

5+ Year Member

Msg#: 4301694 posted 5:12 am on Apr 21, 2011 (gmt 0)

I'm setting up Adwords Remarketing - where users that click ads for a particular product but don't buy are served MORE ads later as they travel around the web.

We sell a variety of products, and have separate campaigns for each. I'd like to show ads pertaining to specific campaigns to those users. I'd have to do a different code snippet for each campaign.

Users searching for Widgets should see widget ads. Users searching for other products should see those relevant ads.

Is there a way that I can munge the code together for several campaigns and place that chunk of code site wide? I've tried to do some kind of JS if/then = document.write tricks, but nothing seems to be working correctly.



WebmasterWorld Administrator buckworks us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 4301694 posted 2:32 pm on Apr 21, 2011 (gmt 0)

Trying to serve the code sitewide would wreck the targeting if you want to show widget ads to widget seekers, different product ads for different product seekers, etc.

Users that are to be shown your widget ads get cookied for that when they visit your widget pages, not some other page. Ditto for the other products. If you just use the same code sitewide, AdWords wouldn't know how to target which loses the whole point.

Side comment, but related: Remarketing with followup ads is most effective (and most cost-effective) if you keep a light hand about it. Set tight daily frequency limits to make sure you don't overdo it. User respond best when the effect you achieve is an occasional courteous reminder, not "stalk the user".


5+ Year Member

Msg#: 4301694 posted 2:44 pm on Apr 21, 2011 (gmt 0)

Thanks for the reply Buckworks - I understand how users are coming in from specific ad campaigns, and that the intent is to show them relevant product ads as they go other places.

It's not possible to do product-specific snippets of code - my product URLs are similar to



I was trying to work up some kind of a JS function that might do this:

if URL contains ('widget')
document.write('google widget code)
if URL contains ('other')
document.write('google other code')

But I can't seem to get document.write to actually write the google js code that google provides.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Google / Google AdWords
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved