Skip to content

Instantly share code, notes, and snippets.

@mohamedelkadi
mohamedelkadi / adtech-api-curl-examples.md
Last active October 27, 2025 16:03
Ad-Tech Banner API - cURL Examples: Complete cURL examples for testing ad-tech banner API endpoints including fetching banners, tracking clicks, and impressions

Ad-Tech Banner API - cURL Examples

This document provides cURL examples for testing the ad-tech banner API endpoints, including fetching banners, tracking clicks, and tracking impressions.

Base URL

http://localhost:8080/discovery-service/api/v1/adtech

1. Fetch Banners from Preview

@mohamedelkadi
mohamedelkadi / iOS_Simple_Gist.md
Created October 22, 2025 12:55
AdTech API - iOS Simple Guide (Corrected Response)

AdTech API - iOS Simple Guide

🚀 Quick Overview

This guide shows iOS engineers how to integrate with the AdTech API to fetch and display banners.


📡 Available APIs

@mohamedelkadi
mohamedelkadi / iOS_Simple_Gist.md
Created October 22, 2025 12:53
AdTech API - iOS Simple Guide

AdTech API - iOS Simple Guide

🚀 Quick Overview

This guide shows iOS engineers how to integrate with the AdTech API to fetch and display banners.


📡 Available APIs

@mohamedelkadi
mohamedelkadi / delete_keen_duplicate_events_service.rb
Last active April 5, 2022 09:49
the script used to delete the duplicated events we have in 'Loaded a Page' collection
module RakeTaskServices
class DeleteKeenDuplicateEventsService < ApplicationService
def initialize(collection_id, start_date: '01/12/2021', end_date: Date.today)
@collection_id = collection_id #collection id is the id of getro jobs collection.
@start_date = start_date.to_date
@end_date = end_date
end
def call
puts "Total events count for collection##{collection_id}: #{collection_events_count}"
### Keybase proof
I hereby claim:
* I am mohamedelkadi on github.
* I am molhm (https://keybase.io/molhm) on keybase.
* I have a public key ASDqCPFI5vZMsE9JAcx4njme5oGeCxTzI93v-Duu2xQ41Qo
To claim this, I am signing this object: