Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PBM should not save the bid if targeting keys are not returned from server #93

Merged
merged 4 commits into from Aug 16, 2018

Conversation

anwzhang
Copy link
Contributor

No description provided.

adServerTargetingCopy[cacheIdkey] = bidderCacheId;
PBBidResponse *bidResponse = [PBBidResponse bidResponseWithAdUnitId:adUnitId adServerTargeting:adServerTargetingCopy];
PBLogDebug(@"Bid Successful with rounded bid targeting keys are %@ for adUnit id is %@", [bidResponse.customKeywords description], adUnitId);
[bidResponsesArray addObject:bidResponse];
}
[delegate didReceiveSuccessResponse:bidResponsesArray];;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are u sending didReceiveSuccessResponse when targeting keys are nil?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check out the full code. I'm not sending didReceiveSuccessResponse when targeting keys are nil, that's inside bid response retrieval.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again questioning... why would u send success if this bidResponsesArray is nil or empty?

adServerTargetingCopy[cacheIdkey] = bidderCacheId;
PBBidResponse *bidResponse = [PBBidResponse bidResponseWithAdUnitId:adUnitId adServerTargeting:adServerTargetingCopy];
PBLogDebug(@"Bid Successful with rounded bid targeting keys are %@ for adUnit id is %@", [bidResponse.customKeywords description], adUnitId);
[bidResponsesArray addObject:bidResponse];
}
[delegate didReceiveSuccessResponse:bidResponsesArray];;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again questioning... why would u send success if this bidResponsesArray is nil or empty?

adServerTargetingCopy[cacheIdkey] = bidderCacheId;
PBBidResponse *bidResponse = [PBBidResponse bidResponseWithAdUnitId:adUnitId adServerTargeting:adServerTargetingCopy];
PBLogDebug(@"Bid Successful with rounded bid targeting keys are %@ for adUnit id is %@", [bidResponse.customKeywords description], adUnitId);
[bidResponsesArray addObject:bidResponse];
}
[delegate didReceiveSuccessResponse:bidResponsesArray];;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the extra ;...

@anwzhang anwzhang merged commit 2cdaf68 into master Aug 16, 2018
@anwzhang anwzhang deleted the handle_enableSendAllBids branch August 16, 2018 18:35
olafbuitelaar pushed a commit to olafbuitelaar/prebid-mobile-ios that referenced this pull request Dec 25, 2018
PBM should not save the bid if targeting keys are not returned from server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants