Skip to content

Commit

Permalink
BVSDK 3.0.1 Release: Updates for context-aware product recommendation…
Browse files Browse the repository at this point in the history
… 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
Show file tree
Hide file tree
Showing 180 changed files with 6,779 additions and 2,690 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ script:
- cd ./Tests
- pod install
- cd ..
- xcodebuild test -workspace ./Tests/BVSDK.xcworkspace -scheme "BVSDK-Example" -configuration Debug -sdk iphonesimulator
- xcodebuild test -workspace ./Tests/BVSDK.xcworkspace -scheme "BVSDK-Tests" -configuration Debug -sdk iphonesimulator
2 changes: 1 addition & 1 deletion BVSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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]' }
Expand Down
152 changes: 82 additions & 70 deletions Examples/Advertising/BVAdvertising.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions Examples/Advertising/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
PODS:
- BVSDK/BVAdvertising (3.0.0):
- BVSDK/BVAdvertising (3.0.1):
- BVSDK/Core
- Google-Mobile-Ads-SDK (~> 7.6)
- BVSDK/BVAnalytics (3.0.0)
- BVSDK/Core (3.0.0):
- BVSDK/BVAnalytics
- BVSDK/Core (3.0.1)
- FontAwesomeKit/Core (2.2.0)
- FontAwesomeKit/FontAwesome (2.2.0):
- FontAwesomeKit/Core
Expand All @@ -21,7 +19,7 @@ EXTERNAL SOURCES:
:path: ../../

SPEC CHECKSUMS:
BVSDK: f37d98a73a490c3d406090c4c44d9247d615ae02
BVSDK: 99b137fcafebddece8f182e8a62fd29d5959e424
FontAwesomeKit: 025fd4dd1017fe4e3f8d47b03e024deedbb33cd4
Google-Mobile-Ads-SDK: 0290020329c61183c4685304264b73382bc49fb4
MBProgressHUD: c47f2c166c126cf2ce36498d80f33e754d4e93ad
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

58 changes: 38 additions & 20 deletions Examples/Advertising/TargetedAdsDemo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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;
}

Expand Down
Loading

0 comments on commit 929bddb

Please sign in to comment.