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

Bid Updater: maxCPC is not used when bid > budget > maxCPC

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Fuji
    • Fix Version/s: Fuji
    • Labels:
      None
    • Environment:

      Sapi – RC - Build 836
      Reseller UI – RC - Build 216
      Core – Build 254
      BidMgr – Build 487

    • Sprint:
      Sprint 10

      Description

      sebidupdater fails to update maxCPCBid value from com.thesearchagency.searchengines.yahoojapan.YahooJapanClient.props file

      I have default settings for testing
      com.thesearchagency.searchengines.yahoojapan.maxCPCBid.JPY=50000.00

      algorithm.properties file has
      com.thesearchagency.admax.algorithms.sabb.maxBid.yahoojapan.JPY=100000.00

      I run sebidupdater.sh script with the following values in admaxBids table

      accountID elementType elementID currentBid currentBidSetDate newBid newBidSetDate retryCount
      348 searchEngineAccount 4214 99900 2014-11-06 100000 2014-11-07 1
      348 searchEngineAccount 4215 99900 2014-11-06 100000 2014-11-07 1
      348 searchEngineAccount 4216 99900 2014-11-06 100000 2014-11-07 1
      348 searchEngineAccount 4217 99900 2014-11-06 100000 2014-11-07 1
      348 searchEngineAccount 4218 99900 2014-11-06 100000 2014-11-07 1
      348 searchEngineAccount 4219 99900 2014-11-06 100000 2014-11-07 1

      admaxSearchEngineAccountActualDailyBudgets has budget and actualSEbudget value set to 60000.

      Actual Result on running sebidupdater.sh
      newBid value gets updated to 60000 with retry count set to 1
      Error in log
      2014-11-07 13:02:43,661 [P1T1] DEBUG c.t.s.c.y.util.SoapClientHandler - REQUEST XML: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <RequestHeader xmlns="http://ss.yahooapis.jp/V5">
      <license>1327-7818-1693-5552</license>
      <apiAccountId>5567-7860-7473-8517</apiAccountId>
      <apiAccountPassword>MtFuj1 </apiAccountPassword>
      <accountId>586711</accountId>
      <onBehalfOfAccountId>5XjT8-vuyv-BNaDX-JKxi</onBehalfOfAccountId>
      <onBehalfOfPassword>TSATrialYahoo55</onBehalfOfPassword>
      </RequestHeader>
      </SOAP-ENV:Header>
      <soap:Body>
      <mutate xmlns="http://ss.yahooapis.jp/V5">
      <operations>
      <operator>SET</operator>
      <accountId>586711</accountId>
      <campaignId>849002</campaignId>
      <operand>
      <accountId>586711</accountId>
      <campaignId>849002</campaignId>
      <adGroupId>163380998</adGroupId>
      <bid xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ManualCPCAdGroupBid">
      <keywordMaxCpc>60000</keywordMaxCpc>
      </bid>
      </operand>
      </operations>
      </mutate>
      </soap:Body>
      </soap:Envelope>

      2014-11-07 13:02:43,662 [P1T1] INFO o.a.c.s.A.A.AdGroupServiceInterface - Outbound Message
      ---------------------------
      ID: 6
      Address: https://colo03.ss.yahooapis.jp/services/V5.0/AdGroupService
      Encoding: UTF-8
      Http-Method: POST
      Content-Type: text/xml
      Headers:

      {Accept=[*/*], SOAPAction=[""]}

      Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><RequestHeader xmlns="http://ss.yahooapis.jp/V5"><license>1327-7818-1693-5552</license><apiAccountId>5567-7860-7473-8517</apiAccountId><apiAccountPassword>MtFuj1 </apiAccountPassword><accountId>586711</accountId><onBehalfOfAccountId>5XjT8-vuyv-BNaDX-JKxi</onBehalfOfAccountId><onBehalfOfPassword>TSATrialYahoo55</onBehalfOfPassword></RequestHeader></SOAP-ENV:Header><soap:Body><mutate xmlns="http://ss.yahooapis.jp/V5"><operations><operator>SET</operator><accountId>586711</accountId><campaignId>849002</campaignId><operand><accountId>586711</accountId><campaignId>849002</campaignId><adGroupId>163380998</adGroupId><bid xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ManualCPCAdGroupBid"><keywordMaxCpc>60000</keywordMaxCpc></bid></operand></operations></mutate></soap:Body></soap:Envelope>
      --------------------------------------
      2014-11-07 13:02:44,471 [P1T1] INFO o.a.c.s.A.A.AdGroupServiceInterface - Inbound Message
      ----------------------------
      ID: 6
      Response-Code: 200
      Encoding: UTF-8
      Content-Type: text/xml; charset=utf-8
      Headers:

      {Cache-Control=[private], connection=[close], Content-Length=[939], content-type=[text/xml; charset=utf-8], Date=[Fri, 07 Nov 2014 13:01:44 GMT], P3P=[policyref="http://privacy.yahoo.co.jp/w3c/p3p_jp.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE GOV"], Vary=[Accept-Encoding]}

      Payload: <?xml version="1.0" encoding="UTF-8"?>
      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ss.yahooapis.jp/V5"><SOAP-ENV:Header><ns1:ResponseHeader><ns1:service>AdGroupService</ns1:service><ns1:remainingQuota>33390</ns1:remainingQuota><ns1:quotaUsedForThisRequest>1</ns1:quotaUsedForThisRequest><ns1:timeTakenMillis>0.1084</ns1:timeTakenMillis></ns1:ResponseHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutateResponse><ns1:rval><ns1:ListReturnValue.Type>AdGroupReturnValue</ns1:ListReturnValue.Type><ns1:Operation.Type>SET</ns1:Operation.Type><ns1:values><ns1:operationSucceeded>false</ns1:operationSucceeded><ns1:error><ns1:code>20603</ns1:code><ns1:message>OVER_NUMBER</ns1:message><ns1:detail><ns1:requestKey>bid/keywordMaxCpc</ns1:requestKey><ns1:requestValue>60000</ns1:requestValue></ns1:detail></ns1:error></ns1:values></ns1:rval></ns1:mutateResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

      --------------------------------------
      2014-11-07 13:02:44,475 [P1T1] DEBUG c.t.s.c.y.util.SoapClientHandler - RESPONSE XML: <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ss.yahooapis.jp/V5">
      <SOAP-ENV:Header>
      <ns1:ResponseHeader>
      <ns1:service>AdGroupService</ns1:service>
      <ns1:remainingQuota>33390</ns1:remainingQuota>
      <ns1:quotaUsedForThisRequest>1</ns1:quotaUsedForThisRequest>
      <ns1:timeTakenMillis>0.1084</ns1:timeTakenMillis>
      </ns1:ResponseHeader>
      </SOAP-ENV:Header>
      <SOAP-ENV:Body>
      <ns1:mutateResponse>
      <ns1:rval>
      <ns1:ListReturnValue.Type>AdGroupReturnValue</ns1:ListReturnValue.Type>
      <ns1:Operation.Type>SET</ns1:Operation.Type>
      <ns1:values>
      <ns1:operationSucceeded>false</ns1:operationSucceeded>
      <ns1:error>
      <ns1:code>20603</ns1:code>
      <ns1:message>OVER_NUMBER</ns1:message>
      <ns1:detail>
      <ns1:requestKey>bid/keywordMaxCpc</ns1:requestKey>
      <ns1:requestValue>60000</ns1:requestValue>
      </ns1:detail>
      </ns1:error>
      </ns1:values>
      </ns1:rval>
      </ns1:mutateResponse>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      2014-11-07 13:02:44,477 [P1T1] DEBUG c.t.s.c.yahoojapan.util.SoapUtils - ******* Error *******
      2014-11-07 13:02:44,477 [P1T1] DEBUG c.t.s.c.yahoojapan.util.SoapUtils - code = 20603
      2014-11-07 13:02:44,477 [P1T1] DEBUG c.t.s.c.yahoojapan.util.SoapUtils - message = OVER_NUMBER
      2014-11-07 13:02:44,477 [P1T1] DEBUG c.t.s.c.yahoojapan.util.SoapUtils - ******* Error Detail *******
      2014-11-07 13:02:44,477 [P1T1] DEBUG c.t.s.c.yahoojapan.util.SoapUtils - request key = bid/keywordMaxCpc
      2014-11-07 13:02:44,477 [P1T1] DEBUG c.t.s.c.yahoojapan.util.SoapUtils - request value = 60000
      2014-11-07 13:02:44.477 (2) [P1T1]: Sending bid to search engine for SEU 697, SEA 4218 failed, but will be retried next time this app is run.
      2014-11-07 13:02:44.483 (3) [P1T1]: Updated rows (6) matched the number of pending updates (6)
      2014-11-07 13:02:44.483 (3) [P1T1]: Completed User (697) "96aa1b0a-c1a0-4447-9763-cbd7af752ecc_1"
      2014-11-07 13:02:44.484 (3) [main]: ------------Search Engine Bid Updater done

      Expected result:
      No errors should be seen and currentBid should be set to 50000 which is the maxCPCbid and yahoo account should also updated with the same bid value

        Attachments

          Activity

            People

            • Assignee:
              stacie.waleyko Stacie Waleyko (Inactive)
              Reporter:
              varshini.padmanabhan Varshini Padmanabhan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: