I'm seeing the same issue, and it seems to be new. In the past I regularly 
ran API requests using the 
syntax 
https://googleads.googleapis.com/v13/customers/1111111/keywordPlans/2222222:generateHistoricalMetrics.
 
Where it says  2222222  I'd plug in the plan ID after creating the keyword 
plan through the Google Ads UI. In the past, data viewed in the UI or 
retrieved via the API always matched. 

In the past few weeks, this seems to have changed such that any new plans 
created in the UI now result in empty object {} when running the request 
URL shown above (data is still available through the UI). This seems to be 
related to a recent format change, since old plan IDs work until I hit the 
""You must update this plan to a newer format to open it. This format can 
be used with a new feature that automatically organizes keywords into ad 
groups"" and click Continue. Once the plan is updated, the API request 
starts returning the empty object instead of historical metrics.

Is this a known change or limitation of the new plan formats?

On Friday, March 3, 2023 at 6:37:34 AM UTC+8 Maxim Kurapatkin wrote:

> Hi,
> It is a plan with 2 keywords inside. Plan created by adwords UI. Adwords 
> UI return historical metrics for these two keywords. No problems with that.
> Now i connect to plan thru Ads API (version 13). get the plan and run 
> generate_historical_metrics against it. But the response is zero, no 
> keywords no metrics.
>
> I tried another way. Open plan thru API and then tried to add keywords 
> thru UI. But no success. UI failed to open the plan.
>
> I'm pretty sure it is something about API versions or i have to add plan 
> campaign, adgroup and keyword thru API when creating the plan from API?
>
> Probably no way to manage plan thru UI and pull metrics from API? Please 
> advice.
>  
>
>
>
> On Thursday, March 2, 2023 at 11:44:01 AM UTC-5 Google Ads API Forum 
> Advisor wrote:
>
>> Hi,
>>
>> Thanks for reaching out to the Google Ads API Forum.
>>
>> I understand that you were able to retrieve historical info for keywords 
>> plan via Google Ads API but the response shows it as response.metrics == 
>> []. Can you please confirm if the UI's Keyword Planner is showing the same 
>> results as the API response shown? If yes, then Google Ads API mirrors the 
>> Google Ads UI. If not, then you may note that the 
>> *KeywordPlanService.GenerateHistoricalMetrics* 
>> <https://developers.google.com/google-ads/api/reference/rpc/v13/KeywordPlanService#generatehistoricalmetrics>
>>  
>> has similar functionality in the UI's Keyword Planner. But, the API 
>> requires that you create a KeywordPlan first, and *there are differences 
>> when working with a keyword plan using the Google Ads API versus the UI*. 
>> You may refer to these *recommendations* 
>> <https://developers.google.com/google-ads/api/docs/keyword-planning/understanding-kpplan-settings#recommendations>
>>  
>> on how to avoid mismatches in historical metrics when mixing usage. For 
>> more information, you may refer to this *page* 
>> <https://developers.google.com/google-ads/api/docs/keyword-planning/overview>
>> .
>>
>> Regards,
>> [image: Google Logo] Google Ads API Team 
>>
>> ref:_00D1U1174p._5004Q2jIaR2: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/5d3c8b51-97d7-49e5-a761-1367021a8070n%40googlegroups.com.
  • Ge... 'Maxim Kurapatkin' via Google Ads API and AdWords API Forum
    • ... Google Ads API and AdWords API Forum
      • ... Ana K
    • ... veyisahsak2735
      • ... Veyis Ahsak
        • ... Veyis Ahsak
          • ... Trent Raynard
            • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to