Re: getMetrics() result does not yield for all keywords

2022-05-12 Thread Alexander Orlov
Not really: In version 10.1 
KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics is meant to be used 
without creating a Keyplan, Campaign, Adgroups or the like. 
However, your link leads exactly to the description I found also before.
Does this mean, specifying the context of a language and geolocations still 
needs the creation of the overhead objects? 
Best regards
Alex

adsapi schrieb am Donnerstag, 12. Mai 2022 um 04:30:36 UTC+2:

> Hi Alexander,
>
> Thank you for your reply.
>
> You can refer to the example from this guide 
> 
>  
> as it provides details on how to include geo targets as well as language 
> constants, in your keyword plan. I hope this helps.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aqoWc: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/46335f8c-b080-4304-a9f0-d35520fde98cn%40googlegroups.com.


Re: getMetrics() result does not yield for all keywords

2022-05-11 Thread Alexander Orlov
In version 10.1 for the request of 
KeywordPlanIdeaService.GenerateKeywordHistoricalMetrics 

 how 
to set e.g. a language and geoConstants?

Best regards
Alex

adsapi schrieb am Mittwoch, 11. Mai 2022 um 14:57:46 UTC+2:

> Hi Alexander,
>
> Thanks for confirming that you are able to already solve the problem using 
> v10.1. Should you have additional clarifications with the APIs, you may 
> open a new thread, and we'll be happy to assist you.
>
> Regards,
> [image: Google Logo] 
> Yasar 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aqoWc: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/00bac522-3084-4db1-bb99-69c72ea1bde2n%40googlegroups.com.


Re: getMetrics() result does not yield for all keywords

2022-05-11 Thread Alexander Orlov
Thanks a lot for the answer and especially for hinting to the new version. 
Historical metrics include now more fields I need. 

I was able however to already solve my problem: 
Some of the missing keywords were hiding in close_variants and some others 
were added (unexpectedly) to the original list, which I passed. Though, 
with some array_diffs I was able to find all (!) missed (and new) keywords. 
Thanks again for your efforts. 

adsapi schrieb am Dienstag, 10. Mai 2022 um 20:45:06 UTC+2:

> Hi Alexander,
>
> Thanks for reaching out. Can you please try generating metrics for a list 
> of keywords in version 10.1? In this version 
> , 
> you are not required to pass a keyword plan, keyword plan campaign, or ad 
> group. 
>
> If you continue to see the issue where you are not receiving metrics for 
> each listed keyword, can you please *privately *provide us with the 
> complete request and response logs?
>
> Regards,
> Matt
> Google Ads API Team
>
> [image: Google Logo] 
> Matt 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2aqoWc: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/7df54fed-41bb-4a2f-b919-e9c6f3a65903n%40googlegroups.com.


Re: getMetrics() result does not yield for all keywords

2022-05-09 Thread Alexander Orlov
found something new. 
If I reduce the pagination number, the number of lost results reduces as 
well. Roughly the distribution follows 

plot points[(1, 4.72),(5000, 2.12),(2500, .78),(1250, .43),(625, 
.30),(500, .24),(250, .03),(200,0.03)]

(via WolframAlpha), where the y-axis is in percent and the x-axis is the 
pagination number. 

The idea comes into my mind because of the *RECOMMENDED_PAGE_SIZE* parameter, 
used 
in AdWords API. However, both of the questions above remains:
1. Why getMetrics() loose results? 
2. How to find out, which keywords exactly were omitted during processing? 
and now
3. Is reducing the number of keywords/plan a valid workaround or do I miss 
something here? At least the documentation states, the amount of keywords 
per plan allowed is 1. 

Alexander Orlov schrieb am Sonntag, 8. Mai 2022 um 16:10:57 UTC+2:

> Hi all! 
> (As usual) I'm working on migrating AdWords API to Ads API. 
> The use case is the following: 
>
> Feed an amount of keywords (paginating them by keyword plans a 10k) to 
> generateHistoricalMetrics($keywordPlanResource) and collect the results.
>
> To achieve this I followed rather closely the instructions at 
>
> https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en
> and especially 
>
> https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#mapping_to_the_ui
> using KeywordPlanAdGroupKeywords (with a single ad group)
> and avoiding to pass a specific date range for now, relying on the default 
> value. 
>
> I had to apply some filters on my keywords because of 
> KEYWORD_HAS_INVALID_CHARS and KEYWORD_TEXT_TOO_LONG, but all the errors 
> which I'm aware of are gone now. 
>
> Now, I found out, that the KeywordPlanHistoricalMetrics object does *not* 
> contain any keyword id (of the form 
> customers/*/keywordPlanAdGroupKeywords/*) So, I have to rely on the correct 
> ordering. This is ok as it seems, that the original ordering of keywords is 
> preserved within the results. 
> https://developers.google.com/protocol-buffers/docs/encoding#optional
>
> But still I have the problem, that 
>
> count($keywordPlanServiceClient->generateHistoricalMetrics($keywordPlanResource)->getMetrics())
>  
> < count($passedKeywords)
>
> where each of $passedKeywords where passed to 
>
> new KeywordPlanAdGroupKeyword([
> 'text' => $passedKeyword,
> 'match_type' => KeywordMatchType::EXACT
> 'keyword_plan_ad_group' => $planAdGroupResource
> ]);
>
> So I have two questions here: 
>
> 1. Why getMetrics() does not yield the same amount of results as the 
> amount of passed keywords?
>
> 2. I'm struggling with debugging at this moment: Say, I want to know which 
> keywords are let out. Either for providing more information at this place 
> or just to skip them, and let my customer know, that these particular 
> keywords were not queried. How to do this, when although I have a 
> keyword-id for every passed keyword I cannot match the returned metrics to 
> them, because the KeywordPlanHistoricalMetrics object does not contain any 
> keyword id. 
>
>
> Cheers and thanks in advance 
>
> Alex
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/e1bf0bb8-aa14-4adc-a93a-118ac371dbbbn%40googlegroups.com.


getMetrics() result does not yield for all keywords

2022-05-08 Thread Alexander Orlov
Hi all! 
(As usual) I'm working on migrating AdWords API to Ads API. 
The use case is the following: 

Feed an amount of keywords (paginating them by keyword plans a 10k) to 
generateHistoricalMetrics($keywordPlanResource) and collect the results.

To achieve this I followed rather closely the instructions at 
https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en
and especially 
https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#mapping_to_the_ui
using KeywordPlanAdGroupKeywords (with a single ad group)
and avoiding to pass a specific date range for now, relying on the default 
value. 

I had to apply some filters on my keywords because of 
KEYWORD_HAS_INVALID_CHARS and KEYWORD_TEXT_TOO_LONG, but all the errors 
which I'm aware of are gone now. 

Now, I found out, that the KeywordPlanHistoricalMetrics object does *not* 
contain any keyword id (of the form 
customers/*/keywordPlanAdGroupKeywords/*) So, I have to rely on the correct 
ordering. This is ok as it seems, that the original ordering of keywords is 
preserved within the results. 
https://developers.google.com/protocol-buffers/docs/encoding#optional

But still I have the problem, that 

count($keywordPlanServiceClient->generateHistoricalMetrics($keywordPlanResource)->getMetrics())
 
< count($passedKeywords)

where each of $passedKeywords where passed to 

new KeywordPlanAdGroupKeyword([
'text' => $passedKeyword,
'match_type' => KeywordMatchType::EXACT
'keyword_plan_ad_group' => $planAdGroupResource
]);

So I have two questions here: 

1. Why getMetrics() does not yield the same amount of results as the amount 
of passed keywords?

2. I'm struggling with debugging at this moment: Say, I want to know which 
keywords are let out. Either for providing more information at this place 
or just to skip them, and let my customer know, that these particular 
keywords were not queried. How to do this, when although I have a 
keyword-id for every passed keyword I cannot match the returned metrics to 
them, because the KeywordPlanHistoricalMetrics object does not contain any 
keyword id. 


Cheers and thanks in advance 

Alex

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/00920dc3-b7e7-46dc-9006-9911311c41efn%40googlegroups.com.