googleads / google-ads-php

Google Ads API Client Library for PHP
https://developers.google.com/google-ads/api/docs/client-libs/php
Apache License 2.0
280 stars 260 forks source link

big bug!! your example returns error anyway! #1029

Closed devorel closed 2 months ago

devorel commented 2 months ago

https://github.com/googleads/google-ads-php/blob/3b876a88574a44652ad091da9c731267095b97ea/examples/Planning/GenerateForecastMetrics.php#L124

{ "message": "Request contains an invalid argument.", "code": 3, "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com\/google.ads.googleads.v16.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "keywordPlanIdeaError": "INVALID_VALUE" }, "message": "The input has an invalid value." } ], "requestId": "IEDc8kNrlpbKK3l4Xrt15g" } ] }

Client library and Google Ads API versions:

Client library version: v23.0.1 Google Ads API version: V16 Environment:

The PHP-FPM version: 8.3.

fiboknacky commented 2 months ago

What are the parameters you passed to the code examples?

devorel commented 2 months ago

as is , like in the example. $googleAdsClient, = meneger account int $customerId customer account

fiboknacky commented 2 months ago

I cannot reproduce your error. It runs fine on my side. Since it's not a client-library issue, could you post on the Google Ads API forum instead? Thanks.

devorel commented 2 months ago

now it's works , i cannot explain why ?! maybe it because the account is new