[ad_1]
Since 2006, CPAlead has paid out over $100,000,000 to mobile app and website developers in over 180 countries.
Our reputation as the #1 CPA and CPI marketplace is public and indisputable. Search TrustPilot, Facebook, Google Business, TopNetworks, or AffPaying for CPAlead and see for yourself what our publishers and advertisers say about us. Please don’t take our word for it.
function _publisher_submit()
document.getElementById("pub_login").submit();
function _advertiser_submit()
document.getElementById("advertiser_login").submit();
function _reload()
$('.g-recaptcha').each(function(index, el) var widget_id = grecaptcha.render(el, 'sitekey' : $(el).attr('data-sitekey'), 'theme' : $(el).attr('data-theme'), 'size' : $(el).attr('data-size'), 'callback' : $(el).attr('data-callback') ); );
window.fbAsyncInit = function() FB.init( appId : '1125309514197316', cookie : true, version : 'v2.5' ); ;
// Load the SDK asynchronously (function(d, s, id) var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "https://connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); (document, 'script', 'facebook-jssdk'));
gapi.load('auth2', function() auth2 = gapi.auth2.init( client_id: '888255071613-qbf5qe7lmuvts00pvdg0f2al83dq2av3.apps.googleusercontent.com', // Scopes to request in addition to 'profile' and 'email' //scope: 'additional_scope' ); );
$('.btn-google-login').click(function() { $(".loading").show(); var g_context = $(this).attr("data-context"); auth2.grantOfflineAccess('redirect_uri': 'postmessage').then(function(authResult) { if (authResult['code'])
authResult.form = "login"; authResult.context = g_context; $.getJSON( '/google/oauth.php', authResult, function(data)
if (data.status == "success")
if (g_context == "advertiser")
// TODO: Advertiser redirect. location.href = "https://www.cpalead.com/advertising/";
else
location.href = "https://www.cpalead.com/dashboard/";
else if (data.status == "fail")
$(".loading").hide(); swal(data.status_message);
);
}); });
[ad_2]
Source link