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

ADS: Implement multi-distribution search engine targeting support.

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Mercury
    • Fix Version/s: Mercury
    • Labels:
      None
    • Sprint:
      Sprint 7, Sprint 8, Sprint 9
    • Epic Link:

      Description

      BusinessLocationServiceBD.java

      Currently it's hard-coded to two distributions.

      public ISearchEngineLocationTarget getSearchEngineLocationTarget(int aBusinessLocationID, Distribution aDistribution) {
      ISearchEngineLocationTarget ret = null;

      switch (aDistribution)

      { case YahooJapan: ret = theBusinessLocationDAO.getYahooJapanLocationTargetByLocationID(aBusinessLocationID); break; case Google: ret = theBusinessLocationDAO.getGoogleLocationTargetByLocationID(aBusinessLocationID); break; default: throw new UnsupportedOperationException("Attempt to look up location target for unsupported distribution [" + aDistribution + "]"); }

      if (ret == null) {
      LOG.info("No target found for BL [{}], distribution [{}]", aBusinessLocationID, aDistribution);
      ret = new GoogleLocationTarget();
      }

      return ret;
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sanjaykumar.biswal Sanjay Kumar Biswal
                Reporter:
                therouxj Jeff Theroux
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: