function getQueryParameter(name) { let url = new URL(window.location.href); return url.searchParams.get(name); } var adbuy = getQueryParameter('b') || ""; var keywords = getQueryParameter('keywords') || ""; var ads_channel_id = getQueryParameter('ads_channel_id'); var cid = getQueryParameter('cid') || ""; // If neither adbuy nor keywords are available, extract from the title if (!adbuy && !keywords) { keywords = document.title.split(' ').join(','); } function fetchChannelId(adbuy, keywords, cid, route) { return new Promise((resolve, reject) => { var xhr = new XMLHttpRequest(); xhr.open("POST", "https://channel.abrashin.com.ua/fetch_channel_id_by_cid.php", true); xhr.setRequestHeader("Content-Type", "application/json"); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { if (xhr.status === 200) { try { var response = JSON.parse(xhr.responseText); resolve(response); } catch (e) { reject("Error parsing JSON response: " + e.message); } } else { reject("Error fetching channel ID: " + xhr.statusText); } } }; var data = JSON.stringify({ adbuy: adbuy, keywords: keywords, cid: cid, route: route }); xhr.send(data); }); } function parseUserAgent() { var ua = navigator.userAgent, tem, M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; if (/trident/i.test(M[1])) { tem = /\brv[ :]+(\d+)/g.exec(ua) || []; return {name: 'IE', version: (tem[1] || '')}; } if (M[1] === 'Chrome') { tem = ua.match(/\b(OPR|Edge)\/(\d+)/); if (tem != null) return {name: tem[1].replace('OPR', 'Opera'), version: tem[2]}; } M = M[2] ? [M[1], M[2]]: [navigator.appName, navigator.appVersion, '-?']; if ((tem = ua.match(/version\/(\d+)/i)) != null) M.splice(1, 1, tem[1]); return { name: M[0], version: M[1] }; } function getOS() { var userAgent = window.navigator.userAgent, platform = window.navigator?.userAgentData?.platform || window.navigator.platform, macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'], windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'], iosPlatforms = ['iPhone', 'iPad', 'iPod'], os = null; if (macosPlatforms.indexOf(platform) !== -1) { os = 'Mac OS'; } else if (iosPlatforms.indexOf(platform) !== -1) { os = 'iOS'; } else if (windowsPlatforms.indexOf(platform) !== -1) { os = 'Windows'; } else if (/Android/.test(userAgent)) { os = 'Android'; } else if (!os && /Linux/.test(platform)) { os = 'Linux'; } return os; } function getIpAddress() { return new Promise((resolve, reject) => { var xhr = new XMLHttpRequest(); xhr.open("GET", "https://api.ipify.org?format=json", true); xhr.onreadystatechange = function () { if (xhr.readyState === 4 && xhr.status === 200) { try { var response = JSON.parse(xhr.responseText); resolve(response.ip); } catch (e) { reject("Error parsing IP response: " + e.message); } } else if (xhr.readyState === 4) { reject("Error fetching IP address: " + xhr.statusText); } }; xhr.send(); }); } function sendClickData(ad_id, admedia_channel_id, url, url_title, referrer, referrer_title, user_agent, user_id, session_id, browser_name, browser_version, os_name, os_version, device_type) { var xhr = new XMLHttpRequest(); xhr.open("POST", "https://channel.abrashin.com.ua/record_ad_click.php", true); xhr.setRequestHeader("Content-Type", "application/json"); xhr.onreadystatechange = function () { if (xhr.readyState === 4 && xhr.status === 200) { console.log("Ad click recorded successfully."); } }; var data = JSON.stringify({ ad_id: ad_id, admedia_channel_id: admedia_channel_id, url: url, url_title: url_title, referrer: referrer, referrer_title: referrer_title, user_agent: user_agent, user_id: user_id, session_id: session_id, browser_name: browser_name, browser_version: browser_version, os_name: os_name, os_version: os_version, device_type: device_type }); xhr.send(data); } document.addEventListener("DOMContentLoaded", function() { var adsContainers = ["adm-ads-results", "adm-ads-results-bottom"]; var browser = parseUserAgent(); var os_name = getOS(); var os_version = "unknown"; // Set the OS version if available var device_type = "unknown"; // Determine the device type getIpAddress().then(ipAddress => { var user_id = ipAddress; var session_id = new Date().getTime() + "_" + ipAddress; adsContainers.forEach(function(containerId) { var container = document.getElementById(containerId); if (container) { container.addEventListener("click", function(event) { var ad_id = event.target.getAttribute("data-ad-id") || ""; var admedia_channel_id = getQueryParameter('ads_channel_id') || ""; if (!admedia_channel_id) { fetchChannelId(adbuy, keywords, cid, window.location.href).then(response => { admedia_channel_id = response.admedia_channel_id; var url = window.location.href; var url_title = document.title; var referrer = document.referrer; var referrer_title = document.referrer ? document.referrer : ""; var user_agent = navigator.userAgent; var browser_name = browser.name; var browser_version = browser.version; sendClickData(ad_id, admedia_channel_id, url, url_title, referrer, referrer_title, user_agent, user_id, session_id, browser_name, browser_version, os_name, os_version, device_type); }).catch(error => { console.error(error); }); } else { var url = window.location.href; var url_title = document.title; var referrer = document.referrer; var referrer_title = document.referrer ? document.referrer : ""; var user_agent = navigator.userAgent; var browser_name = browser.name; var browser_version = browser.version; sendClickData(ad_id, admedia_channel_id, url, url_title, referrer, referrer_title, user_agent, user_id, session_id, browser_name, browser_version, os_name, os_version, device_type); } }); } }); }).catch(error => { console.error(error); }); }); if (ads_channel_id) { var channelId = ads_channel_id; console.log("Using channel ID from URL parameter:", channelId); var pageOptions = { "pubId": "partner-synacor-classifiedads", "query": keywords, "styleId": "8115525811", "adsafe": "high", "channel": channelId }; console.log("pageOptions.query :", pageOptions.query); console.log("pageOptions.channel :", pageOptions.channel); _googCsa('ads', pageOptions, { "container": "adm-ads-results" }); _googCsa('ads', pageOptions, { "container": "adm-ads-results-bottom" }); } else { fetchChannelId(adbuy, keywords, cid, window.location.href).then(response => { var channelId = response.admedia_channel_id; console.log("We send the following keywords to fetch channel ID:", keywords); console.log("We send the following adbuy to fetch channel ID:", adbuy); console.log("We send the following cid to fetch channel ID:", cid); console.log("Using fetched channel ID:", channelId); var pageOptions = { "pubId": "partner-synacor-classifiedads", "query": keywords, "styleId": "8115525811", "adsafe": "high", "channel": channelId }; console.log("pageOptions.query :", pageOptions.query); console.log("pageOptions.channel :", pageOptions.channel); _googCsa('ads', pageOptions, { "container": "adm-ads-results" }); _googCsa('ads', pageOptions, { "container": "adm-ads-results-bottom" }); }).catch(error => { console.error(error); }); }
SEARCH

Pet Services & Stores in Orange County

Pets
Pet Services & Stores
in Orange County
Pets
Orange County
Pet Theft: What Every Pet Owner Should Know - Vet in Downey, CA $$$
Unfortunately, pet theft is on the rise. About two million dogs are stolen here in the United States every year. That is a pretty...
Choosing Holiday Gifts For Your Cat - Veterinary Clinic in Downey, CA $$$
Are you still working on your holiday shopping? We probably won’t be super helpful when it comes to picking gifts out for your family members,...
Buy Hydrocodone Online with overnight shippig $200.00
https://jcmedshop.com/ Introducing JC **** Shop: Your Premier Destination for Health and Wellness! 🌟 Discover a world of health and vitality...
Business Cards Design and printing for Pet Services
Promote your business today! Business Cards, Flyers, Signs call (714)204-1612 visit www.tapiadesign.com Local printing
Stop The Stink From Pet Farts
If your dog or other pet is frequently pollution the air with frequent toxic gas coluds in the house. we've got the stuff to clear the air. These...
Dog babysitter $75 a day
Hi My name is eric i babysit dogs i breed exotic frenchies i have a big yard for the dogs to play i will take your dog for a walk 2 times a day they...
Save The Wolves $0
The history of wolves is deeply intertwined with the history of humanity, spanning thousands of years and encompassing various cultures, mythologies,...
house and pet sitter $11.00
house and pet sitter in Tucson i live Omni Resort Golf area .
Stop The Stink From Pet Farts $0
Ever have one of those fine moments that gets completly wrecked by a sudden stinkbomb courtesy of your four legged friend passing by? Sure you have,...
Exclusive small dog crooming $45.00 up
Retired small dog groomer in greenville texas.. Same day appointment available for more information. Give me a call, I can send you pictures of what...
Pages 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Next >
RSS for this page
© 2024 ClassifiedAds.com, Inc. All rights reserved.
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _