-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Server Side SDK configuration properties for Creative Facto…
…ry Timeout (#903) * feat: implement server-side creative factory timeout * feat: assign server-side ctf values only if they are not nil
- Loading branch information
1 parent
4ee7509
commit b377074
Showing
21 changed files
with
451 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/ORTB/Prebid/PBMORTBBidResponseExtPrebid.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Copyright 2018-2021 Prebid.org, Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#import "PBMORTBAbstract.h" | ||
#import "PBMORTBExtPrebidPassthrough.h" | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface PBMORTBBidResponseExtPrebid : PBMORTBAbstract | ||
|
||
@property (nonatomic, copy, nullable) NSArray<PBMORTBExtPrebidPassthrough *> *passthrough; | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
60 changes: 60 additions & 0 deletions
60
PrebidMobile/PrebidMobileRendering/Prebid/PBMCore/ORTB/Prebid/PBMORTBBidResponseExtPrebid.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* Copyright 2018-2021 Prebid.org, Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
#import "PBMORTBBidResponseExtPrebid.h" | ||
|
||
@implementation PBMORTBBidResponseExtPrebid | ||
|
||
- (instancetype)initWithJsonDictionary:(PBMJsonDictionary *)jsonDictionary { | ||
if (!(self = [super init])) { | ||
return nil; | ||
} | ||
|
||
NSArray * const passthroughDics = jsonDictionary[@"passthrough"]; | ||
_passthrough = nil; | ||
if (passthroughDics) { | ||
NSMutableArray * const newPassthrough = [[NSMutableArray alloc] initWithCapacity:passthroughDics.count]; | ||
for(PBMJsonDictionary *nextDic in passthroughDics) { | ||
PBMORTBExtPrebidPassthrough * const nextPassthrough = [[PBMORTBExtPrebidPassthrough alloc] initWithJsonDictionary:nextDic]; | ||
if (nextPassthrough) { | ||
[newPassthrough addObject:nextPassthrough]; | ||
} | ||
} | ||
if (newPassthrough.count > 0) { | ||
_passthrough = newPassthrough; | ||
} | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (PBMJsonDictionary *)toJsonDictionary { | ||
PBMMutableJsonDictionary * const ret = [[PBMMutableJsonDictionary alloc] init]; | ||
|
||
NSMutableArray * const passthroughDicArr = [[NSMutableArray alloc] initWithCapacity:self.passthrough.count]; | ||
for(PBMORTBExtPrebidPassthrough *nextPassthrough in self.passthrough) { | ||
[passthroughDicArr addObject:[nextPassthrough toJsonDictionary]]; | ||
} | ||
|
||
if (passthroughDicArr.count > 0) { | ||
ret[@"passthrough"] = passthroughDicArr; | ||
} | ||
|
||
[ret pbmRemoveEmptyVals]; | ||
|
||
return ret; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.