Hi there,
Thanks for reaching out to the Google Ads API Forum.
Kindly note that the KeywordPlanIdeaService.GenerateKeywordForecastMetrics has similar functionality in the Google Ads UI Keyword Planner, and Forecast metrics provide metrics for proposed or existing campaigns, including:
- Impressions
- Click through rate
- Average cost per click
- Clicks
- Cost
To generate forecast metrics, you may see the steps below:
- Construct a campaign that you want to forecast CampaignToForecast.
- Call KeywordPlanIdeaService.GenerateKeywordForecastMetrics with that CampaignToForecast and any other parameters, such as forecast_period.
For the available sample PHP code related to the planning services, you may check this link under Planning. Let us know if you have any additional questions.
This message is in relation to case "ref:_00D1U1174p._5004Q2mUkRu:ref"
Thanks,
Google Ads API Team
Hello,
Thanks for getting back to us.
You may note that the request_error: Invalid customer ID '' is not a developer token related. I have checked accounts 7060933953 and 4537258414 and both are valid Ads accounts. However, for us to investigate why you encountered a request_error: Invalid customer ID '', our team requires the complete request and response logs with the request-id generated for API error. Could you provide these full logs?
To enable logging, you may refer here https://developers.google.com/google-ads/api/docs/best-practices/logging
Once you capture logs in the above format, kindly provide the requested logs via reply privately to author option.