viewAd
Description: This method returns the ad in either XML or full HTML.
Usage: This method is used to create a "job details" page, the "job details" page displays the full ad and provides candidates with the ability to apply for the ad if they wish.
Parameters:
- jobAdId / Integer / True - Ad to return, this ID is received from the searchAdsV2 method and can be found in the JobPosting elements ad_id attribute.
- params / String or JSON object / True - A JSON object of additional parameters based on reserved keywords:
- format / String / False - Format to return the ad in accepted values are XML and HTML if this is not provided, defaults to HTML
- applicationUrl / String / False - If you wish to re-implement the application process or override the system default application form, provide a URL to your form here.
Example Request (XML):
<viewAd>
<jobAdId>6656944</jobAdId>
<params>{"format":"xml"}</params>
</viewAd>
Example response (XML):
<JobPosting ad_id="6656944" advertiserId="10000" distribution="E"
hotJob="false" reference="wowsuchnetworkengineer" template="demoRecruitment">
<PlacedBy>
<Brand>ABC Personnel Pty Limited</Brand>
<Office>ABC Personnel Pty Limited</Office>
<Account>SUPPLY_BY_CLIENT_USE_TAGS</Account>
</PlacedBy>
<JobTitle><![CDATA[Top Notch Network Engineer | Sydney CBD - Edit from ad]]]]>><![CDATA[</JobTitle>
<adFooter><![CDATA[<center>To apply 7777777, please click on the appropriate link below. Alternatively, for a confidential discussion, please contact Apple Developer Test on , quoting Ref No. wowsuchnetworkengineer.</center><p> </p>]]]]>><![CDATA[</adFooter>
<JobDescription><![CDATA[<p>We're looking for a <strong>top</strong> <em>notch</em> network engineer</p>]]]]>><![CDATA[</JobDescription>
<SearchHeadline><![CDATA[Top Notch Network Engineer | Sydney CBD - Edit from ad]]]]>><![CDATA[</SearchHeadline>
<SearchSummary><![CDATA[We're looking for the most kickass network engineer ever. If you've got atleast 5 years of experience and know how to Linux and Java]]]]>><![CDATA[</SearchSummary>
<BulletPoints>
<BulletPoint><![CDATA[great transport]]]]>><![CDATA[</BulletPoint>
<BulletPoint><![CDATA[bullet32]]]]>><![CDATA[</BulletPoint>
<BulletPoint><![CDATA[aa]]]]>><![CDATA[</BulletPoint>
</BulletPoints>
<Enquiry>
<Phone/>
<Email>chrisa@adlogic.com.au</Email>
<ApplicationURL>https://clientapplications.myrecruitmentplus.com/applicationform/?jobAdId=6656944</ApplicationURL>
<Name>Apple Developer Test</Name>
<ConsultantEmail>chrisa@adlogic.com.au</ConsultantEmail>
<ConsultantImage><![CDATA[]]]]>><![CDATA[</ConsultantImage>
</Enquiry>
<standOut>
<logoURL><![CDATA[http://rms.adlogic.com.au/recruiter_skin/demoRecruitmentlogos/demoRecruitmentlogo.png]]]]>><![CDATA[</logoURL>
<BulletPoints>
<BulletPoint><![CDATA[great transport]]]]>><![CDATA[</BulletPoint>
<BulletPoint><![CDATA[bullet32]]]]>><![CDATA[</BulletPoint>
<BulletPoint><![CDATA[aa]]]]>><![CDATA[</BulletPoint>
</BulletPoints>
</standOut>
<locations>
<location id="54278"><![CDATA[Australia - NSW]]]]>><![CDATA[</location>
<location id="54279"><![CDATA[Sydney]]]]>><![CDATA[</location>
<location id="54280"><![CDATA[CBD, Inner West & Eastern Suburbs]]]]>><![CDATA[</location>
</locations>
<classifications>
<classification id="54098"><![CDATA[Information & Communication Technology]]]]>><![CDATA[</classification>
<classification id="54110"><![CDATA[Networks & Systems Administration]]]]>><![CDATA[</classification>
</classifications>
<workType id="54462">Full Time</workType>
<Salary>
<salaryMinimum><![CDATA[90000]]]]>><![CDATA[</salaryMinimum>
<salaryMaximum><![CDATA[105000]]]]>><![CDATA[</salaryMaximum>
<salaryRate><![CDATA[AnnualPackage]]]]>><![CDATA[</salaryRate>
<salaryAdditionalText><![CDATA[h]]]]>><![CDATA[</salaryAdditionalText>
</Salary>
<AdStatus><![CDATA[]]]]>><![CDATA[</AdStatus>
<PublishedDate>2016-05-31 21:20:23</PublishedDate>
<closeDate>2016-06-29 21:20:23</closeDate>
<Subheading><![CDATA[subheading]]]]>><![CDATA[</Subheading>
<OrganisationalUnit id="2930"/>
</JobPosting>
Example response (HTML):
<AdHTML>
<![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<script type='text/javascript'>
var jobURL='https://clientapplications.myrecruitmentplus.com/applicationform/?jobAdId=6656944';
var mailURL='http://rms.adlogic.com.au/application/SendAdToFriend.jsp?jobAdId=6656944';
function openApplicationForm() {
(function($) {
if (jobURL.indexOf('http://rms.adlogic.com.au/smejobsearch/jsponly/SubmitJobApplication.jsp') == 0) {
if (typeof (adlogicApplyJobDimensions) != 'object') {
adlogicApplyJobDimensions = {
height : '400',
width : '680'
};
}
$('#applyJobPopup').find('iframe#jobFrameId').height(adlogicApplyJobDimensions.height-150);
$('#applyJobPopup').find('iframe#jobFrameId').width(adlogicApplyJobDimensions.width-20);
$("#applyJobPopup").dialog("option", adlogicApplyJobDimensions);
$("#applyJobPopup").dialog("open");
} else {
//window.location.href = jobURL;
window.location.href = jobURL +'&referrer='+encodeURIComponent(window.location.href);
}
})(jQuery);
}
function openEmailToFriendForm() {
(function($) {
if (typeof (adlogicEmailToFriendDimensions) != 'object') {
adlogicEmailToFriendDimensions = {
height : '400',
width : '680'
};
}
$('#emailFriendPopup').find('iframe#mailFrameId').height(adlogicEmailToFriendDimensions.height-150);
$('#emailFriendPopup').find('iframe#mailFrameId').width(adlogicEmailToFriendDimensions.width-20);
$("#emailFriendPopup").dialog("option", adlogicEmailToFriendDimensions);
$("#emailFriendPopup").dialog("open");
})(jQuery);
}
function initializePopFrame() {
jQuery(document).ready(function($) {
$('#applyJobPopup').dialog({
title : "Application Form",
modal : true,
resizable : true,
autoOpen : false,
width : 680,
height : 400,
beforeClose : function(event, ui) {
$(this).dialog('destroy');
setJobFrameURL();
initializePopFrame();
},
resize: function(ev, el) {
$(this).find('iframe#jobFrameId').height($(this).height()-40);
$(this).find('iframe#jobFrameId').width($(this).width());
},
buttons : {
'Close' : function() {
$('#applyJobPopup').dialog('close');
}
}
});
});
}
function initEmailFriendPopFrame() {
jQuery(document).ready(function($) {
$('#emailFriendPopup').dialog({
title : "Email to a Friend",
modal : true,
resizable : true,
autoOpen : false,
width : 680,
height : 400,
beforeClose : function(event, ui) {
$(this).dialog('destroy');
setMailFrameURL();
initEmailFriendPopFrame();
},
resize: function(ev, el) {
$(this).find('iframe#mailFrameId').height($(this).height()-40);
$(this).find('iframe#mailFrameId').width($(this).width());
},
buttons : {
'Close' : function() {
$('#emailFriendPopup').dialog('close');
}
}
});
});
}
jQuery(document).ready(function($) {
initializePopFrame();
initEmailFriendPopFrame();
});
function closeApplicationForm() {
(function($) {
$("#applyJobPopup").dialog("close");
})(jQuery);
}
function closeEmailForm() {
(function($) {
$("#emailFriendPopup").dialog("close");
});
}
function setJobFrameURL() {
(function($) {
$("#jobFrameId").attr("src", jobURL);
return false;
});
}
function setMailFrameURL() {
(function($) {
$("#mailFrameId").attr("src", mailURL);
return false;
});
}
function goBack() {
window.history.back();
}
</script>
<title>Job Opportunity | Top Notch Network Engineer | Sydney CBD - Edit from ad | ABC Personnel Pty Limited</title> <link rel="stylesheet" href="/recruiter_skin/demoRecruitment/template/demoRecruitment/style.css" type="text/css"> <meta property="og:title" content="Job Opportunity | Top Notch Network Engineer | Sydney CBD - Edit from ad | ABC Personnel Pty Limited" /> <meta name="description" content="We're looking for the most kickass network engineer ever. If you've got atleast 5 years of experience and know how to Linux and Java" /></head><body class="adlogic_job_details_body"> <!-- BEGIN JOB DETAILS CONTAINER DIV --> <div class="adlogic_job_details_container demo_recruitment"> <div class="adlogic_recruiter_logo"></div> <div class="adlogic_job_details_inner"> <h1 class="adlogic_job_details_title">Top Notch Network Engineer | Sydney CBD - Edit from ad</h1> <ul class="adlogic_job_details_bullet_ul"> <li>great transport</li> <li>bullet32</li> <li>aa</li> </ul> <div class="adlogic_job_details_description"><p>We're looking for a <strong>top</strong> <em>notch</em> network engineer</p></div> <div class="adlogic_job_attachments"> <div class="adlogic_attachment_header">Recruitment Kit:</div> <div class="adlogic_attached_files"><table style="border:0px;"><tr><td class="attachment" style="border:0px;"><b>Job File 1 : </b><a href="http://rms.adlogic.com.au/smejobsearch/jsponly/downloadFile.jsp?fileName=testresumeXqqNm.txt">file1 </a></td></tr><tr><td class="attachment" style="border:0px;"><b>Job File 2 : </b><a href="http://rms.adlogic.com.au/smejobsearch/jsponly/downloadFile.jsp?fileName=testresumePsqNm.txt">file2</a></td></tr><tr><td class="attachment" style="border:0px;"><b>Job File 3 : </b><a href="http://rms.adlogic.com.au/smejobsearch/jsponly/downloadFile.jsp?fileName=templatehooks.txt">file3</a></td></tr></table></div> </div> <p><div class="adlogic_job_details_footer"><center>To apply 7777777, please click on the appropriate link below. Alternatively, for a confidential discussion, please contact Apple Developer Test on , quoting Ref No. wowsuchnetworkengineer.</center><p> </p></div></p> <!-- BEGIN SOCIAL SHARING HOLDER --> <div class="adlogic_social_sharing_container"> <div class="ajb_social_sharing_sites"> <div class="ajb_social_sharing_site"> <span class="st_twitter_large" st_title="Top Notch Network Engineer | Sydney CBD - Edit from ad" st_summary="We're looking for the most kickass network engineer ever. If you've got atleast 5 years of experience and know how to Linux and Java"></span> </div> <div class="ajb_social_sharing_site"> <span class="st_facebook_large" st_title="Top Notch Network Engineer | Sydney CBD - Edit from ad" st_summary="We're looking for the most kickass network engineer ever. If you've got atleast 5 years of experience and know how to Linux and Java"></span> </div> <div class="ajb_social_sharing_site"> <span class="st_linkedin_large" st_title="Top Notch Network Engineer | Sydney CBD - Edit from ad" st_summary="We're looking for the most kickass network engineer ever. If you've got atleast 5 years of experience and know how to Linux and Java"></span> </div> <div class="ajb_social_sharing_site"> <span class="st_sharethis_large" st_title="Top Notch Network Engineer | Sydney CBD - Edit from ad" st_summary="We're looking for the most kickass network engineer ever. If you've got atleast 5 years of experience and know how to Linux and Java"></span> </div> </div> </div> <script src="https://ws.sharethis.com/button/buttons.js" type="text/javascript"></script> <script type="text/javascript">stLight.options({publisher : '152ef02e-0737-4a2f-82d1-0ef6aa8cdf9f',offsetTop : '150'});</script> <!-- END SOCIAL SHARING HOLDER --> <div class="adlogic_job_details_button_bar"> <div id="adlogic_sharing_options"> <div class="print-job"><a href="javascript:window.print();">Print this job</a></div> <div class="email-job"><a href="javascript:openEmailToFriendForm();" id="emailThisjob">Email this job</a> <a id="openEmailToFriend" data-toggle="modal" data-target="#emailToFriend" style="display: none;">Email this job</a></div> </div> <div class="adlogic_apply_container"><button class="adlogic_job_details_apply" onclick="javascript:openApplicationForm()">Apply Now</button></div> <button class="adlogic_job_details_email_friend" onclick="javascript:openEmailToFriendForm()">Email to a Friend</button> <button class="adlogic_job_details_back" onclick="javascript:window.history.back();">Back To Search Results</button> </div> </div> </div>
<div id="applyJobPopup" style="display:none"><center><iframe id="jobFrameId" src="https://clientapplications.myrecruitmentplus.com/applicationform/?jobAdId=6656944" frameborder="0" width="600" height="900"></iframe></center></div>
<div id="emailFriendPopup" style="display:none"><center><iframe id="mailFrameId" src="http://rms.adlogic.com.au/application/SendAdToFriend.jsp?jobAdId=6656944" frameborder="0" width="580" height="280"></iframe></center></div>
</body>
</html> ]]]]>><![CDATA[
</AdHTML>