TrafficEstimatorService is not giving correct values as UI

94 views
Skip to first unread message

suga priya

unread,
Feb 16, 2015, 7:59:31 AM2/16/15
to adwor...@googlegroups.com
Hi,

I am using TrafficEstimatorService  to get clicks, impression.ad position,avg cpc etc etc by using TrafficEstimatorService . Please find my settings below for the attached screenshots

    $unitedStates = new Location();
    $unitedStates->id = 2840;
    $campaignEstimateRequest->criteria[] = $unitedStates;

    $english = new Language();
    $english->id = 1000;
    $campaignEstimateRequest->criteria[] = $english;
 
    $network = new networkSetting();
    $network->targetGoogleSearch = true;
    $network->targetSearchNetwork = false;
    $network->targetPartnerSearchNetwork  = false;
    $network->targetContentNetwork    =    false;
    $campaignEstimateRequests->networkSetting[] = $network;

The value getting from UI is not matching with API values and we recently changed the client id since we moved all the Adwords account to mcc account.
Plese help us resolve this issue

1.png

Danial Klimkin

unread,
Feb 16, 2015, 9:42:54 AM2/16/15
to adwor...@googlegroups.com
Hello,


Do you run the TES request against the same clientCustomerId?

What is the exact service response?


-Danial, AdWords API Team.
Message has been deleted

Danial Klimkin

unread,
Feb 17, 2015, 7:09:55 AM2/17/15
to adwor...@googlegroups.com
Hello,


The request you are making is for "Fleet Management Software" while it's a different keyword on the screenshot. These need to match for us to investigate.

Also, please make sure to not to share your developer token in the future. This is a public forum and anyone can find and use it potentially denied you the API access. Please reset the token in the AdWords API Center (in the MCC) to a new value as soon as possible. If not reset, your token can be revoked as it was compromised.


-Danial, AdWords API Team.



On Tuesday, February 17, 2015 at 7:19:35 AM UTC+3, suga priya wrote:

Hi Danial,

Thanks for the respponse.

Yes, We are sending request against by setting  new client customer id $user->SetClientCustomerId($clientId). Please  find the below response and attachment for output UI

[Feb 17 2015 04:05:28.000000 - INFO] POST /api/adwords/o/v201406/TrafficEstimatorService HTTP/1.1
Host: adwords.google.com
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.4.12, gzip
Accept-Encoding: gzip, deflate
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 560
Authorization: Bearer ya29.HQEFEOaJFbqmR6-Ld6aiI6pvToARhpZWCPjvO_HxUwx0rJJafX6S8NQlnwlm9Uiz4EHAZwZUPbYNBg

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201406" xmlns:ns2="https://adwords.google.com/api/adwords/o/v201406" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SOAP-ENV:Header>
    <ns2:RequestHeader>
      <ns1:clientCustomerId>834-253-5687</ns1:clientCustomerId>
      <ns1:developerToken>cTRPbvATTAMFSoYGgL_n7w</ns1:developerToken>
      <ns1:userAgent>Odessa Technologies (AwApi-PHP/5.4.0, Common-PHP/5.4.0, PHP/5.4.12)</ns1:userAgent>
    </ns2:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns2:get>
      <ns2:selector>
        <ns2:campaignEstimateRequests>
          <ns2:adGroupEstimateRequests>
            <ns2:keywordEstimateRequests>
              <ns2:keyword>
                <ns1:text>Fleet Management Software</ns1:text>
                <ns1:matchType>BROAD</ns1:matchType>
              </ns2:keyword>
            </ns2:keywordEstimateRequests>
            <ns2:maxCpc>
              <ns1:microAmount>10000000</ns1:microAmount>
            </ns2:maxCpc>
          </ns2:adGroupEstimateRequests>
          <ns2:criteria xsi:type="ns1:Location">
            <ns1:id>2840</ns1:id>
          </ns2:criteria>
          <ns2:criteria xsi:type="ns1:Language">
            <ns1:id>1000</ns1:id>
          </ns2:criteria>
        </ns2:campaignEstimateRequests>
      </ns2:selector>
    </ns2:get>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Tue, 17 Feb 2015 04:05:28 GMT
Expires: Tue, 17 Feb 2015 04:05:28 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 593
Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406" xmlns="https://adwords.google.com/api/adwords/o/v201406">
      <ns2:requestId>00050f40d028c2680abfbacbbf007615</ns2:requestId>
      <ns2:serviceName>AccountService</ns2:serviceName>
      <ns2:methodName>get</ns2:methodName>
      <ns2:operations>0</ns2:operations>
      <ns2:responseTime>302</ns2:responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406" xmlns="https://adwords.google.com/api/adwords/o/v201406">
      <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>5134342</ns2:microAmount>
                </averageCpc>
                <averagePosition>2.609656720947073</averagePosition>
                <clickThroughRate>0.012090803641903958</clickThroughRate>
                <clicksPerDay>9.897187</clicksPerDay>
                <impressionsPerDay>736.7143</impressionsPerDay>
                <totalCost>
                  <ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
                  <ns2:microAmount>56461716</ns2:microAmount>
                </totalCost>
              </min>
              <max>
                <averageCpc>
                  <ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
                  <ns2:microAmount>6275307</ns2:microAmount>
                </averageCpc>
                <averagePosition>2.135173577933451</averagePosition>
                <clickThroughRate>0.014777649607431331</clickThroughRate>
                <clicksPerDay>12.096562</clicksPerDay>
                <impressionsPerDay>900.42865</impressionsPerDay>
                <totalCost>
                  <ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
                  <ns2:microAmount>69008768</ns2:microAmount>
                </totalCost>
              </max>
            </keywordEstimates>
          </adGroupEstimates>
        </campaignEstimates>
      </rval>
    </getResponse>
  </soap:Body>
</soap:Envelope>

Message has been deleted
Message has been deleted

suga priya

unread,
Feb 18, 2015, 1:36:15 AM2/18/15
to adwor...@googlegroups.com

Hi,

Thanks a lot. By mistake i shared the full response code If you don't mind can you please delete/hide your previous post, it has thread.

We have reset developer token as you suggested.

please find the below response for  "Fleet Management Software" and refer above UI screenshot for the same.

Is something wrong in network settings? am using below code for that


    $network = new networkSetting();
    $network->targetGoogleSearch = true;
    $network->targetSearchNetwork = false;
    $network->targetPartnerSearchNetwork  = false;
    $network->targetContentNetwork    =    false;
    $campaignEstimateRequest->networkSetting[] = $network;
  <SOAP-ENV:Body>
    <ns2:get>
      <ns2:selector>
        <ns2:campaignEstimateRequests>
          <ns2:adGroupEstimateRequests>
            <ns2:keywordEstimateRequests>
              <ns2:keyword>
                <ns1:text>Fleet Management Software</ns1:text>
                <ns1:matchType>BROAD</ns1:matchType>
              </ns2:keyword>
            </ns2:keywordEstimateRequests>
            <ns2:maxCpc>
              <ns1:microAmount>10000000</ns1:microAmount>
            </ns2:maxCpc>
          </ns2:adGroupEstimateRequests>
          <ns2:criteria xsi:type="ns1:Location">
            <ns1:id>2840</ns1:id>
          </ns2:criteria>
          <ns2:criteria xsi:type="ns1:Language">
            <ns1:id>1000</ns1:id>
          </ns2:criteria>
          <ns2:networkSetting/>

        </ns2:campaignEstimateRequests>
      </ns2:selector>
    </ns2:get>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Content-Encoding: gzip
Date: Wed, 18 Feb 2015 06:17:16 GMT
Expires: Wed, 18 Feb 2015 06:17:16 GMT

Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Content-Length: 595

Server: GSE

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406" xmlns="https://adwords.google.com/api/adwords/o/v201406">
      <ns2:requestId>00050f56c5601dc00abfa8886f0040fb</ns2:requestId>

      <ns2:serviceName>AccountService</ns2:serviceName>
      <ns2:methodName>get</ns2:methodName>
      <ns2:operations>0</ns2:operations>
      <ns2:responseTime>387</ns2:responseTime>

    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201406" xmlns="https://adwords.google.com/api/adwords/o/v201406">
      <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>5125336</ns2:microAmount>
                </averageCpc>
                <averagePosition>2.6073377028395788</averagePosition>
                <clickThroughRate>0.013362377714286167</clickThroughRate>
                <clicksPerDay>10.932334</clicksPerDay>
                <impressionsPerDay>736.32855</impressionsPerDay>

                <totalCost>
                  <ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
                  <ns2:microAmount>62257648</ns2:microAmount>

                </totalCost>
              </min>
              <max>
                <averageCpc>
                  <ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
                  <ns2:microAmount>6264300</ns2:microAmount>
                </averageCpc>
                <averagePosition>2.1332761995732525</averagePosition>
                <clickThroughRate>0.016331795770754498</clickThroughRate>
                <clicksPerDay>13.361743</clicksPerDay>
                <impressionsPerDay>899.9572</impressionsPerDay>

                <totalCost>
                  <ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type>
                  <ns2:microAmount>76092688</ns2:microAmount>

Danial Klimkin

unread,
Feb 18, 2015, 8:07:31 AM2/18/15
to adwor...@googlegroups.com
Hello,


Thank you for the details. I have reproduced the issue and I can't see any good reason for discrepancy.

I'll follow up internally and update this thread.


-Danial, AdWords API Team.

suga priya

unread,
Feb 19, 2015, 12:40:47 AM2/19/15
to adwor...@googlegroups.com
Thank a lot.

Regards,
Sugappriya

suga priya

unread,
Feb 26, 2015, 1:11:09 AM2/26/15
to adwor...@googlegroups.com
Hi,

Is there any update on this?

Thanks,
Sugappriya

Danial Klimkin

unread,
Mar 2, 2015, 7:07:24 AM3/2/15
to adwor...@googlegroups.com
Hello Sugappriya,


I just received the response. There are difference in the parameters that can't be fully controlled. E.g. Keyword Planner date range is set to NEXT_WEEK by default. In the API this value can not be set and defaults to LAST_WEEK.

We currently don't expect to match keywork planner to TES for many requests.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages