AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

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

AdCustomize If Condition

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi Guys,


i have a question about AdCustomize.


I know that know it's available the IF CONDITION and i'm trying to implement it with my audience segmentation.


This is the peace of code that i put on my Ads:

{=IF(audience IN(Elenco principale),Text1):Text2}


Elenco principale is the name of my audience.


Could you please help me to understand why this type of implementation doesn't work?



1 Expert replyverified_user

AdCustomize If Condition

Top Contributor
# 2
Top Contributor

Hi giacomo m,

I'm just going to make a guess here, the name of your audience should be enclosed in quotes:

{=IF(audience IN("Elenco principale"),Text1):Text2}


Text1 and Text2 must be assigned values before this. I could be wrong, examples I was able to find did not have quotes around the audience name, even when the name includes embedded spaces.


Best of Luck!




petebardo -- Deadhead doing AdWords

AdCustomize If Condition

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks Pete,


have you never try this new future?


I try to put " " between the name of audience but dosn't work.



{=IF(audience IN("Elenco principale"),Welcome Returning User):Welcome New User}


This is my example: the idea is to serve a different ads based on audience (Elenco Principale is my All visitors audience). If the user isn't on All visitors audience i want to serve another ad ( Welcome New user)