Hi Teejay,
Sorry for the delay response as I was not available last month.
Please find the attached log files. Please have a look and let me know if
it helps. Also is a way / UI available where I can generate the Forecast
and compare with generated response from API. Thanks
On Wednesday, 16 February 2022 at 10:42:37 UTC+5 adsapi wrote:
> Hi Aqeel,
>
> I work along with Ernie and Aryeh.
>
> As per checking with the attached file, it appears that you've provided a
> different log. As mentioned by my colleague, Aryeh, in the Ads API
> <https://developers.google.com/google-ads/api/docs/start>, the request
> and response appears similar to the JSON Mappings in our REST
> documentation
> <https://developers.google.com/google-ads/api/rest/design/json-mappings?hl=en>
> with
> additional information such as request ID
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
> .
> Our client libraries have loggers with logging instructions, to see these
> instructions you can click on the client library you use in the sidebar of
> our client library guide
> <https://developers.google.com/google-ads/api/docs/client-libs?hl=en> and
> click on "Logging”.
>
> In the AdWords API
> <https://developers.google.com/adwords/api/docs/guides/start> , a request
> looks like the 3rd section in request
> <https://developers.google.com/adwords/api/docs/guides/call-structure#request>
> and
> a response looks similar to response
> <https://developers.google.com/adwords/api/docs/guides/call-structure#response>.
>
> Logging instructions are in the read.me on Github of each client library
> <https://developers.google.com/adwords/api/docs/clientlibraries>.
>
> On the other hand, could you kindly share as well a screenshot of your
> Google Ads UI showing the data discrepancy on your API response?
>
> Regards,
> [image: Google Logo]
> Teejay Wennie
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2W5LON:ref
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/616f2ae8-72a3-4482-9c12-f4f0d66ac859n%40googlegroups.com.
[2022-04-06 21:23:17] AW_SOAP.INFO: clientCustomerId=843-323-4693 operations=1
service=TrafficEstimatorService method=get responseTime=1191
requestId=0005dc02f84215360a56d8967b0d04ca server=adwords.google.com isFault=0
faultMessage=
[2022-04-06 21:23:17] AW_SOAP.DEBUG: POST
/api/adwords/o/v201809/TrafficEstimatorService?wsdl HTTP/1.1
Host: adwords.google.com
Connection: close
User-Agent: PHP-SOAP/7.4.27
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1597
Authorization: REDACTED
<?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/v201809"
xmlns:ns2="https://adwords.google.com/api/adwords/o/v201809"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns2:RequestHeader><ns1:clientCustomerId>843-323-4693</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>unknown
(AwApi-PHP, googleads-php-lib/41.0.0,
PHP/7.4.27)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns2:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns2:get><ns2:selector><ns2:campaignEstimateRequests><ns2:adGroupEstimateRequests><ns2:keywordEstimateRequests><ns2:keyword><ns1:text>Garments </ns1:text><ns1:matchType>EXACT</ns1:matchType></ns2:keyword></ns2:keywordEstimateRequests><ns2:keywordEstimateRequests><ns2:keyword><ns1:text>Clothing</ns1:text><ns1:matchType>EXACT</ns1:matchType></ns2:keyword></ns2:keywordEstimateRequests><ns2:keywordEstimateRequests><ns2:keyword><ns1:text>moon
walk</ns1:text><ns1:matchType>BROAD</ns1:matchType></ns2:keyword><ns2:isNegative>true</ns2:isNegative></ns2:keywordEstimateRequests><ns2:maxCpc><ns1:microAmount>500000000</ns1:microAmount></ns2:maxCpc></ns2:adGroupEstimateRequests><ns2:criteria
xsi:type="ns1:Location"><ns1:id>2250</ns1:id></ns2:criteria><ns2:criteria
xsi:type="ns1:Language"><ns1:id>1002</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
Date: Wed, 06 Apr 2022 21:23:17 GMT
Expires: Wed, 06 Apr 2022 21:23:17 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443";
ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443";
ma=2592000; v="46,43"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"
xmlns="https://adwords.google.com/api/adwords/o/v201809"><ns2:requestId>0005dc02f84215360a56d8967b0d04ca</ns2:requestId><ns2:serviceName>TrafficEstimatorService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>1</ns2:operations><ns2:responseTime>1191</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><getResponse
xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201809"
xmlns="https://adwords.google.com/api/adwords/o/v201809"><rval><campaignEstimates><Estimate.Type>CampaignEstimate</Estimate.Type><adGroupEstimates><Estimate.Type>AdGroupEstimate</Estimate.Type><keywordEstimates><Estimate.Type>KeywordEstimate</Estimate.Type><min><clicksPerDay>0.0</clicksPerDay><impressionsPerDay>0.0</impressionsPerDay><totalCost><ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type><ns2:microAmount>0</ns2:microAmount></totalCost></min><max><clicksPerDay>0.0</clicksPerDay><impressionsPerDay>0.0</impressionsPerDay><totalCost><ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type><ns2:microAmount>0</ns2:microAmount></totalCost></max></keywordEstimates><keywordEstimates><Estimate.Type>KeywordEstimate</Estimate.Type><min><averageCpc><ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type><ns2:microAmount>1080105</ns2:microAmount></averageCpc><averagePosition>1.6161617071406498</averagePosition><clickThroughRate>0.04588148062576236</clickThroughRate><clicksPerDay>0.07194499</clicksPerDay><impressionsPerDay>1.4112555</impressionsPerDay><totalCost><ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type><ns2:microAmount>86342</ns2:microAmount></totalCost></min><max><averageCpc><ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type><ns2:microAmount>1320129</ns2:microAmount></averageCpc><averagePosition>1.322314060334421</averagePosition><clickThroughRate>0.056077367910252196</clickThroughRate><clicksPerDay>0.08793277</clicksPerDay><impressionsPerDay>1.7248679</impressionsPerDay><totalCost><ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type><ns2:microAmount>105530</ns2:microAmount></totalCost></max></keywordEstimates><keywordEstimates><Estimate.Type>KeywordEstimate</Estimate.Type><min><clicksPerDay>0.0</clicksPerDay><impressionsPerDay>0.0</impressionsPerDay><totalCost><ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type><ns2:microAmount>0</ns2:microAmount></totalCost></min><max><clicksPerDay>0.0</clicksPerDay><impressionsPerDay>0.0</impressionsPerDay><totalCost><ns2:ComparableValue.Type>Money</ns2:ComparableValue.Type><ns2:microAmount>0</ns2:microAmount></totalCost></max></keywordEstimates></adGroupEstimates></campaignEstimates></rval></getResponse></soap:Body></soap:Envelope>
[2022-04-06T21:17:44.022590+00:00] google-ads.INFO: Request made: Host:
"googleads.googleapis.com", Method:
"/google.ads.googleads.v9.services.KeywordPlanService/MutateKeywordPlans",
CustomerId: 8459742678, RequestId: "3NevVtbboryAu_P2XUbP_A", IsFault: 0,
FaultMessage: "None"
[2022-04-06T21:17:44.022808+00:00] google-ads.DEBUG: Request
-------
Method Name:
/google.ads.googleads.v9.services.KeywordPlanService/MutateKeywordPlans
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.27 gccl\/13.0.0 gapic\/13.0.0 gax\/1.11.4
grpc\/1.42.0 rest\/1.11.4",
"x-goog-request-params": "customer_id=8459742678",
"developer-token": "REDACTED"
}
Request:
{"customerId":"8459742678","operations":[{"create":{"name":"Keyword plan for
traffic estimate
#2022-04-06T21:17:43.321+00:00","forecastPeriod":{"dateInterval":"NEXT_QUARTER"}}}]}
Response
-------
Headers: {
"content-disposition": "attachment",
"request-id": "3NevVtbboryAu_P2XUbP_A",
"date": "Wed, 06 Apr 2022 21:17:44 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
Response:
{"results":[{"resourceName":"customers/8459742678/keywordPlans/388912305"}]}
[2022-04-06T21:17:44.346587+00:00] google-ads.INFO: Request made: Host:
"googleads.googleapis.com", Method:
"/google.ads.googleads.v9.services.KeywordPlanCampaignService/MutateKeywordPlanCampaigns",
CustomerId: 8459742678, RequestId: "GZeYMrGxU2UWIgFXQiAY-Q", IsFault: 0,
FaultMessage: "None"
[2022-04-06T21:17:44.346735+00:00] google-ads.DEBUG: Request
-------
Method Name:
/google.ads.googleads.v9.services.KeywordPlanCampaignService/MutateKeywordPlanCampaigns
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.27 gccl\/13.0.0 gapic\/13.0.0 gax\/1.11.4
grpc\/1.42.0 rest\/1.11.4",
"x-goog-request-params": "customer_id=8459742678",
"developer-token": "REDACTED"
}
Request:
{"customerId":"8459742678","operations":[{"create":{"keywordPlan":"customers/8459742678/keywordPlans/388912305","name":"Keyword
plan campaign
#2022-04-06T21:17:44.024+00:00","languageConstants":["languageConstants/1002"],"keywordPlanNetwork":"GOOGLE_SEARCH","cpcBidMicros":"500000000","geoTargets":[{"geoTargetConstant":"geoTargetConstants/2250"}]}}]}
Response
-------
Headers: {
"content-disposition": "attachment",
"request-id": "GZeYMrGxU2UWIgFXQiAY-Q",
"date": "Wed, 06 Apr 2022 21:17:44 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
Response:
{"results":[{"resourceName":"customers/8459742678/keywordPlanCampaigns/388736547"}]}
[2022-04-06T21:17:44.645243+00:00] google-ads.INFO: Request made: Host:
"googleads.googleapis.com", Method:
"/google.ads.googleads.v9.services.KeywordPlanAdGroupService/MutateKeywordPlanAdGroups",
CustomerId: 8459742678, RequestId: "ZZUjzUsn79Jbw6I4gMn2uw", IsFault: 0,
FaultMessage: "None"
[2022-04-06T21:17:44.645350+00:00] google-ads.DEBUG: Request
-------
Method Name:
/google.ads.googleads.v9.services.KeywordPlanAdGroupService/MutateKeywordPlanAdGroups
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.27 gccl\/13.0.0 gapic\/13.0.0 gax\/1.11.4
grpc\/1.42.0 rest\/1.11.4",
"x-goog-request-params": "customer_id=8459742678",
"developer-token": "REDACTED"
}
Request:
{"customerId":"8459742678","operations":[{"create":{"keywordPlanCampaign":"customers/8459742678/keywordPlanCampaigns/388736547","name":"Keyword
plan ad group #2022-04-06T21:17:44.347+00:00","cpcBidMicros":"5000000"}}]}
Response
-------
Headers: {
"content-disposition": "attachment",
"request-id": "ZZUjzUsn79Jbw6I4gMn2uw",
"date": "Wed, 06 Apr 2022 21:17:44 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
Response:
{"results":[{"resourceName":"customers/8459742678/keywordPlanAdGroups/395720124"}]}
[2022-04-06T21:17:44.957111+00:00] google-ads.INFO: Request made: Host:
"googleads.googleapis.com", Method:
"/google.ads.googleads.v9.services.KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywords",
CustomerId: 8459742678, RequestId: "BrhWCTiaw57svYG2PjWYpQ", IsFault: 0,
FaultMessage: "None"
[2022-04-06T21:17:44.957227+00:00] google-ads.DEBUG: Request
-------
Method Name:
/google.ads.googleads.v9.services.KeywordPlanAdGroupKeywordService/MutateKeywordPlanAdGroupKeywords
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.27 gccl\/13.0.0 gapic\/13.0.0 gax\/1.11.4
grpc\/1.42.0 rest\/1.11.4",
"x-goog-request-params": "customer_id=8459742678",
"developer-token": "REDACTED"
}
Request:
{"customerId":"8459742678","operations":[{"create":{"keywordPlanAdGroup":"customers/8459742678/keywordPlanAdGroups/395720124","text":"Garments\r","matchType":"EXACT"}},{"create":{"keywordPlanAdGroup":"customers/8459742678/keywordPlanAdGroups/395720124","text":"Clothing","matchType":"EXACT"}}]}
Response
-------
Headers: {
"content-disposition": "attachment",
"request-id": "BrhWCTiaw57svYG2PjWYpQ",
"date": "Wed, 06 Apr 2022 21:17:44 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
Response:
{"results":[{"resourceName":"customers/8459742678/keywordPlanAdGroupKeywords/807894824132"},{"resourceName":"customers/8459742678/keywordPlanAdGroupKeywords/807894824135"}]}
[2022-04-06T21:17:45.296909+00:00] google-ads.INFO: Request made: Host:
"googleads.googleapis.com", Method:
"/google.ads.googleads.v9.services.KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywords",
CustomerId: 8459742678, RequestId: "BxBXZsOrXpxU3kHpeiCd4A", IsFault: 0,
FaultMessage: "None"
[2022-04-06T21:17:45.297018+00:00] google-ads.DEBUG: Request
-------
Method Name:
/google.ads.googleads.v9.services.KeywordPlanCampaignKeywordService/MutateKeywordPlanCampaignKeywords
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.27 gccl\/13.0.0 gapic\/13.0.0 gax\/1.11.4
grpc\/1.42.0 rest\/1.11.4",
"x-goog-request-params": "customer_id=8459742678",
"developer-token": "REDACTED"
}
Request:
{"customerId":"8459742678","operations":[{"create":{"keywordPlanCampaign":"customers/8459742678/keywordPlanCampaigns/388736547","text":"moon
walk","matchType":"BROAD","negative":true}}]}
Response
-------
Headers: {
"content-disposition": "attachment",
"request-id": "BxBXZsOrXpxU3kHpeiCd4A",
"date": "Wed, 06 Apr 2022 21:17:45 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
Response:
{"results":[{"resourceName":"customers/8459742678/keywordPlanCampaignKeywords/191564177"}]}
[2022-04-06T21:17:47.779459+00:00] google-ads.INFO: Request made: Host:
"googleads.googleapis.com", Method:
"/google.ads.googleads.v9.services.KeywordPlanService/GenerateForecastMetrics",
CustomerId: "No customer ID could be extracted from the request", RequestId:
"bOjxMB_ggAC3kaj3z7PAnA", IsFault: 0, FaultMessage: "None"
[2022-04-06T21:17:47.779595+00:00] google-ads.DEBUG: Request
-------
Method Name:
/google.ads.googleads.v9.services.KeywordPlanService/GenerateForecastMetrics
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.27 gccl\/13.0.0 gapic\/13.0.0 gax\/1.11.4
grpc\/1.42.0 rest\/1.11.4",
"x-goog-request-params":
"keyword_plan=customers%2F8459742678%2FkeywordPlans%2F388912305",
"developer-token": "REDACTED"
}
Request:
{"keywordPlan":"customers/8459742678/keywordPlans/388912305"}
Response
-------
Headers: {
"content-disposition": "attachment",
"request-id": "bOjxMB_ggAC3kaj3z7PAnA",
"date": "Wed, 06 Apr 2022 21:17:47 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\";
ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\";
ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}
Response:
{"campaignForecasts":[{"keywordPlanCampaign":"customers/8459742678/keywordPlanCampaigns/388736547","campaignForecast":{"impressions":200.94107055664062,"ctr":0.079263381659984589,"averageCpc":"571428","clicks":15.927268028259277,"costMicros":"9101284"}}],"adGroupForecasts":[{"keywordPlanAdGroup":"customers/8459742678/keywordPlanAdGroups/395720124","adGroupForecast":{"impressions":200.94107055664062,"ctr":0.079263381659984589,"averageCpc":"571428","clicks":15.927268028259277,"costMicros":"9101284"}}],"keywordForecasts":[{"keywordPlanAdGroupKeyword":"customers/8459742678/keywordPlanKeywords/807894824132","keywordForecast":{"impressions":0,"clicks":0,"costMicros":"0"}},{"keywordPlanAdGroupKeyword":"customers/8459742678/keywordPlanKeywords/807894824135","keywordForecast":{"impressions":200.94107055664062,"ctr":0.079263381659984589,"averageCpc":"571428","clicks":15.927268028259277,"costMicros":"9101284"}}]}