Google Ads API returns historical search volume for 13/2021

221 views
Skip to first unread message

David Pivoňka

unread,
May 30, 2022, 1:39:48 AM5/30/22
to Google Ads API and AdWords API Forum
Hello, we are using the new Google Ads API to retrieve historical search volume by using the generateHistoricalMetrics method (https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics#generating_metrics).

API returns historical search volume for the 13th month of 2021, see:
CleanShot 2022-05-30 at 07.34.38@2x.png

Fired the request with geo_target 2203 (Czech Republic) and language 1021 (Czech).

Can you please check if this is problem on your end?

Thanks.

Best regards,
David Pivonka

Google Ads API Forum Advisor

unread,
May 30, 2022, 7:33:02 AM5/30/22
to piv...@collabim.com, adwor...@googlegroups.com
Hello David,

Thank you for raising this concern to the Google Ads API Forum.

To check this in our end, could you please provide the complete API logs within the format of the request and response logs with request-id and login-customer-id that generated on your end. This information will help our team to better check the said issue. If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bEzg7:ref

David Pivoňka

unread,
May 31, 2022, 4:02:35 AM5/31/22
to Google Ads API and AdWords API Forum
Hi Jinky,

Thank you for the instructions on how to enable the logging. I have done all the steps from your documentation here: https://developers.google.com/google-ads/api/docs/client-libs/php/logging?hl=en and logging to a file don't work.
 
This is how my logging part of ini configurations looks:
CleanShot 2022-05-31 at 09.44.22@2x.png
I have tried to put relative and the absolute path to the file.log file created the file beforehand and made it chmod 777. None of those things worked.
Documentation also mentions that logger logs to STDERR by default, so I have tried to run 
```
php examples/Planning/GenerateKeywordIdeas.php --customerId 6685966372 --locationIds=2203 --languageId=1021 --keywordTexts="volne otočky" 2> log.txt
```
but the log.txt file is empty, there is no logging enabled.

I'm trying this directly on this example https://github.com/googleads/google-ads-php/blob/main/examples/Planning/GenerateKeywordIdeas.php. The example code also returns data for the 13th month of 2021

Can you please help?

Dne pondělí 30. května 2022 v 13:33:02 UTC+2 uživatel adsapi napsal:

Google Ads API Forum Advisor

unread,
May 31, 2022, 12:54:30 PM5/31/22
to piv...@collabim.com, adwor...@googlegroups.com
Hello David,

Thanks for getting back to us. Unfortunately, this is the only link we can provide to configure the logging system with our client library in PHP.

Please note that our API team only addresses API related issues and concerns. Unfortunately, the existing code changing/configuration related issues it’s not on our end to asset you. I would suggest reaching out to the PHP client library owner by posting this issue in the Issue Tab for them to provide guidance accordingly.

Additionally, here is another option for logging the reports, if you are using our REST interface then the full curl command line is a request log and adding curl command line option '-i' will also generate a response log. Feel free to reply back if you have any questions.

Best Regards,
Google Logo
Jakeia
Google Ads API Team

 



ref:_00D1U1174p._5004Q2bEzg7:ref
Reply all
Reply to author
Forward
0 new messages