AdWords
4.6K members online now
4.6K members online now
Dive into advanced features like Remarketing, Flexible Bid Strategies, AdWords Editor, and AdWords Scripts
Guide Me
star_border
Reply

If function in adwords help

Explorer ✭ ✭ ✭
# 1
Explorer ✭ ✭ ✭

Hello,

 
I have just one query ,if I use if function in remarketing list or device category, for say one ad will show 10% in desktop and the same ad show 15% in mobile then if user clicks on the ad and come to my website how does my website determine if the user come from mobile or desktop ?Since there is only 1 ad and one destination url and how does the appropiate offerr is applied for the customers?
 
For an example suppose I have created one ad with if fuction which will show 10%offer in desktop and in mobile 20% .Now I created the ad with a single destination url for example abc.com now if one user come from mobile and landed my website how can my website determine that the user come from mobile and apply 20% offer to the user?
 
If function can help us to show same ad to different user according to device and condition.But merely showing the ads do not solve the purpose.How do my website handle and recongnize it and apply appropiate offer with the above if funcionality?
 
Please if u can clear my confusion it will be great.
2 Expert replyverified_user

If function in adwords help

Explorer ✭ ✭ ☆
# 2
Explorer ✭ ✭ ☆

Hi Suomik

it's not a question to AdWords community but to your webmaster. You cannot change your website running campaigns. You can use php or js to recognize the device and dynamically change the price.

If function in adwords help

Explorer ✭ ✭ ✭
# 3
Explorer ✭ ✭ ✭

And in case of audience if a user is new or returning?Doest this too involves webmaster from back end?

If function in adwords help

Explorer ✭ ✭ ✭
# 4
Explorer ✭ ✭ ✭

So if fuction in adwords just helps to customize ads?For the actual functionality we have to use back end webmaster help like js or php modification?

If function in adwords help

Explorer ✭ ✭ ☆
# 5
Explorer ✭ ✭ ☆

Function if customize only ads, not your website.

You need cookies to collect additional data about your users and grant them a discount.

I don't know your website technology, just ask your webmaster how to do this.

If function in adwords help

Explorer ✭ ✭ ✭
# 6
Explorer ✭ ✭ ✭

CAN ANYBODY HELP?

If function in adwords help

Explorer ✭ ✭ ✭
# 7
Explorer ✭ ✭ ✭

Thanks @Łukasz S.

So basically what if function is for ads.

Then rest is done by webmaster?

 

If function in adwords help

Top Contributor
# 8
Top Contributor

Let me ping our programing specialist it on this 

@petebardo ?

Moshe, AdWords Top Contributor , Twitter | Linkedin | Community Profile | Ad-Globe
Did you find any helpful responses or answers to your query? If yes, please mark it as the ‘Best Answer’

If function in adwords help

Explorer ✭ ✭ ✭
# 9
Explorer ✭ ✭ ✭

Thanks @MosheTLV.It will be great .Please keep us posted in this topic

If function in adwords help

[ Edited ]
Top Contributor
# 10
Top Contributor

Hi Soumik Ghosh,

You will need to program your website to show different offers based on device. Here's an approach you can take. Use manual tagging along with auto-tagging. Do not name your variables with utm_*, that could cause your data to show up in more than one place in analytics.

Use the if function to assign a value to a query string variable, let's call it discount. It will look something like this:

www.example.com?discount={ifmobile:20}{ifnotmobile:10}

You only get one chance to capture this data, when the user first hits your website. Look for a discount value in the querystring. If it's present, this is an AdWords click. Set a local cookie that indicates the discount, name the cookie discount. Set the expiration of the cookie to the conversion window, usually 30 days.

On each page that shows the discount, read the cookie, then replace all instances of the discount on the page with the discount value from the cookie. To make it easier, assign the same class name to each instance of the discount to a span element that surrounds the discount value only.

You can do this on the backend or with Javascript on the client side.

Also, when the user checks out, your system will need to look for the discount and apply it to your order. How you do that depends on your shopping cart.

If the user changes devices, the default discount will show on your website.

If you want to show these discounts for all visitors, not just AdWords clicks, you can "sniff" the OS to determine if the user's device is mobile. Some tablets will be caught with this.

Depending on your CMS, I would estimate this to be 8 to 10 hours development and testing.

Best of Luck!

 

Pete

 

petebardo -- Deadhead doing AdWords