Google keyword planner using node js

1,697 views
Skip to first unread message

Haris Arif

unread,
Jul 3, 2022, 1:45:47 PM7/3/22
to Google Ads API and AdWords API Forum
Hi,

I am new with google ads api, i need to use google ads api keyword planner feature with node js but i cant find any relevant solution for this.

Can someone please help me on this.

Regards,
Haris

Google Ads API Forum Advisor

unread,
Jul 3, 2022, 10:16:26 PM7/3/22
to haris....@gmail.com, adwor...@googlegroups.com
Hi Haris,

Thank you for posting your concern to our team.

I would like to inform you that Node JS is a client library that our team doesn't support, only the client libraries listed here. With this, I would suggest using one of the client libraries in the provided link and you may refer to this document as it discussed there how to manage keyword planner and sample implementation is also provided in the document. 

Let me know if you have further questions.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cFp7F:ref

Haris Arif

unread,
Jul 7, 2022, 9:04:31 AM7/7/22
to Google Ads API and AdWords API Forum
Hi Ernie,

Thanks for the prompt feedback,

My whole app is based on node so it will be very difficult for me to migrate on other language.
So there is another question, I want to know if there is any way to call keyword planner API from postman?

Regards,
Haris

Google Ads API Forum Advisor

unread,
Jul 7, 2022, 9:36:57 AM7/7/22
to haris....@gmail.com, adwor...@googlegroups.com
Hi Haris,

Please refer to the REST interface for making HTTP requests to the Keyword Planner. You can find the endpoint at the top of each keyword plan method page (e.g. generateForecastCurve).

Regards,

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cFp7F:ref

Haris Arif

unread,
Jul 9, 2022, 2:00:48 PM7/9/22
to Google Ads API and AdWords API Forum
Hi Matt,

Thanks for your input,

I am unable to understand the HTTP request

https://googleads.googleapis.com/v11/{keywordPlan=customers/*/keywordPlans/*}:generateHistoricalMetrics

Can you please  guide me on this how to use it.


I am doing as following:

https://googleads.googleapis.com/v11/keywordPlan="Play Station 5"/*:generateHistoricalMetrics

Google Ads API Forum Advisor

unread,
Jul 11, 2022, 1:03:11 AM7/11/22
to haris....@gmail.com, adwor...@googlegroups.com
Hi Haris,

This is Carmela from the Google Ads API team. Thank you for getting back to us.

Moving forward, as my colleague Matt mentioned, you may refer to this REST interface for making HTTP requests. since you are doing the generateHistoricalMetrics, then you may see this documentation. Your HTTP request will be: 
If you happen to have specific questions / clarifications, feel free to add those in this thread so we can assist you.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cFp7F:ref
Message has been deleted

Haris Arif

unread,
Jul 12, 2022, 2:44:01 PM7/12/22
to Google Ads API and AdWords API Forum
Hi,

Thanks for the quick reply,

I have done as you suggested me but still giving below error.

HTTP/1.1 404 Not Found
Content-length: 1628
X-xss-protection: 0
X-content-type-options: nosniff
Server: ESF
Date: Tue, 12 Jul 2022 18:38:18 GMT
X-frame-options: SAMEORIGIN
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"
Content-type: text/html; charset=UTF-8

Google Ads API Forum Advisor

unread,
Jul 12, 2022, 3:33:15 PM7/12/22
to haris....@gmail.com, adwor...@googlegroups.com
Hi Haris,

Could you send us a 'DEBUG' log level request and response log of raw API communications that generates this error?

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id

If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cFp7F:ref
Message has been deleted
Message has been deleted
Message has been deleted

Google Ads API Forum Advisor

unread,
Jul 18, 2022, 12:13:03 AM7/18/22
to adwor...@googlegroups.com, haris....@gmail.com
Hi Haris,

Thank you for providing updates to your concern.

I am going to delete your latest post as it contains sensitive information. With this, since your developer token has been exposed, I would suggest developer token reset.

Moving forward, it appears that you are referring to a test account access level of developer token. Please note that you can only use it in a test Google Ads account that is discussed in this document. The test account appears with a red label according to this section. With this, since you have used the developer token to a production account, then I am afraid that you will indeed experience the DEVELOPER_TOKEN_NOT_APPROVED. Try using the developer token with test account access level to a test Google Ads account created when following this link.

Let me know what goes after.

Regards,
Google Logo
Ernie John
Google Ads API Team
 

 

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