123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Marketing >> View Article

Should I Use Protocol-relative Urls In Ad Tags?

Profile Picture
By Author: Michael David Wilson
Total Articles: 28
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

Ad tags can be placed in many areas of a website: some secure areas and some non-secure areas. However, non-secure content can be blocked by the browser when the web page is secure. The error message in Internet Explorer is "This Page Contains Both Secure and Non-Secure Items. Do you want to display the nonsecure items?" Other browsers can simply ignore and skip the non-secure content. This means a non-secure ad might not display within a secure website. This is one of the common sources for data discrepancy if there are multiple ad servers involved in tracking the same ad impression.

Therefore, it's better to use the same protocol for all URL requests, either all "http://" or all "https://". For ad serving, it means using the secure ad serving tag on secure sites and the non-secure ad serving tag on non-secure sites. To do this, you can manually match the correct ad tag with your website's area. For example: a non-secure ad tag for the homepage and a secure ad tag for the login area. However, there is a better and more convenient way by using protocol-relative URLs. It is also called scheme-relative URLs or network-path ...
... references.

Instead of using this ad serving tag for non-secure web pages:
1. < i f r a m e  s r c="http://g.abc.net/ad.php..." >
2. < a  h r e f="http://g.abc.net/ad.php..." >
3. < i m g  s r c="http://g.abc.net/ad.php..."/ >< / a >
4. < / i f r a m e >

or this ad serving tag for secure web pages:
1. < i f r a m e  s r c="https://g.abc.net/ad.php..." >
2. < a  h r e f="https://g.abc.net/ad.php..." >
3. < i m g  s r c="https://g.abc.net/ad.php..."/ >< / a >
4. < / i f r a m e >

You can use a protocol-relative URL that has auto-detection and auto-switching:
1. < i f r a m e  s r c="//g.abc.net/ad.php..." >
2. < a  h r e f="//g.abc.net/ad.php..." >
3. < i m g  s r c="//g.abc.net/ad.php..."/ >< / a >
4. < / i f r a m e >

*Note: While using the code remove the excess spaces in the HTML tags.

Considerations
This setup can be applied to other URLs, not just our ad serving tags. However, there are several considerations you need to know before you convert all URLs to this format:

The SSL certificate needs to be valid and working for the same domain as the non-secure/standard domain. If you have SSL on a different domain or sub-domains then this scheme will not work. For example: http://client.example.com and https://client.example.com

Older browsers might not support, understand or properly handle this protocol-relative URL format. Potential issues with these older browsers include double-download of the same files and missing files

Some email software converts protocol-relative URLs to "file://" URLs and try to look in a folder on the client's computer, which likely does not exist. This also happens when you view the web page locally after downloading it.

Thus, it is clear why and how to add protocol relative urls in ad tags.

AdSpeed Adserver is a reliable and powerful ad serving and ad management solution that serves your ads, track impressions, clicks, and report ad statistics in real-time. Driven by the changing needs, Ad manager continues to develop more innovative features and to offer a wide-range of advertising services.

Total Views: 485Word Count: 547See All articles From Author

Add Comment

Marketing Articles

1. Best Digital Marketing Services In Usa For Business Growth
Author: Digiworld solution inc

2. Seo Services In Dubai: How Easywebplans It Llc Expands Digital Reach For Growing Businesses
Author: Easywebplans IT LLC

3. The Future Of Smart Hr Management And Employee Reporting
Author: Connect 360

4. Digital Marketing In Kochi Driving Business Growth In The Digital Era
Author: SanjuSeo

5. Why Businesses Are Choosing An Seo Reseller Service From Visiogle
Author: Visiogle

6. Trusted Digital Marketing Agency In Delhi For All Businesses
Author: reddashmedia

7. What Are The Advantages Of Blueberry Tube Packaging?
Author: doris zhang

8. Search Marketing In 2026: From Keywords To Credibility And User Intent
Author: idigitize

9. The Digital Architects: Why Bigwig Media Digital Is The Best Website Development Company In Delhi
Author: BigWig Digital

10. Veeva Vault Simplifies Content And Compliance Management For Life Sciences
Author: Ashok Kohali

11. Social Media Agency In Thane Driving Brand Growth
Author: Yelkotech

12. Where To Find High-cashflow Properties In New South Wales
Author: Nfinity Finanials

13. Sem Strategy Tips Used By The Best Search Engine Marketing Services
Author: QlikMatrix SEM & Analytics Pvt. Ltd.

14. The Ultimate Guide To Video In Print: A New Era Of Marketing Innovation
Author: Sorkin Media Solutions

15. Build Recognition Without Big Ads: Practical Steps For Small Firms
Author: Barry Elvis

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: