Skip to content

Commit

Permalink
Added prefix dma_ in constants and moved DMA params to user_data for …
Browse files Browse the repository at this point in the history
…/v2/events
  • Loading branch information
NidhiDixit09 committed Feb 7, 2024
1 parent efe70e0 commit a14a3d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions BranchSDK/BNCRequestFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ - (NSDictionary *)dataForEventWithEventDictionary:(NSMutableDictionary *)diction
// TODO: refactor to simply request values for event
[self addReferringURLsToJSON:json forEndpoint:@"/v2/event"];

// Add DMA Compliance Params for Google
[self addDMAConsentParamsToJSON:json];

return json;
}
Expand Down Expand Up @@ -560,6 +558,9 @@ - (NSDictionary *)v2dictionary {
dictionary[@"sdk"] = @"ios";
}

// Add DMA Compliance Params for Google
[self addDMAConsentParamsToJSON:dictionary];

return dictionary;
}

Expand Down
6 changes: 3 additions & 3 deletions BranchSDK/BranchConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
NSString * const BRANCH_REQUEST_KEY_VALUE_POSTBACK_SEQUENCE_INDEX_1 = @"postback-sequence-index-1";
NSString * const BRANCH_REQUEST_KEY_VALUE_POSTBACK_SEQUENCE_INDEX_2 = @"postback-sequence-index-2";

NSString * const BRANCH_REQUEST_KEY_EEA_REGION = @"eea_region";
NSString * const BRANCH_REQUEST_KEY_AD_PEROSALIZATION_CONSENT = @"ad_personalization_consent";
NSString * const BRANCH_REQUEST_KEY_AD_USER_DATA_USAGE_CONSENT = @"ad_user_data_usage_consent";
NSString * const BRANCH_REQUEST_KEY_EEA_REGION = @"dma_eea_region";
NSString * const BRANCH_REQUEST_KEY_AD_PEROSALIZATION_CONSENT = @"dma_ad_personalization_consent";
NSString * const BRANCH_REQUEST_KEY_AD_USER_DATA_USAGE_CONSENT = @"dma_ad_user_data_usage_consent";

0 comments on commit a14a3d7

Please sign in to comment.