Details
-
Type:
Task
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Gingersnap
-
Component/s: None
-
Labels:None
-
Story Points:3
Description
The AdWords v201506 API sunsets on April 11, 2016
Wiki page: v201509/v201601 Upgrade https://admaxlocal.atlassian.net/wiki/pages/viewpage.action?pageId=3244596
Dev
Update BES to use the new API.
Testing
Need to test that the v201601 API is being used to obtain budget estimates. After adding a BA+BL to an order, tail the JBoss log and find the SOAP request/response. Check the headers to make sure v201601 is being used.
Example:
REQUEST
01:16:51,598 INFO [requestInfoLogger] Request made: Service: "TrafficEstimatorServiceInterfacePort" Method: "get" URL: "https://adwords.google.com/api/adwords/o/v201601/TrafficEstimatorService"
01:16:51,615 INFO [soapXmlLogger] SOAP Request:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/o/v201601" soapenv:mustUnderstand="0">
<ns2:clientCustomerId xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201601">1372398838</ns2:clientCustomerId>
<ns3:developerToken xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201601">ojCnjZaM6RD1h0yt_DOJZg</ns3:developerToken>
<ns4:userAgent xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201601">AdMax Local AdWords Software (AwApi-Java, AdWords-Axis/2.11.0, Common-Java/2.11.0, Axis/1.4, Java/1.8.0_65, maven)</ns4:userAgent>
<ns5:validateOnly xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201601">false</ns5:validateOnly>
<ns6:partialFailure xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201601">false</ns6:partialFailure>
</ns1:RequestHeader>
</soapenv:Header>
<soapenv:Body>
<get xmlns="https://adwords.google.com/api/adwords/o/v201601">
<selector>
<campaignEstimateRequests>
<adGroupEstimateRequests>
<keywordEstimateRequests>
<keyword>
<ns7:text xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201601">B&B</ns7:text>
<ns8:matchType xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201601">BROAD</ns8:matchType>
</keyword>
<isNegative>false</isNegative>
</keywordEstimateRequests>
<keywordEstimateRequests>
<keyword>
<ns9:text xmlns:ns9="https://adwords.google.com/api/adwords/cm/v201601">B&B finder</ns9:text>
<ns10:matchType xmlns:ns10="https://adwords.google.com/api/adwords/cm/v201601">BROAD</ns10:matchType>
</keyword>
<isNegative>false</isNegative>
</keywordEstimateRequests>
<keywordEstimateRequests>
<keyword>
<ns11:text xmlns:ns11="https://adwords.google.com/api/adwords/cm/v201601">B&B rates</ns11:text>
<ns12:matchType xmlns:ns12="https://adwords.google.com/api/adwords/cm/v201601">BROAD</ns12:matchType>
</keyword>
<isNegative>false</isNegative>
</keywordEstimateRequests>
RESPONSE
01:16:51,615 INFO [soapXmlLogger] SOAP Response:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201601" xmlns="https://adwords.google.com/api/adwords/o/v201601">
<ns2:requestId>00052ec131e58ed80abf8d87a1050598</ns2:requestId>
<ns2:serviceName>AccountService</ns2:serviceName>
<ns2:methodName>get</ns2:methodName>
<ns2:operations>1</ns2:operations>
<ns2:responseTime>588</ns2:responseTime>
</ResponseHeader>
</soap:Header>
<soap:Body>
<getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201601" xmlns="https://adwords.google.com/api/adwords/o/v201601">
<rval>
<campaignEstimates>
<Estimate.Type>CampaignEstimate</Estimate.Type>
<adGroupEstimates>
<Estimate.Type>AdGroupEstimate</Estimate.Type>
<keywordEstimates>
<Estimate.Type>KeywordEstimate</Estimate.Type>
<min>
<averageCpc>
<ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
<ns2:microAmount>8972571</ns2:microAmount>
</averageCpc>
<averagePosition>1.1111111405455043</averagePosition>
<clickThroughRate>0.005017059675690272</clickThroughRate>
<clicksPerDay>0.030367473</clicksPerDay>
<impressionsPerDay>5.4475584</impressionsPerDay>
<totalCost>
<ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
<ns2:microAmount>302749</ns2:microAmount>
</totalCost>
</min>
<max>
<averageCpc>
<ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
<ns2:microAmount>10966477</ns2:microAmount>
</averageCpc>
<averagePosition>1.0</averagePosition>
<clickThroughRate>0.006131962121191881</clickThroughRate>
<clicksPerDay>0.0371158</clicksPerDay>
<impressionsPerDay>6.658127</impressionsPerDay>
<totalCost>
<ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
<ns2:microAmount>370027</ns2:microAmount>
</totalCost>
</max>
</keywordEstimates>
You can also grep the JBoss log to make sure there are no occurrences of v201506
$ grep --color=always 'v201506' ~/apps/jboss-5.1.0.GA/tsa_messaging_node_server.log