count

Returns the number of unique items selected by a template's multipliers and filters.

Note: This function is only available in Templates and can’t be used in Reporting.

Syntax

count()

Example

The following function in an ad template outputs the number of items that an ad group contains unless the ad group contains fewer than 5 items:
if(count() > 5, count() " choices", "The highest quality")

Related links

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
Search
Clear search
Close search
Main menu
11004654498095814332
true
Search Help Center
true
true
true
true
true
5055977
true
false
false
false