About URL variables and conditions for Hotel ads

This article explains how you can use URL variables and conditions to identify click sources for most travel ad formats, including Paid booking links, Travel promotion ads and Travel Feeds in Search ads.

Getting started

URL templates, which can be configured in Hotel Centre, define the landing page that a user is directed to after clicking on a travel ad or free booking link. When you include one of the variables or conditions from the table below in your URL template, we’ll populate it at serving time with the relevant value based on the ad format that the user clicked or the campaign type that the ad was served from.

Ad format clicked or Campaign type ad format was served from

Variable used in URL template: GOOGLE-ADS-CLICK-SOURCE

What is the source of the click?

Condition used in URL template: IF-HOTEL-CAMPAIGN

Is the click from a Hotel campaign ads?

Condition used in URL template: IF-AD-CLICK

Is the click from an ad?

Condition used in URL template: IF-PROMOTED

Is the click from a travel promotion ad?

Paid booking links (BL) 'bl' True yes, confirmed True yes, confirmed False Red X icon
Travel promotion ads (TPA) 'tpa' True yes, confirmed True yes, confirmed True yes, confirmed
Travel Feeds in Search Ads (TFSA) 'tfsa' False Red X icon True yes, confirmed False Red X icon
Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns 'pm' False Red X icon True yes, confirmed False Red X icon
Free booking links (FBL) blank False Red X icon False Red X icon False Red X icon

Additional details and examples

GOOGLE-ADS-CLICK-SOURCE

'GOOGLE-ADS-CLICK-SOURCE' is a variable that can be added in the URL template in Hotel Centre to identify ad click sources. When this variable is used in a URL template, we replace it at serving time with values denoted below corresponding to specific travel hotel products.

URL template example:

<URL>https://partner.com?hotelID=(PARTNER-HOTEL-ID)&amp;clk_src=(GOOGLE-ADS-CLICK-SOURCE)</URL>

In this example, Google will construct the following URLs. Note that the 'clk_src=' labelling are only examples and can be adjusted per your preference.

Travel product URL Reason
Paid booking links (BL) https://partner.com?hid=123&clk_source=bl GOOGLE-ADS-CLICK-SOURCE is bl for Paid booking links
Travel promotion ads (TPA) https://partner.com?hid=123&clk_source=tpa GOOGLE-ADS-CLICK-SOURCE is tpa for Travel promotion ads
Travel Feeds in Search Ads (TFSA) https://partner.com?hid=123&clk_source=tfsa GOOGLE-ADS-CLICK-SOURCE is tfsa for Travel Feeds in Search ads
Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns https://partner.com?hid=123&clk_source=pm GOOGLE-ADS-CLICK-SOURCE is pm for Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns
Free booking links (FBL) https://partner.com?hid=123&clk_source= GOOGLE-ADS-CLICK-SOURCE is blank for Free booking links

IF-AD-CLICK

If you want to track which clicks come from any ad click source, you can add IF-AD-CLICK to your URL template(s) in Hotel Centre.

In this case, if you are running Paid booking links, Travel promotion ads or Travel Feeds in Search ads, this conditional will track ad clicks from these sources but not differentiate between them.

URL template example:

<URL>https://partner.com?hotelID=(PARTNER-HOTEL-ID)(IF-AD-CLICK)&amp;adType=1(ELSE)&amp;adType=0(ENDIF)</URL>

In this example, based on the table below, you would get the following URLs for each of the formats. Note, the 'adType= labelling are only examples and can be adjusted per your preference.

Travel product URL Reason
Paid booking links (BL) https://partner.com?hid=123&adType=1 IF-AD-CLICK is True for Paid booking links
Travel promotion ads (TPA) https://partner.com?hid=123&adType=1 IF-AD-CLICK is True for Travel promotion ads
Travel Feeds in Search Ads (TFSA) https://partner.com?hid=123&adType=1 IF-AD-CLICK is True for Travel Feeds in Search ads

Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns

https://partner.com?hid=123&adType=1 IF-AD-CLICK is True for Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns
Free booking links (FBL) https://partner.com?hid=123&adType=0

IF-AD-CLICK is False for Free booking links

IF-HOTEL-CAMPAIGN

If you want to track which clicks come from Paid booking links and Travel promotion ads, you can add IF-HOTEL-CAMPAIGN to your URL template(s) in Hotel Centre.

URL template example:

<URL>https://partner.com?hotelID=(PARTNER-HOTEL-ID)(IF-HOTEL-CAMPAIGN)&amp;adType=1(ELSE)&amp;adType=0(ENDIF)</URL>

In this example, based on the table below, we construct the following URLs for each of the travel formats. The 'adType=' values are only examples and can be adjusted per your preference.

Travel product URL Reason
Paid booking links (BL) https://partner.com?hid=123&adType=1 IF-HOTEL-CAMPAIGN is True for Paid booking links
Travel promotion ads (TPA) https://partner.com?hid=123&adType=1 IF-HOTEL-CAMPAIGN is True for Travel promotion ads
Travel Feeds in Search Ads (TFSA) https://partner.com?hid=123&adType=0 IF-HOTEL-CAMPAIGN is False for Travel Feeds in Search ads

Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns

https://partner.com?hid=123&adType=0 IF-HOTEL-CAMPAIGN is False for Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns
Free booking links (FBL) https://partner.com?hid=123&adType=0 IF-HOTEL-CAMPAIGN is False for Free booking links

IF-PROMOTED

If you want to track which clicks come from Travel promotion ads, you can add IF-PROMOTED to your URL template(s) in Hotel Centre.

URL template example:

<URL>https://partner.com?hotelID=(PARTNER-HOTEL-ID)(IF-PROMOTED)&amp;adType=1(ELSE)&amp;adType=0(ENDIF)</URL>

In this example, based on the table below, we construct the following URLs for each of the travel formats. The 'adType=' values are only examples and can be adjusted per your preference.

Travel product URL Reason
Paid booking links (BL) https://partner.com?hid=123&adType=0 IF-PROMOTED is False for Paid booking links
Travel promotion ads (TPA) https://partner.com?hid=123&adType=1 IF-PROMOTED is True for Travel promotion ads
Travel Feeds in Search Ads (TFSA) https://partner.com?hid=123&adType=0 IF-PROMOTED is False for Travel Feeds in Search ads

Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns

https://partner.com?hid=123&adType=0 IF-PROMOTED is False for Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns
Free booking links (FBL) https://partner.com?hid=123&adType=0 IF-PROMOTED is False for Free booking links

Combining conditionals

Note: You can combine different conditionals in a URL template and will receive different results depending on the order and combination. Below is one of many possible conditional combination examples.

IF-AD-CLICK and IF-HOTEL-CAMPAIGN example

Combining IF-AD-CLICK and IF-HOTEL-CAMPAIGN, in this order, differentiates whether clicks are generated from general ad clicks and whether ad clicks are from a Hotel campaign (e.g. Paid booking links and Travel promotion ads).

Assuming this is your URL template in Hotel Centre and IF-AD-CLICK is placed before IF-HOTEL-CAMPAIGN:

<URL>https://partner.com?hotelID=(PARTNER-HOTEL-ID)(IF-AD-CLICK)(IF-HOTEL-CAMPAIGN)&amp;adType=2(ELSE)&amp;adType=1(ENDIF)(ELSE)&amp;adType=0(ENDIF)</URL>

Based on the table below, Google will construct the following URLs for each of the travel formats.

Travel product URL Reason
Paid booking links (BL) https://partner.com?hid=123&adType=2

IF-AD-CLICK is True

IF-HOTEL-CAMPAIGN is True for Paid booking links

Travel promotion ads (TPA) https://partner.com?hid=123&adType=2

IF-AD-CLICK is True

IF-HOTEL-CAMPAIGN is True for Travel promotion ads

Travel Feeds in Search Ads (TFSA) https://partner.com?hid=123&adType=1

IF-AD-CLICK is True

IF-HOTEL-CAMPAIGN is False for Travel Feeds in Search ads

Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns

https://partner.com?hid=123&adType=1

IF-AD-CLICK is True

IF-HOTEL-CAMPAIGN is False for Travel ads shown from Performance Max and Performance Max for travel goals (PM) campaigns

Free booking links (FBL) https://partner.com?hid=123&adType=0

IF-AD-CLICK is False

Related links

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Google apps
Main menu
5601687849649373088
true
Search Help Centre
true
true
true
true
true
73067
false
false
false