Hi,
I generate an issue in GitHub Issue Tracker and finally manage to make it
workable. But now, I have an issue with the response.
I need to get the response against the multiple keywords, but it only
returns the response against the last keyword I used. I raised the same
issue at GitHub Issue tracker (
https://github.com/googleads/google-ads-php/issues/920) but I received
following response:
*Since it's related to the result of the API server, could you please ask
on the Google Ads API forum
<https://groups.google.com/forum/?nomobile=true#!forum/adwords-api>?Make
sure you also share your request and response log. Thank you. *
Let me explain below:
Please see the keyword that I passed one keyword at a time:
*Keyword:* plombier
*Response:* A
---------------------------
*Keyword:* garde meuble
*Response:* B
---------------------------
*Keyword:* location voiture
*Response:* C
---------------------------
Like I mentioned above, all 3 keyword shows different response but when I
pass all keywords in one request, what I get:
*Keyword:* plombier, garde meuble, location voiture
*Response:* C (Which is same when I pass single keyword: location voiture)
---------------------------
*Keyword:* location voiture, plombier, garde meuble
*Response:* B (Which is same when I pass single keyword: garde meuble)
---------------------------
*Keyword:* location voiture, garde meuble, plombier
*Response:* A (Which is same when I pass single keyword: plombier)
---------------------------
So, it works fine when I use one keyword but in case of multiple keywords,
the response should not be the same as per the last keyword I used. Please
let me know if you guys need further details. Log file is also attached.
Thanks
On Tuesday, 20 June 2023 at 00:11:13 UTC+5 Google Ads API Forum Advisor
wrote:
> Hi Aqeel,
>
> Thanks for getting back to us.
>
> There is no definite timeline for the availability for code examples in
> our documentation. However, you may also check with the Client library
> owner by opening an issue with the Issue Tracker in GitHub with your chosen
> *client
> library* <https://developers.google.com/google-ads/api/docs/client-libs>.
> This message is in relation to case "ref:_00D1U1174p._5004Q2lw59Y:ref"
>
> Thanks,
>
> [image: Google Logo] Google Ads API Team
>
>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8ef9c602-7bfc-412d-99d3-47d5d63643c1n%40googlegroups.com.
[2023-07-04T12:22:57.918817+00:00] google-ads.INFO: Request made: Host:
"googleads.googleapis.com", Method:
"/google.ads.googleads.v14.services.KeywordPlanIdeaService/GenerateKeywordForecastMetrics",
CustomerId: 8459742678, RequestId: "W42_wJVZVUYV73mm-dLl-g", IsFault: 0,
FaultMessage: "None"
[2023-07-04T12:22:57.919023+00:00] google-ads.DEBUG: Request
-------
Method Name:
/google.ads.googleads.v14.services.KeywordPlanIdeaService/GenerateKeywordForecastMetrics
Host: googleads.googleapis.com
Headers: {
"x-goog-api-client": "gl-php\/7.4.27 gccl\/19.2.0 gapic\/19.2.0 gax\/1.19.1
grpc\/1.42.0 rest\/1.19.1 pb\/3.19.1+c",
"x-goog-request-params": "customer_id=8459742678",
"developer-token": "REDACTED"
}
Request:
{"customerId":"8459742678","forecastPeriod":{"startDate":"2023-07-05","endDate":"2024-07-04"},"campaign":{"languageConstants":["languageConstants/1002"],"geoModifiers":[{"geoTargetConstant":"geoTargetConstants/2250"}],"keywordPlanNetwork":"GOOGLE_SEARCH","biddingStrategy":{"maximizeClicksBiddingStrategy":{"dailyTargetSpendMicros":"100000000","maxCpcBidCeilingMicros":"1000000"}},"adGroups":[{"biddableKeywords":[{"keyword":{"text":"plombier\r","matchType":"EXACT"}},{"keyword":{"text":"garde
meuble\r","matchType":"EXACT"}},{"keyword":{"text":"location
voiture","matchType":"EXACT"}}]}]}}
Response
-------
Headers: {
"content-disposition": "attachment",
"request-id": "W42_wJVZVUYV73mm-dLl-g",
"date": "Tue, 04 Jul 2023 12:22:57 GMT",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"
}
Response:
{"campaignForecastMetrics":{"impressions":1004969.8125,"clickThroughRate":0.12489501386880875,"averageCpcMicros":"291597","clicks":125515.71875,"costMicros":"36600000000","conversions":6813.59326171875,"conversionRate":0.054284781217575073,"averageCpaMicros":"5371615"}}