Thanks, Stage 1 I used MutateOperation, everything is fine But in stage 2, make request to KeywordPlanService.GenerateForecastMetrics. I have to call each request for each keywordplan. Is it possible to request to KeywordPlanService.GenerateForecastMetrics for multiple keywordplans at the same time?
On Wednesday, January 18, 2023 at 12:23:05 PM UTC+7 adsapi wrote: > Hi Nam, > > I work with Jinky. Thanks for getting back to us. > > Thanks for confirming that your said feature is not possible in the Google > Ads UI. To generate forecast metrics, you may breakdown your implementation > for your tool in following 2 steps: > > 1. Create a *KeywordPlan* > > <https://developers.google.com/google-ads/api/reference/rpc/v12/KeywordPlan>, > *KeywordPlanCampaigns* > > <https://developers.google.com/google-ads/api/reference/rpc/v12/KeywordPlanCampaign>, > > *KeywordPlanAdGroups* > > <https://developers.google.com/google-ads/api/reference/rpc/v12/KeywordPlanAdGroup>, > > *KeywordPlanCampaignKeywords* > > <https://developers.google.com/google-ads/api/reference/rpc/v12/KeywordPlanCampaignKeyword>, > > and *KeywordPlanAdGroupKeywords* > > <https://developers.google.com/google-ads/api/reference/rpc/v12/KeywordPlanAdGroupKeyword> > . > 2. Call *KeywordPlanService.GenerateForecastMetrics* > > <https://developers.google.com/google-ads/api/reference/rpc/v12/KeywordPlanService#generateforecastmetrics> > > with that keyword plan. > > > > You may try to use *bulk mutates* > <https://developers.google.com/google-ads/api/docs/mutating/overview?hl=en>, > and see if it helps you. Also, *BatchJobService* > <https://developers.google.com/google-ads/api/docs/batch-processing/overview?hl=en> > > supports all of the operations listed in *MutateOperation* > <https://developers.google.com/google-ads/api/reference/rpc/v12/MutateOperation>, > > with a few important exceptions. > > The Google Ads API executes all operations in a job with *partial failure* > <https://developers.google.com/google-ads/api/docs/best-practices/partial-failures> > > enabled. However, the following operations in MutateOperation do not > support partial failure because they must be *atomic* > <https://developers.google.com/google-ads/api/docs/mutating/bulk-mutate>. > As a result, they are *not* supported within batch jobs and you should > avoid adding them to your jobs. > > If you need to execute any of these operations, use the mutate method of > *GoogleAdsService* > <https://developers.google.com/google-ads/api/reference/rpc/v12/GoogleAdsService> > > instead, and set partial_failure to false in your requests. > > Your one request of *GoogleAdsService.Mutate* > <https://developers.google.com/google-ads/api/reference/rpc/v12/GoogleAdsService#mutate> > > containing *MutateOperation* > <https://developers.google.com/google-ads/api/reference/rpc/v12/MutateOperation?hl=en> > > may create following: > > > > 1. creating 199 KeywordPlans > 2. creating 199 KeywordPlanCampaigns > 3. creating 199 KeywordPlanAdGroups > > > 1. creating 1000 KeywordPlanAdGroupKeywords under each > KaywordPlanAdGroup. > > > > > > Once you created the KeywordPlan, then second step is to run *code > example* > <https://developers.google.com/google-ads/api/samples/generate-forecast-metrics> > > to make request to *KeywordPlanService.GenerateForecastMetrics* > <https://developers.google.com/google-ads/api/reference/rpc/v12/KeywordPlanService#generateforecastmetrics> > > after creating the KeywordPlan, and then iterates through each of the > *KeywordPlanKeywordForecasts* > <https://developers.google.com/google-ads/api/reference/rpc/v12/KeywordPlanKeywordForecast> > > and displays each of the forecast metrics. > > I hope this helps. Let us know if you have any questions. > > Regards, > [image: Google Logo] > Yasar > Google Ads API Team > > > ref:_00D1U1174p._5004Q2hz9s8: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 [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/fc2af68f-480a-4396-87b9-8c5c84d96958n%40googlegroups.com.
