Skip to content

Commit

Permalink
[APD-XXX] Fix sync for amazon apps
Browse files Browse the repository at this point in the history
  • Loading branch information
NaLLiFFuNT committed Oct 17, 2023
1 parent 0ce8058 commit 8dd5c85
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/core/sync-apps/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ interface AdUnitTemplate extends Partial<AdMobAdUnit> {
}
}

enum CustomEventPlatform {
'ANDROID' = '12',
'IOS' = '13'
}
const CustomEventPlatform = {
[AppodealPlatform.IOS]: '13',
[AppodealPlatform.ANDROID]: '12',
// same as ANDROID
[AppodealPlatform.AMAZON]: '12'
};

enum PlatformGroup {
'IOS' = 1,
Expand Down Expand Up @@ -536,7 +538,7 @@ export class Sync {

// events
const createdCustomEvents = await this.getCustomEventsList();
const allEventEventsForAllApps:AdmobCustomEvent[] = createdCustomEvents[1].map(x=>getTranslator(AdmobCustomEventTranslator).decode(x) as AdmobCustomEvent)
const allEventEventsForAllApps:AdmobCustomEvent[] = (createdCustomEvents[1] || []).map(x=>getTranslator(AdmobCustomEventTranslator).decode(x) as AdmobCustomEvent)

// groups
this.createdGroupList = await this.getCreatedMediationGroup();
Expand Down

0 comments on commit 8dd5c85

Please sign in to comment.