Skip to content

Commit

Permalink
Merge pull request #51 from ddxv/add-category-title
Browse files Browse the repository at this point in the history
Added a category title for clarity
  • Loading branch information
ddxv authored Mar 26, 2024
2 parents 02062e1 + a5052ae commit cc6da98
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PageServerLoad } from './$types';

export const load: PageServerLoad = async ({ parent }) => {
const { trackers, networks } = await parent();
return { trackers, networks };
const { trackers, networks, mycats } = await parent();
return { trackers, networks, mycats };
};
35 changes: 26 additions & 9 deletions frontend/src/routes/(categorical)/adtech/[type]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</svelte:head>

<div class="card p-2 px-4 md:px-16">
<h3 class="h4 md:h3 p-4">Third Party Mobile Ad Tech Partners</h3>
<h2 class="h4 md:h3 p-4">Third Party Mobile Ad Tech Partners</h2>

<p class="p-4">
These ad networks and tracker integrations are crawled for the top ~11k Android apps based on
Expand All @@ -47,15 +47,37 @@
you have any trackers or networks you'd like to see added feel free to reach out and they can be
added.
</p>

<AdtechNav></AdtechNav>

{#if entityGroup === 'networks'}
<p class="p-4">
Ad Networks will require an SDK to be used to manage the serving of their ads. AppGoblin is
scanning apps to get an idea of which apps use which networks.
</p>
{/if}
{#if entityGroup === 'trackers'}
<p class="p-4">
Tracking users in apps for marketing purposes is much harder in apps than on the regular web.
Therefor most apps use other services embedded in their APKs to track users.
</p>
{/if}

<AdtechNav></AdtechNav>

{#await data.mycats}
waiting for data...
{:then cats}
{#each Object.entries(cats.categories) as [_prop, values]}
{#if values.id == $homeCategorySelection}
{#if entityGroup == 'networks'}
<h1 class="h2 p-4">Ad Networks, Category: {values.name}</h1>
{/if}
{#if entityGroup == 'trackers'}
<h1 class="h1 p-4">MMPs, Category: {values.name}</h1>
{/if}
{/if}
{/each}
{/await}

{#if entityGroup === 'networks'}
{#await data.networks}
Loading Ad Networks...
{:then networks}
Expand Down Expand Up @@ -84,11 +106,6 @@
{#await data.trackers}
Loading Ad Trackers...
{:then trackers}
<p class="p-4">
Tracking users in apps for marketing purposes is much harder in apps than on the regular
web. Therefor most apps use other services embedded in their APKs to track users.
</p>

{#if timeGroup === 'month'}
{#if granularityGroup === 'parents'}
<AdtechTable
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ export interface Company {
percent: number;
}



export interface TopCompaniesInfo {
status?: number;
error?: string;
Expand All @@ -166,6 +168,7 @@ export interface TopCompaniesInfo {
monthly_all_companies: CategoriesAdtech;
monthly_parent_companies: CategoriesAdtech;
}>;
mycats: Promise<CatData>
}

export interface AppFullDetail {
Expand Down

0 comments on commit cc6da98

Please sign in to comment.