Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 1.3.0
-
Fix Version/s: 2.01
-
Component/s: Content Editor, Data Summarization
-
Labels:None
-
Sprint:Sprint 13, Sprint 14, Sprint 15, Sprint 16, Sprint 1 - Matunuck
Description
We should always read the user agent from the licensing.properties file. This is being done inconsistently in the class right now.
bidmgr/src/com/thesearchagency/searchengines/google/GoogleAdWordsAPI.java
protected AdWordsUser getAdwordsUser()
{
AdWordsUser ret = null;
String email = theUsername;
String password = thePassword;
String clientID = theCustomerID;
String developerToken = theAPIToken;
String userAgent = "The Search Agency";
...
protected void prepareService(Remote aService, boolean isResellerService)
{
if (aService instanceof Stub) {
Stub stub = (Stub)aService;
String namespace = API_NAMESPACE;
if (isResellerService)
{ namespace = getResellerNamespace(); } String email = theUsername;
String password = thePassword;
String developerToken = theAPIToken;
if (password == null)
{ email = getMCCEmail(); password = getMCCPassword(); }if (developerToken == null)
{ developerToken = getMCCDeveloperToken(); }String userAgent = getMCCUserAgent();