-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BVSDK 3.0.1 Release: Updates for context-aware product recommendation…
… API by product ids and product category. Other analytics improvements, performance and bug fixes.
- Loading branch information
Tim Kelly
committed
Mar 4, 2016
1 parent
78d1f81
commit 929bddb
Showing
180 changed files
with
6,779 additions
and
2,690 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
Pod::Spec.new do |s| | ||
s.name = "BVSDK" | ||
s.version = '3.0.0' | ||
s.version = '3.0.1' | ||
s.homepage = 'https://developer.bazaarvoice.com' | ||
s.license = { :type => 'Commercial', :text => 'See https://developer.bazaarvoice.com/API_Terms_of_Use' } | ||
s.author = { 'Bazaarvoice' => '[email protected]' } | ||
|
152 changes: 82 additions & 70 deletions
152
Examples/Advertising/BVAdvertising.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
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
61 changes: 0 additions & 61 deletions
61
Examples/Advertising/TargetedAdsDemo/AdDemoScreens/BannerDemoViewController.m
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
Examples/Advertising/TargetedAdsDemo/AdDemoScreens/NativeDemoViewController.h
This file was deleted.
Oops, something went wrong.
195 changes: 0 additions & 195 deletions
195
Examples/Advertising/TargetedAdsDemo/AdDemoScreens/NativeDemoViewController.m
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
// Copyright 2015 Bazaarvoice Inc. All rights reserved. | ||
// | ||
|
||
#import <BVSDK/BVSDK.h> | ||
#import <BVSDK/BVAdvertising.h> | ||
#import "AppDelegate.h" | ||
#import "RootViewController.h" | ||
|
@@ -22,31 +21,50 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( | |
|
||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | ||
|
||
// set up the BVAdsSDK with your clientId, and AdsPassKey | ||
[[BVSDKManager sharedManager] setClientId:@"apitestcustomer"]; // replace with your client name | ||
[[BVSDKManager sharedManager] setApiKeyShopperAdvertising:@"4qhps77enfpw3kghuu8wendy"]; // replace with your ads passkey | ||
[[BVSDKManager sharedManager] setLogLevel:BVLogLevelVerbose]; | ||
|
||
// set BVAdsSDK to staging for testing and development. | ||
[[BVSDKManager sharedManager] setStaging:NO]; | ||
|
||
/* | ||
Next, we have to tell BVAdsSDK about the user. See the github README for more discussion on how to create this user auth string. | ||
A user auth string would contain data in a query string format. For example: | ||
userid=Example&[email protected]&age=28&gender=female&facebookId=123abc | ||
The list of keys allowed in the query string are defined in BVUser.h. | ||
*/ | ||
|
||
// Example MD5 encoded auth string used | ||
[[BVSDKManager sharedManager] setUserWithAuthString:@"aa05cf391c8d4738efb4d05f7b2ad7ce7573657269643d4f6d6e694368616e6e656c50726f66696c65313226656d61696c3d6a61736f6e406a61736f6e2e636f6d"]; // pre-populated with a small profile interested in "pets", "powersports", "gamefish", and others -- for testing purposes. | ||
|
||
// set status bar color | ||
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO]; | ||
|
||
self.window.rootViewController = [self getRootViewController]; | ||
[self.window makeKeyAndVisible]; | ||
|
||
NSString *myClientId = nil; // INSERT YOUR CLIEND ID!!!! | ||
NSString *myShopperAdvertisingKey = nil; // INSERT YOUR SHOPPER ADVERTISING KEY!!! | ||
|
||
if (myClientId != nil && myShopperAdvertisingKey != nil){ | ||
|
||
// set up the BVAdsSDK with your clientId, and AdsPassKey | ||
[[BVSDKManager sharedManager] setClientId:myClientId]; | ||
[[BVSDKManager sharedManager] setApiKeyShopperAdvertising:myShopperAdvertisingKey]; | ||
[[BVSDKManager sharedManager] setLogLevel:BVLogLevelInfo]; | ||
|
||
// set BVAdvertising to staging for testing and development. | ||
[[BVSDKManager sharedManager] setStaging:YES]; | ||
|
||
/* | ||
Next, we have to tell BVSDK about the user. See the BVSDK wiki for more discussion on how to create this user auth string: https://github.com/bazaarvoice/bv-ios-sdk/wiki/BVSDK-UserAuthentication | ||
A user auth string would contain data in a query string format. For example: | ||
userid=Example&[email protected]&age=28&gender=female&facebookId=123abc | ||
*/ | ||
|
||
// Example MD5 encoded auth string used | ||
[[BVSDKManager sharedManager] setUserWithAuthString:@"aa05cf391c8d4738efb4d05f7b2ad7ce7573657269643d4f6d6e694368616e6e656c50726f66696c65313226656d61696c3d6a61736f6e406a61736f6e2e636f6d"]; // pre-populated with a small profile interested in "pets", "powersports", "gamefish", and others -- for testing purposes. | ||
} else { | ||
|
||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"BVSDK Not Configured" message:@"Make sure you have set your API Key and Client ID in AppDelegate.m. Please contact Bazaarvoice if you need an evaluation key." preferredStyle:UIAlertControllerStyleAlert]; | ||
|
||
UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { | ||
// completion | ||
exit(1); | ||
}]; | ||
|
||
[alert addAction:okAction]; | ||
|
||
[self.window.rootViewController presentViewController:alert animated:YES completion:^{ | ||
}]; | ||
|
||
} | ||
|
||
return YES; | ||
} | ||
|
||
|
Oops, something went wrong.