Hi, 
I am trying get GenerateForecastMetrics.php to work.
Say my customerID = 9999999999

I first run AddKeywordPlan.php and it gives me something like:
customers/9999999999/keywordPlanCampaignKeywords/123456789

Am I right in assuming that '123456789' is saved somewhere?

I then run 
php GenerateForecastMetrics.php --customerId=9999999999 
--keywordPlanId=123456789

The following then gets generated:
===============================================================================================
[2021-09-10T10:46:20.555652-04:00] google-ads.WARNING: Request made: Host: 
"googleads.googleapis.com", Method: 
"/google.ads.googleads.v8.services.KeywordPlanService/GenerateForecastMetrics", 
CustomerId: "No customer ID could be extracted from the request", 
RequestId: "Rm2N37QUK-TTJicGhNsY_g", IsFault: 1, FaultMessage: "["No plan 
with planId[123456789] exists"]"
[2021-09-10T10:46:20.560864-04:00] google-ads.NOTICE: Request
-------
Method Name: 
/google.ads.googleads.v8.services.KeywordPlanService/GenerateForecastMetrics
Host: googleads.googleapis.com
Headers: {
    "x-goog-api-client": "gl-php\/8.0.10 gapic\/ gax\/1.7.1 grpc\/1.38.0",
    "x-goog-request-params": 
"keyword_plan=customers\/9999999999\/keywordPlans\/123456789",
    "developer-token": "REDACTED"
}
Request:
{"keywordPlan":"customers/9999999999/keywordPlans/123456789"}

Response
-------
Headers: {
    "request-id": "Rm2N37QUK-TTJicGhNsY_g",
    "date": "Fri, 10 Sep 2021 14:46:20 GMT",
    "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; 
ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; 
ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; 
ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\""
}

Fault
-------
Status code: 3
Details: Request contains an invalid argument.
Failure: 
{"errors":[{"errorCode":{"keywordPlanError":"KEYWORD_PLAN_NOT_FOUND"},"message":"No
 
plan with planId[123456789] exists"}],"requestId":"Rm2N37QUK-TTJicGhNsY_g"}
Request with ID 'Rm2N37QUK-TTJicGhNsY_g' has failed.
Google Ads failure details:
        keyword_plan_error: No plan with planId[123456789] exists
        
        
=============================================================================================
  
      

Why is it not finding this keyword plan?

Thanks,

..Mike

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fe764785-457c-4f38-aa75-090d8f9b5d6en%40googlegroups.com.

Reply via email to