Re: generatekeywordhistoricalmetrics -> historicalmetricsoptions 4 years data
Hi thanks very much for the response. sorry, can I just clarify, the HistoricalMetricsOptions only allows 12 months then, not 4 years as per the documentation? I will take a look at the *forecast metrics*. but I do not think have what we need. The other question was about creating the HistoricalMetricsOptions in a campaign using the API. Then being able to view the data in the UI. So I understand that you cannot therefore speak to the 2nd part of this process, but is it possible to create the campaign with the APi with 4 years using the API, and then view it in the UI. So far any campaigns we have created do not seem to be visible in the UI. thanks again On Wednesday, 5 July 2023 at 13:28:17 UTC+1 Google Ads API Forum Advisor wrote: > Hi, > > Thanks for reaching out to *Google Ads API* Support. > > With regards to your first concern, based on our documentation ( > *https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics* > > <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics>), > > the averages monthly searches is *12 months*, and the approximate monthly > search volume is only per months. You can use historical metrics to reduce > a large set of keywords to a more manageable size based on the performance. > However, if you already know the keywords you want to use, you can skip > historical metrics and go straight to *forecast metrics*. > > Moving forward to your second concern, for automatic keywords searches via > Google Ads API, you may refer to the *Keyword Ideas* documentation. Using > the *KeywordPlanIdeaService*, you can search for new keywords that are > relevant to your Google Search campaign, or find historical metrics on > keywords. > > However, if you want to create the keyword searches via the Google Ads UI, > then I recommend reaching out to the *Google Ads Product Support Team* for > further assistance. They can assist you more appropriately regarding these > kinds of inquiries. Since our team provides support to technical > implementations via the Google Ads API *only*. For this type of request > in the future, please use this link ( > https://developers.google.com/google-ads/api/support) to file your issue > directly. > > Links included in this email: > >- *Google Ads API - * >*https://developers.google.com/google-ads/api/docs/start* ><https://developers.google.com/google-ads/api/docs/start> >- *forecast metrics* - > > *https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics* > > > <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics> > >- *Keyword Ideas* - > > *https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas* > > > <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas> > >- *KeywordPlanIdeaService* - > > *https://developers.google.com/google-ads/api/reference/rpc/v14/KeywordPlanIdeaService* > > > <https://developers.google.com/google-ads/api/reference/rpc/v14/KeywordPlanIdeaService> > >- *Google Ads product support - * >*https://support.google.com/google-ads/gethelp* ><https://support.google.com/google-ads/gethelp> > > > This message is in relation to case "ref:_00D1U1174p._5004Q2mrU8n: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 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/260a685b-1616-4fab-9205-e49611851c51n%40googlegroups.com.
RE: generatekeywordhistoricalmetrics -> historicalmetricsoptions 4 years data
Hi, Thanks for reaching out to Google Ads API Support. With regards to your first concern, based on our documentation (https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics), the averages monthly searches is 12 months, and the approximate monthly search volume is only per months. You can use historical metrics to reduce a large set of keywords to a more manageable size based on the performance. However, if you already know the keywords you want to use, you can skip historical metrics and go straight to forecast metrics. Moving forward to your second concern, for automatic keywords searches via Google Ads API, you may refer to the Keyword Ideas documentation. Using the KeywordPlanIdeaService, you can search for new keywords that are relevant to your Google Search campaign, or find historical metrics on keywords. However, if you want to create the keyword searches via the Google Ads UI, then I recommend reaching out to the Google Ads Product Support Team for further assistance. They can assist you more appropriately regarding these kinds of inquiries. Since our team provides support to technical implementations via the Google Ads API only. For this type of request in the future, please use this link (https://developers.google.com/google-ads/api/support) to file your issue directly. Links included in this email: Google Ads API - https://developers.google.com/google-ads/api/docs/start forecast metrics - https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics Keyword Ideas - https://developers.google.com/google-ads/api/docs/keyword-planning/generate-keyword-ideas KeywordPlanIdeaService - https://developers.google.com/google-ads/api/reference/rpc/v14/KeywordPlanIdeaService Google Ads product support - https://support.google.com/google-ads/gethelp This message is in relation to case "ref:_00D1U1174p._5004Q2mrU8n:ref" Thanks, 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 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/ynADa0RXBPAL00COjNapApTCGYDo28B7Egiw%40sfdc.net.
GenerateKeywordHistoricalMetrics -> HistoricalMetricsOptions 4 years data
GenerateKeywordHistoricalMetrics only returns 12 months data, but the documentation says up to 4 years. Is the documentation wrong? I did find a post in 2020 to say that there was a feature request to increase it to 4 years, and to look at the blog. But unfortunately I cannot see how to access all the blogs since 2020 , ad only see the latest version. if 4 years data is not possible with the api, is there a way to create the keyword searches on the UI and view and download the data manually - ie do some of the work automatically using the api, and some manually? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/fe080176-a7fa-4506-a92c-07eed0ce219an%40googlegroups.com.
RE: HistoricalMetricsOptions in keyword idea generator using php
Hi Tarun, Thanks for reaching out. Are you referring to the historical_metrics_options in your GenerateKeywordIdeasRequest? Can you please expand a bit on your question? Can you tell us which client library you are using? Thanks, Matt Google Ads API Team ref:_00D1U1174p._5004Q2h0JMt: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/wJL8Y0RMJ0SA00gdclbiFLSJG3iLcT8RQH_w%40sfdc.net.
HistoricalMetricsOptions in keyword idea generator using php
while making generate key Idea request i am not able to find how to pass historical data matrices for average CPC do i have pass iin array or requestOptionalArgs var need help ASAP -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/2da5e4ff-2f07-41e5-9e9d-21668d18a42fn%40googlegroups.com.
RE: bug in Keyword Planning -> historicalMetricsOptions
Hi Andrey, Thanks for reaching out. Can you please reply privately with your complete request and response logs for the call that generated the internal error? Thanks, Matt Google Ads API Team Matt Google Ads API Team ref:_00D1U1174p._5004Q2NSec9: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 "AdWords API and Google Ads 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/nVqQy0QZ865C00gadD0bpLRHuxg2mi7vRE8Q%40sfdc.net.
bug in Keyword Planning -> historicalMetricsOptions
Hello, seems I found a bug in the AdsAPI. If trying to set the month of JANUARY in *KeywordPlanService.GenerateHistoricalMetrics* and *KeywordPlanIdeaService.GenerateKeywordIdeass* in the format: "year_month_range" => new YearMonthRange([ "start" => new YearMonth([ "year" => 2019, "month" => Month::value("JANUARY") ]), "end" => new YearMonth([ "year" => 2021, "month" => Month::value("JUNE") ]) ]) date range works, but you can't specify start with "JANUARY", for example: "start" => new YearMonth([ "year" => 2019, "month" => Month::value("JANUARY") tried on all years (2018, 2019, 2020, 2021), it doesn't work, returns an error: "message": "Internal error encountered.", "code": 13, "status": "INTERNAL", At the same time, if you set the month "JANUARY" in 'year_month_range' -> 'end' - it works correctly. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/9ae09b4c-38e8-4447-9c8c-eca6fe455e8bn%40googlegroups.com.
RE: HistoricalMetricsOptions
Hi everyone, Thank you for reaching out to our API support team. The guides that Eric provided are correct for forecasting and for historical metrics. That said, if you are also looking for implementation solutions for Python, then you can reach out to their client library owners via this link instead. Should you encounter API specific errors, let us know so that our API team can further assist you. Best regards, Peter Laurence Napa Oliquino Google Ads API Team ref:_00D1U1174p._5004Q2MiwkG: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 "AdWords API and Google Ads 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/oobKG0QYSC2G00XgdBMV3AQ1qmloNnFJZNkg%40sfdc.net.
Re: HistoricalMetricsOptions
Hi Alex, The code in these examples from the Google API docs are what I used. https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics Specifically the section "Generate the metrics" of their example for generate-forecast-metrics. The main thing to note here is that you need to change keyword_plan_service.generate_forecast_metrics to keyword_plan_service.generate_historical_metrics def main(client, customer_id, keyword_plan_id): keyword_plan_service = client.get_service("KeywordPlanService") resource_name = keyword_plan_service.keyword_plan_path(customer_id, keyword_plan_id) ### # INSERT YOUR metric_request.historical_metrics_options HERE ### metric_request = client.get_type("GenerateHistoricalMetricsRequest") metric_request.keyword_plan=resource_name metric_request.historical_metrics_options.year_month_range.start.year= 2019 metric_request.historical_metrics_options.year_month_range.start.month= client.get_type("MonthOfYearEnum").MonthOfYear.JANUARY metric_request.historical_metrics_options.year_month_range.end.year=2021 metric_request.historical_metrics_options.year_month_range.end.month= client.get_type("MonthOfYearEnum").MonthOfYear.MAY # response =* keyword_plan_service.generate_forecast_metrics*( keyword_plan=resource_name) # THIS IS THEIR ORIGINAL REQUEST CODE response = keyword_plan_service.generate_historical_metrics(metricrequest) for i, result in enumerate(response.metrics) : print(result.search_query) # DO SOME STUFF WITH THE RESULTS On Thursday, August 26, 2021 at 2:48:09 AM UTC-7 Alex wrote: > Hey Eric, > > Are you able to share your code. I'm also trying to get this working. And > can't seem to get it from what you've posted. > > Thanks > > On Wednesday, 23 June 2021 at 5:01:40 am UTC+10 > eric@globalstrategies.com wrote: > >> Hey Brad, >> >> I was able to set the HistoricalMetricsOptions like this (in Python): >> >> keyword_plan_service = client.get_service("KeywordPlanService") >> metric_request = client.get_type("GenerateHistoricalMetricsRequest") >> >> resource_name = >> keyword_plan_service.keyword_plan_path(customer_id, keyword_plan_id) >> >> metric_request.keyword_plan=resource_name >> metric_request.historical_metrics_options.year_month_range.start.year= >> 2019 >> metric_request.historical_metrics_options.year_month_range.start.month= >> client.get_type("MonthOfYearEnum").MonthOfYear.JANUARY >> metric_request.historical_metrics_options.year_month_range.end.year=2021 >> metric_request.historical_metrics_options.year_month_range.end.month= >> client.get_type("MonthOfYearEnum").MonthOfYear.MAY >> >> response = >> keyword_plan_service.generate_historical_metrics(metric_request) >> >> On Monday, June 21, 2021 at 3:37:40 PM UTC-7 Brad Wilcox wrote: >> >>> I am trying to define the YearMonth settings in the >>> HistoricalMetricsOptions from this documentation: >>> https://developers.google.com/google-ads/api/rest/reference/rest/v8/HistoricalMetricsOptions >>> I haven't been able to figure out how to use and haven't seen any >>> example pieces of code. Can anyone help me with understanding how this >>> object can be set? >>> >> -- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Group M Worldwide LLC and/or other members of the GroupM group of companies shall be understood as neither given nor endorsed by it. GroupM is the global media investment management arm of WPP. For more information on our business ethical standards and Corporate Responsibility policies please refer to WPP's website at http://www.wpp.com/WPP/About/ <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.wpp.com_WPP_About_=DwMFaQ=N-xPqDyeLJg5V3gLll2thA=aMkvY63z6j7EsF4XIb9BQM9Vg_NPq0Tyq_c4qEjSGuI=KGmvFRgWqLXTGN-0TqwJrXtnIjxRssANR2E_1vsPHZg=CtJil6FZbGrYDvuuovO87MZKGQbQYXhR41-kweAs1C0=> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~
Re: HistoricalMetricsOptions
Hey Eric, Are you able to share your code. I'm also trying to get this working. And can't seem to get it from what you've posted. Thanks On Wednesday, 23 June 2021 at 5:01:40 am UTC+10 eric@globalstrategies.com wrote: > Hey Brad, > > I was able to set the HistoricalMetricsOptions like this (in Python): > > keyword_plan_service = client.get_service("KeywordPlanService") > metric_request = client.get_type("GenerateHistoricalMetricsRequest") > > resource_name = > keyword_plan_service.keyword_plan_path(customer_id, keyword_plan_id) > > metric_request.keyword_plan=resource_name > metric_request.historical_metrics_options.year_month_range.start.year=2019 > metric_request.historical_metrics_options.year_month_range.start.month= > client.get_type("MonthOfYearEnum").MonthOfYear.JANUARY > metric_request.historical_metrics_options.year_month_range.end.year=2021 > metric_request.historical_metrics_options.year_month_range.end.month= > client.get_type("MonthOfYearEnum").MonthOfYear.MAY > > response = > keyword_plan_service.generate_historical_metrics(metric_request) > > On Monday, June 21, 2021 at 3:37:40 PM UTC-7 Brad Wilcox wrote: > >> I am trying to define the YearMonth settings in the >> HistoricalMetricsOptions from this documentation: >> https://developers.google.com/google-ads/api/rest/reference/rest/v8/HistoricalMetricsOptions >> I haven't been able to figure out how to use and haven't seen any example >> pieces of code. Can anyone help me with understanding how this object can >> be set? >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/9fe73aa6-44d6-4e35-9b98-7e79f00f7ea7n%40googlegroups.com.
RE: historicalMetricsOptions in KeywordIdeas doesn't work
Hi Vladislav, Thank you for reaching out to Google Ads API support. This product only officially offers support in English. It would be best to reply in English if you can. If not, we will try to use Google Translate to support you as best as we can. If you are looking for support accessing the Google Ads API, kindly open a new thread in this forum so that this thread will be dedicated to the original issue. Regards, Aryeh Baker Google Ads API Team ref:_00D1U1174p._5004Q2JXRUH: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 "AdWords API and Google Ads 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/zXUHZ0QVMN8600P-hGjxi7SFGBh-vFM_0EJg%40sfdc.net.
RE: historicalMetricsOptions in KeywordIdeas doesn't work
Hi Vadim, You can use the enum class MonthOfYear from our library, with the YearMonth and YearMonthRange classes and use our library to send the request. I have no visibility on your Month class. Regards, Aryeh Baker Google Ads API Team ref:_00D1U1174p._5004Q2JXRUH: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 "AdWords API and Google Ads 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/X9TNt0QVMN2B00Qziv_0iYRrCfCPs3OtzUMw%40sfdc.net.
Re: historicalMetricsOptions in KeywordIdeas doesn't work
Похоже, что тебя игнорят Можешь мне помочь с моим вопросом? среда, 30 июня 2021 г. в 09:24:56 UTC+3, Vadim: > Hello, I am trying set the date range for KeywordIdeas as stated in the > documentation (PHP) > > https://developers.google.com/google-ads/api/rest/reference/rest/v8/HistoricalMetricsOptions > : > > $requestOptionalArgs['historicalMetricsOptions'] = new > HistoricalMetricsOptions([ > 'yearMonthRange' => new YearMonthRange([ > 'start' => new YearMonth([ > "year" => 2020, > "month" => Month::JANUARY > ]), > 'end' => new YearMonth([ > "year" => 2020, > "month" => Month::MAY > ]) > ]) > ]); > > it doesn't work, returns an error: "Invalid message property: > yearMonthRange". > Please tell me how to do it correctly. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/8f04c619-8668-417e-9a90-5c76ca31d2b0n%40googlegroups.com.
historicalMetricsOptions in KeywordIdeas doesn't work
Hello, I am trying set the date range for KeywordIdeas as stated in the documentation (PHP) https://developers.google.com/google-ads/api/rest/reference/rest/v8/HistoricalMetricsOptions: $requestOptionalArgs['historicalMetricsOptions'] = new HistoricalMetricsOptions([ 'yearMonthRange' => new YearMonthRange([ 'start' => new YearMonth([ "year" => 2020, "month" => Month::JANUARY ]), 'end' => new YearMonth([ "year" => 2020, "month" => Month::MAY ]) ]) ]); it doesn't work, returns an error: "Invalid message property: yearMonthRange". Please tell me how to do it correctly. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/e94b7d9f-7287-4a79-8f1c-4f8b8482c842n%40googlegroups.com.
RE: HistoricalMetricsOptions
Hi Brad, Thank you for reaching out to us. In looking over the document that you shared with us. As well as looking at Erics response. I would suggest looking at what he mentioned for Python. Unsure what library you are using. But basically with the way that JSON is setup you will need to go through each object and can set it up. With the link that you have given it shows you the step thru the JSON object and what needs to be setup at each location. When you look at what Eric showed you that is exactly what he is doing. Regards, William Pescherine Google Ads API Team ref:_00D1U1174p._5004Q2IxZ3x: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 "AdWords API and Google Ads 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/ZC6IF0QV7PZR00s-qzyYmmShGkY3ghb6uiAA%40sfdc.net.
Re: HistoricalMetricsOptions
Hey Brad, I was able to set the HistoricalMetricsOptions like this (in Python): keyword_plan_service = client.get_service("KeywordPlanService") metric_request = client.get_type("GenerateHistoricalMetricsRequest") resource_name = keyword_plan_service.keyword_plan_path(customer_id, keyword_plan_id) metric_request.keyword_plan=resource_name metric_request.historical_metrics_options.year_month_range.start.year=2019 metric_request.historical_metrics_options.year_month_range.start.month= client.get_type("MonthOfYearEnum").MonthOfYear.JANUARY metric_request.historical_metrics_options.year_month_range.end.year=2021 metric_request.historical_metrics_options.year_month_range.end.month= client.get_type("MonthOfYearEnum").MonthOfYear.MAY response = keyword_plan_service.generate_historical_metrics(metric_request) On Monday, June 21, 2021 at 3:37:40 PM UTC-7 Brad Wilcox wrote: > I am trying to define the YearMonth settings in the > HistoricalMetricsOptions from this documentation: > https://developers.google.com/google-ads/api/rest/reference/rest/v8/HistoricalMetricsOptions > I haven't been able to figure out how to use and haven't seen any example > pieces of code. Can anyone help me with understanding how this object can > be set? > -- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Group M Worldwide LLC and/or other members of the GroupM group of companies shall be understood as neither given nor endorsed by it. GroupM is the global media investment management arm of WPP. For more information on our business ethical standards and Corporate Responsibility policies please refer to WPP's website at http://www.wpp.com/WPP/About/ <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.wpp.com_WPP_About_=DwMFaQ=N-xPqDyeLJg5V3gLll2thA=aMkvY63z6j7EsF4XIb9BQM9Vg_NPq0Tyq_c4qEjSGuI=KGmvFRgWqLXTGN-0TqwJrXtnIjxRssANR2E_1vsPHZg=CtJil6FZbGrYDvuuovO87MZKGQbQYXhR41-kweAs1C0=> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/07c304c0-64f8-44c8-a9b3-902e6ae4cb11n%40googlegroups.com.
HistoricalMetricsOptions
I am trying to define the YearMonth settings in the HistoricalMetricsOptions from this documentation: https://developers.google.com/google-ads/api/rest/reference/rest/v8/HistoricalMetricsOptions I haven't been able to figure out how to use and haven't seen any example pieces of code. Can anyone help me with understanding how this object can be set? -- Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Group M Worldwide LLC and/or other members of the GroupM group of companies shall be understood as neither given nor endorsed by it. GroupM is the global media investment management arm of WPP. For more information on our business ethical standards and Corporate Responsibility policies please refer to WPP's website at http://www.wpp.com/WPP/About/ <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.wpp.com_WPP_About_=DwMFaQ=N-xPqDyeLJg5V3gLll2thA=aMkvY63z6j7EsF4XIb9BQM9Vg_NPq0Tyq_c4qEjSGuI=KGmvFRgWqLXTGN-0TqwJrXtnIjxRssANR2E_1vsPHZg=CtJil6FZbGrYDvuuovO87MZKGQbQYXhR41-kweAs1C0=> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 "AdWords API and Google Ads 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/a45041bf-81d9-4d94-b601-18e44a06dd42n%40googlegroups.com.