Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-610

GoogleAdWordsAPI doesn't read user agent from licensing.properties file

    Details

    • 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();

        Attachments

          Activity

            People

            • Assignee:
              indika Indika Rajakaruna (Inactive)
              Reporter:
              therouxj Jeff Theroux
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: