Re: Google keyword planner using node js
Hi, As per your suggestion, i have called the API through curl command which gives following error. curl -i --request POST https://googleads.googleapis.com/v11/customers/5753283815/keywordPlans/car:generateHistoricalMetrics \ > --header "Content-Type: application/json" \ > --header "developer-token: 7BtKiwJq_mKcf6s-KhWpPg" \ > --header "Authorization: Bearer ya29.A0AVA9y1uSl7jV_06r17iMPQrTR7Hp97lWnkOMIOJx2mLbZ_X8tkYx4b79AKpmNmBmaJ3uWcEdMiHOmzs0VC1gT3lyUpO8DVEzDxbR3CIGEjpOZTgKC69XckDPFHgfP8_QebHvH6o0_LEtZU-X0zijK67d0rFhgQYUNnWUtBVEFTQVRBU0ZRRTY1ZHI4c0p6c0tsRkp1NURaZlRqY3QwQW9rdw0165" HTTP/2 403 request-id: ylOECe_UB3HScjm3RQTang vary: X-Origin vary: Referer vary: Origin,Accept-Encoding content-type: application/json; charset=UTF-8 date: Sun, 17 Jul 2022 14:11:31 GMT server: ESF cache-control: private x-xss-protection: 0 x-frame-options: SAMEORIGIN x-content-type-options: nosniff 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 { "error": { "code": 403, "message": "The caller does not have permission", "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "authorizationError": "DEVELOPER_TOKEN_NOT_APPROVED" }, "message": "The developer token is not approved. Non-approved developer tokens can only be used with test accounts." } ], "requestId": "ylOECe_UB3HScjm3RQTang" } ] } } *but my account is already a test account then why it is giving me above error.* [image: Capture.PNG] On Wednesday, July 13, 2022 at 12:33:15 AM UTC+5 adsapi wrote: > 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 > <https://developers.google.com/google-ads/api/rest/design/json-mappings?hl=en> > with > additional headers and information such as request Id > <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id> > . > > If you are using our REST interface > <https://developers.google.com/google-ads/api/rest/overview> 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, > > [image: Google Logo] > Aryeh > Google Ads API Team > > > ref:_00D1U1174p._5004Q2cFp7F: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/2453f915-2438-4db6-aea2-2bcd58101b71n%40googlegroups.com.
Re: Google keyword planner using node js
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 On Monday, July 11, 2022 at 10:03:11 AM UTC+5 adsapi wrote: > 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 > <https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers.keywordPlans> > for > making HTTP requests. since you are doing the generateHistoricalMetrics, > then you may see this documentation > <https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers.keywordPlans/generateHistoricalMetrics>. > > Your HTTP request will be: > >- *https://googleads.googleapis.com/v11/customers/ > > <https://googleads.googleapis.com/v11/customers/>/keywordPlans/:generateHistoricalMetrics* > > > > If you happen to have specific questions / clarifications, feel free to > add those in this thread so we can assist you. > > Regards, > [image: Google Logo] > Carmela > Google Ads API Team > > > ref:_00D1U1174p._5004Q2cFp7F: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/ab3f81f7-2c9c-4601-b425-7c4e1cd19e0bn%40googlegroups.com.
Re: Google keyword planner using node js
Hi, Thanks for the quick reply, I have done as you have 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 On Monday, July 11, 2022 at 10:03:11 AM UTC+5 adsapi wrote: > 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 > <https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers.keywordPlans> > for > making HTTP requests. since you are doing the generateHistoricalMetrics, > then you may see this documentation > <https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers.keywordPlans/generateHistoricalMetrics>. > > Your HTTP request will be: > >- *https://googleads.googleapis.com/v11/customers/ > > <https://googleads.googleapis.com/v11/customers/>/keywordPlans/:generateHistoricalMetrics* > > > > If you happen to have specific questions / clarifications, feel free to > add those in this thread so we can assist you. > > Regards, > [image: Google Logo] > Carmela > Google Ads API Team > > > ref:_00D1U1174p._5004Q2cFp7F: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/9c8bbea5-fe25-4d8f-a6ff-98c14bb57765n%40googlegroups.com.
Re: Google keyword planner using node js
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 On Thursday, July 7, 2022 at 6:36:57 PM UTC+5 adsapi wrote: > Hi Haris, > > Please refer to the REST interface > <https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers.keywordPlans> > > 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 > <https://developers.google.com/google-ads/api/rest/reference/rest/v11/customers.keywordPlans/generateForecastCurve> > ). > > Regards, > > [image: Google Logo] > Matt > Google Ads API Team > > > ref:_00D1U1174p._5004Q2cFp7F: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/b2230c28-46d2-4c67-9f9d-ba4cd69a065cn%40googlegroups.com.
Re: Google keyword planner using node js
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 On Monday, July 4, 2022 at 7:16:26 AM UTC+5 adsapi wrote: > 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 > <https://developers.google.com/google-ads/api/docs/client-libs>. With > this, I would suggest using one of the client libraries in the provided > link and you may refer to this document > <https://developers.google.com/google-ads/api/docs/keyword-planning/overview> > 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, > [image: Google Logo] > Ernie John > Google Ads API Team > > > ref:_00D1U1174p._5004Q2cFp7F: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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/1c6faa6a-9592-4295-85a9-b3f16c061d49n%40googlegroups.com.
Google keyword planner using node js
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 -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/15d8a6e0-e0a8-4915-9d1e-c4c596b573ebn%40googlegroups.com.
Getting data through AdWords API and .NET
Hi all, I'm quite new to AdWords API, and I would like to know how I could get data like "campaign", "keyword", "impressions", "clicks", "total cost" and so on for a particular user (client) in a specified date range, using .NET (C#) and google API. Of course for testing purposes I would use sandbox. I read the API documentation, but for me it is still not clear how to do this. Could anyone explain it in a simple way? What do I have to do step by step? Is there an example? I already created an AdWords account using my existing email. So what is the next step? Please help. Thanks a lot. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en To unsubscribe from this group, send email to adwords-api+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.