How can we help you?
Two ValueTrack parameters are available to help advertisers manage cross-device campaign.The parameters are {ifmobile} and {ifnotmobile} and they are supported by Microsoft's Enhanced Campaigns and Yahoo! Japan's Unified Campaigns. These parameters can be used to send users to different landing pages, depending on whether they click on an ad from a mobile device or not.
Please note that after the Upgraded URLs migration Google uses the Mobile Landing Page field to determine whether a user is directed to a Mobile specific URL or not and not {ifmobile} and {ifnotmobile} parameters. For more information on Google's Upgraded URLs please see here.
The following is an example of how these parameters work in practice:
http://m.example.com
http://www.example.com
http://{ifmobile:m.}{ifnotmobile:www.}example.com
Users who click on an ad with this URL on a mobile device will be sent to http://m.example.com, and users who click from a tablet or desktop computer will be sent to http://www.example.com.
Initial support for these parameters was added to the platform in the May 10th 2013 release. Users are now able to create Destination URLs (or Click Through URLs if using redirects) with these parameters and push these URLs to the publisher.
As of May 31st 2013, URLs with the {ifmobile}/{ifnotmobile} parameters will also be run through URL Builder and Autocorrect. This support is provided with the following notes:
Examples where URL Builder will run:
http://{ifmobile:m.}{ifnotmobile:www.}example.com
http://{ifmobile:m.mobilesite.com}{ifnotmobile:www.desktopsite.com}
Examples where URL Builder will not run:
http://{ifmobile:m.mobilesite.com/?mobile=true}{ifnotmobile:www.desktopsite.com}
http://{ifnotmobile:mysite.com/home/?src=desktop}{ifmobile:m.example.com/?src=mob&id=2}
While required parameters will not be appended to Click Through URLs that contain query strings, we will still wrap these Click Through URLs in the base redirect and encode the Click Through URL appropriately.
We recommend putting as little text as possible within your {ifmobile}/{ifnotmobile} expressions. Common text should be factored outside to the main URL. Good and bad examples as follows:
http://{ifmobile:m.}{ifnotmobile:www.}example.com
http://{ifmobile:m.example.com}{ifnotmobile:www.example.com}
Let's walk through a few basic examples to demonstrate how the platform's URL Builder works with {ifmobile}/{ifnotmobile} URLs.
mkwid=[uniq_id]&pcrid=[creative_id]&pkw=[keyword_text]&pmt=[matchtype]
http://{ifmobile:m}{ifnotmobile:www}.example.com
http://{ifmobile:m}{ifnotmobile:www}.example.com?mkwid=abcd1234&pcrid={creative}&pkw={keyword}&pmt={matchtype}
mkwid=[uniq_id]&pcrid=[creative_id]&pkw=[keyword_text]&pmt=[matchtype]
http://www.example.com{ifmobile:mobileView}{ifnotmobile:storeView}?exampleparam=10051
http://www.example.com{ifmobile:mobileView}{ifnotmobile:storeView}?exampleparam=10051&mkwid=abcd1234&pcrid={creative}&pkw={keyword}&pmt={matchtype}
pub=[publisher]
http://track.com/rd?mkwid=[uniq_id]&pcrid=[creative_id]&lp=[click_through_url]
http://{ifmobile:m.mobilesite.com/mob}{ifnotmobile:www.mysite.com/home}
ttp://track.com/rd?mkwid=abcd1234&pcrid={creative}&lp=http%3A%2F%2F{ifmobile:m.mobilesite.com%2Fmob}{ifnotmobile:www.mysite.com%2Fhome}%3Fpub=microsoft
Note that special characters within {ifmobile} expressions are properly escaped within encoded Click Through URLs.
mkwid=[uniq_id]&mob={ifmobile:true}{ifnotmobile:false}
http://{ifmobile:m.mobilesite.com}{ifnotmobile:www.desktopsite.com}
http://{ifmobile:m.mobilesite.com}{ifnotmobile:www.desktopsite.com}?mkwid=abcd1234&mob={ifmobile:true}{ifnotmobile:false}
Typically when a user searches and clicks on a paid search URL, Google would recognize the device a user is browsing from, and populate only the device-specific URL. Therefore, in order to see if the {ifmobile}{ifnotmobile} URLs are set up correctly, you would need to take these apart manually and load them as if they truly came from the mobile or non-mobile URL.
For example, if your URL is:
http://tracker.exampleone.com/rd?cid=test&mkwid={ifsearch:s}{ifcontent:c}test|d{device}&pcrid={creative}&pkw={keyword}&pmt={matchtype}&lp=http://{ifnotmobile:www.exampletwo.com}{ifmobile:m.exampletwo.com}
You could then update the URL to the following to verify that the URL is working as expected:
{ifmobile} URL
http://tracker.exampleone.com/rd?cid=test&mkwid={ifsearch:s}{ifcontent:c}test|d{device}&pcrid={creative}&pkw={keyword}&pmt={matchtype}&lp=http://m.exampletwo.com
{ifnotmobile} URL
http://tracker.exampleone.com/rd?cid=test&mkwid={ifsearch:s}{ifcontent:c}test|d{device}&pcrid={creative}&pkw={keyword}&pmt={matchtype}&lp=http://www.exampletwo.com
Please note: if you were to paste URLs containing {ifmobile}{ifnotmobile} as-is, it would be expected for this to not resolve correctly, since both of the {ifmobile}{ifnotmobile} values are included.
http://{ifmobile:m.}{ifnotmobile:www.}example.com/?mobile={ifmobile:true}{ifnotmobile:false}
http://track.com/rd?mkwid=[uniq_id]&pcrid=[creative_id]&device_type={ifmobile:mob}{ifnotmobile:nm}&lp=[click_through_url]
http://{ifmobile:m.}{ifnotmobile:www.}example.com
would resolve into http://m.example.com
OR http://www.example.com