Re: Call generate_historical_metrics for multiple keyword plans in a single call

2023-01-18 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Nam,

There is no way to have multiple keyword plans at the same time for the 
KeywordPlanService.GenerateForecastMetrics in the Google Ads API. Add to that, 
all requests to Keyword Planning services for both standard and basic access 
are rate limited. Fewer requests are allowed per minute when compared to other 
services. Our recommendation is to cache or store results as you will receive 
the same response over a long time span. For example, if you request a set of 
existing keywords, the response is not going to change over a period of hours 
or days. In the case of historical metrics, the statistics refresh monthly.

Let us know if you have any other questions by opening a new forum thread or by 
reaching out to us via a support email alias.

Regards,

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 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/NBMYL0ROOAUG00B5v7XE2ETMGGTNhPePK3oQ%40sfdc.net.


Re: Call generate_historical_metrics for multiple keyword plans in a single call

2023-01-17 Thread Nam Đào
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* 
>
> , 
>*KeywordPlanCampaigns* 
>
> ,
>  
>*KeywordPlanAdGroups* 
>
> ,
>  
>*KeywordPlanCampaignKeywords* 
>
> ,
>  
>and *KeywordPlanAdGroupKeywords* 
>
> 
>. 
>2. Call *KeywordPlanService.GenerateForecastMetrics* 
>
> 
>  
>with that keyword plan. 
>
>  
>
> You may try to use *bulk mutates* 
> , 
> and see if it helps you. Also, *​​BatchJobService* 
> 
>  
> supports all of the operations listed in *MutateOperation* 
> ,
>  
> with a few important exceptions.
>
> The Google Ads API executes all operations in a job with *partial failure* 
> 
>  
> enabled. However, the following operations in MutateOperation do not 
> support partial failure because they must be *atomic* 
> . 
> 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* 
> 
>  
> instead, and set partial_failure to false in your requests.
>
> Your one request of  *GoogleAdsService.Mutate* 
> 
>  
> containing *MutateOperation* 
> 
>  
> 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* 
> 
>  
> to make request to *KeywordPlanService.GenerateForecastMetrics* 
> 
>  
> after creating the KeywordPlan, and then iterates through each of the 
> *KeywordPlanKeywordForecasts* 
> 
>  
> 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 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/fc2af68f-480a-4396-87b9-8c5c84d96958n%40googlegroups.com.


Re: Call generate_historical_metrics for multiple keyword plans in a single call

2023-01-17 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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:

Create a KeywordPlan, KeywordPlanCampaigns, KeywordPlanAdGroups, 
KeywordPlanCampaignKeywords, and KeywordPlanAdGroupKeywords.
Call KeywordPlanService.GenerateForecastMetrics with that keyword plan.


You may try to use bulk mutates, and see if it helps you. Also, 
​​BatchJobService supports all of the operations listed in MutateOperation, 
with a few important exceptions.

The Google Ads API executes all operations in a job with partial failure 
enabled. However, the following operations in MutateOperation do not support 
partial failure because they must be atomic. 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 instead, and set partial_failure to false in your requests.

Your one request of GoogleAdsService.Mutate containing MutateOperation may 
create following:


creating 199 KeywordPlans
creating 199 KeywordPlanCampaigns
creating 199 KeywordPlanAdGroups
creating 1000 KeywordPlanAdGroupKeywords under each KaywordPlanAdGroup.


Once you created the KeywordPlan, then second step is to run code example to 
make request to KeywordPlanService.GenerateForecastMetrics after creating the 
KeywordPlan, and then iterates through each of the KeywordPlanKeywordForecasts 
and displays each of the forecast metrics.

I hope this helps. Let us know if you have any questions.

Regards,

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 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/bkGHs0ROO1LZ00dPFiuJYARcKN8YWAEGhP1Q%40sfdc.net.


Re: Call generate_historical_metrics for multiple keyword plans in a single call

2023-01-17 Thread Nam Đào
My feature is not possible in the Google Ads UI. 
My tool will get data on a monthly basis, it is located on a separate 
server.

On Tuesday, January 17, 2023 at 9:48:19 PM UTC+7 adsapi wrote:

> Hi Nam,
>
> For security purposes, 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 googleadsapi-supp...@google.com.
>
>
> Best regards,
> [image: Google Logo] 
> Jinky 
> 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 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/20051d30-0959-4f89-934a-20f17c95ac9bn%40googlegroups.com.


Call generate_historical_metrics for multiple keyword plans in a single call

2023-01-16 Thread Nam Đào
Hi all, 
We have a tool that generates localized keyword suggestions to our clients 
based on historical search volumes. For that purpose we have been fetching 
historical metrics for ~1000 keywords on ~100 coutries.
 Basically our app makes;
1 mutate request for creating 199 KeywordPlans
1 search request for fetching the KeywordPlans
1 mutate request for creating 199 KeywordPlanCampaigns
1 search request for fetching the KeywordPlanCampaigns
1 mutate request for creating 199 KeywordPlanAdGroups
1 search request for fetching the KeywordPlanAdGroups
199 mutate requests for creating 1000 KeywordPlanAdGroupKeywords under each 
KaywordPlanAdGroup.
It took me 20 minutes to get the job done.
If I could call generate_historical_metrics for multiple keyword plans in a 
single call, it would be much faster.
Am I missing out on something?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/09dda706-8ba7-468a-950a-4bfd94680c04n%40googlegroups.com.