You are viewing our old blog site. For latest posts, please visit us at the new space. Follow our publication there to stay updated with tech articles, tutorials, events & more.

Naukri’s JobsAdNetwork – Dynamic campaigning made easy

0.00 avg. rating (0% score) - 0 votes
 “Automation applied to an efficient operation will magnify the efficiency”. With this moto JobsAdNetwork was picked up.
We had our team doing marketing via Ads. And they had been doing that manually.
Process took a no of steps for each Ad to be posted
– Decide type of ad.
– Template design.
– Linking to our website (different urls).
– Posting group Ads (Multiple links in single Ad) was more difficult.
Due to the manual process involved the team was able to post very few ads. Also these ads were very generic in nature.
So we thought, why shouldn’t we simplify things and automate this process. We wanted to make things very simple.We finally build a system wherein a user can create configurable number of ads in a single shot.
We used Adwords API and PHPExcel to build the system.
Finally we ended up creating a system wherein a user sould enter some details like
Headline , Url , Template image in an excel sheet and upload it
User could get the status in reponse excel sheet
Response sheet specifies the status as well as size of ads as per the image.
Some Insights –
– Adwords Api’s exposed by google uses SOAP (Simple Object Access Protocol) to post Ads. We integrated this in our system. It provided support to buid Textual , Template as well as Banner Ads.
– Using PHPExcel we parsed the excel sheet to derive details. PHPExcel is php library which can be used to parse and fetch details from a .xlsx or .xls sheet.. We used it to fetch requirements from the input file. Post creation of Ads output file was written with status.
Challenge and Solution-
We had to reverse enginner things here as SOAP xml generated for the call was very big. and creating it would have been very expensive. Though Google library provided an interface to genarate SOAP xml, to verify and debug if SOAP xml was perfect was a very tedeous and time taking task. Towards the solution, we serialised and saved the object. Rather then creating an object and setting each and every details, only changes which were required were updated in the saved object.
We could specify every detail via Adwords interface which inturn would generate SOAP xml –
Below is a sample implementation of Google Ads Interface
$user = new AdWordsUser();
$adGroupAdService = $user->GetService(‘AdGroupAdService’, ‘v201109’);
$templateAd = new TemplateAd();
$templateAd->templateId = 190;
$templateAd->dimensions = new Dimensions(300, 250);
$templateAd->name = ‘ – Pharma Jobs’;
$templateAd->displayUrl = ‘’;
$templateAd->url = ‘’;
$startImage = new Image();
$startImage->data = MediaUtils::GetBase64Data(‘’);
$startImage->type = ‘IMAGE’;
$operations = array();
$adGroupAd = new AdGroupAd();
$adGroupAd->adGroupId = $adGroupId;
$adGroupAd->ad = $templateAd;
$operation = new AdGroupAdOperation();
$operation->operand = $adGroupAd;
$operation->operator = ‘ADD’; // We can set operation whether it is ADD or DELETE operations
$operations[] = $operation;
// We can add multiple operations in a single call
$result = $adGroupAdService->mutate($operations);
A part of SOAP xml which is generated which represents details of the Ad like – template details, landing page etc.

Image section –

    <fieldMedia xsi:type=”Image”>
URL Part –
Font Details
        <fieldText>Key Accnt Manager -High end Antibiotics</fieldText>
Some Sample Ads
ad-network4 ad-network5
What we achieved –
  • Automated process for creation of Ads
  • Earlier only 3-4 ads were created in a day, now we are able to create numerous ads is a single call
  • Now we are able to target specific and latest jobs instead of generic Search Results Page
  • We can target multiple Jobs using single Ad.
Posted in Web Technology