Skip to content

Native didPayRevenueForAd failing with timeout error for the Native Ads #396

@jesphinpt

Description

@jesphinpt

MAX SDK Version

13.0.0

Device/Platform Info

iOS

Current Behavior

When I am trying to send the details to my Analytics it fails with the below error

- (void)didPayRevenueForAd:(MAAd *)impressionData {
  [FIRAnalytics logEventWithName:kFIREventAdImpression // ad_impression
                    parameters: @{
                        kFIRParameterAdPlatform: @"AppLovin",
                        kFIRParameterAdSource: (impressionData.networkName,
                        kFIRParameterAdFormat: impressionData.format.label,
                        kFIRParameterAdUnitName: impressionData.adUnitIdentifier,
                        kFIRParameterCurrency: @"USD", // All Applovin revenue is sent in USD
                        kFIRParameterValue: @(impressionData.revenue)
}];
}
Task <A80D2578-4367-46C7-9FC4-6DB6924DD205>.<23> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x6000034e4060 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <A80D2578-4367-46C7-9FC4-6DB6924DD205>.<23>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <A80D2578-4367-46C7-9FC4-6DB6924DD205>.<23>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://prod-mediate-events.applovin.com/1.0/event/load?id=62ef34a3129499eedbf679046dcf03cfb893d367&load_time_ms=22&postback_ts=1732174151133.385, NSErrorFailingURLKey=https://prod-mediate-events.applovin.com/1.0/event/load?id=62ef34a3129499eedbf679046dcf03cfb893d367&load_time_ms=22&postback_ts=1732174151133.385, _kCFStreamErrorDomainKey=4}

[AppLovinSdk] ERROR [ALConnectionManager] Encountered error during network request: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x6000034e4060 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <A80D2578-4367-46C7-9FC4-6DB6924DD205>.<23>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <A80D2578-4367-46C7-9FC4-6DB6924DD205>.<23>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://prod-mediate-events.applovin.com/1.0/event/load?id=62ef34a3129499eedbf679046dcf03cfb893d367&load_time_ms=22&postback_ts=1732174151133.385, NSErrorFailingURLKey=https://prod-mediate-events.applovin.com/1.0/event/load?id=62ef34a3129499eedbf679046dcf03cfb893d367&load_time_ms=22&postback_ts=1732174151133.385, _kCFStreamErrorDomainKey=4}
177927          HALC_ProxyIOContext.cpp:1346  HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
[AppLovinSdk] DEBUG [ALConnectionManager] -1001 received from #701745951933197450 "prod-mediate-events.applovin.com/1.0/event/load"
[AppLovinSdk] ERROR [ALConnectionManager] Failed POST returned -1001 in 16.548000 s over wifi to #701745951933197450 "prod-mediate-events.applovin.com/1.0/event/load". Response: (null)
[AppLovinSdk] WARN [ALTaskRepeatRequest] Unable to send request due to server failure (code -1001). 4 attempts left, retrying in 10.000000 seconds

Expected Behavior

It not sending my data because it failed for the Natvie Ads. Need to send the correct data without any error.

How to Reproduce

Add the native ad and the callback for revenue failed in the app.

Reproducible in the demo app?

Not Tested

Additional Info

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstaleThis isue has been inactive

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions