Hi,
I am using KeywordPlanIdeaService.generateKeywordIdeas(). If I set the date
range for the historical metrics (today: 3rd of May 2023) to the last month
(start and end: April 2023) I get an INVALID_VALUE:
Request
-------
MethodName:
google.ads.googleads.v13.services.KeywordPlanIdeaService/GenerateKeywordIdeas
Endpoint: googleads.googleapis.com:443
Headers: {developer-token=REDACTED, login-customer-id=REDACTED,
x-goog-api-client=gl-java/20.0.1 gccl/25.0.0 gapic/25.0.0 gax/2.25.0
grpc/1.54.0 pb/3.21.12}
Body: customer_id: "REDACTED"
keyword_and_url_seed {
url: "REDACTED"
keywords: "adidas"
}
keyword_plan_network: GOOGLE_SEARCH
language: "languageConstants/1001"
historical_metrics_options {
year_month_range {
start {
year: 2023
month: APRIL
}
end {
year: 2023
month: APRIL
}
}
include_average_cpc: true
}
Response
--------
Headers:
Metadata(content-type=application/grpc,request-id=0AoWTLfIy_hX3ZdVM-zSWw,date=Wed,
03 May 2023 10:34:28 GMT,alt-svc=h3=":443"; ma=2592000,h3-29=":443";
ma=2592000)
Body: null
Failure message: errors {
error_code {
keyword_plan_idea_error: INVALID_VALUE
}
message: "The input has an invalid value."
}
request_id: "0AoWTLfIy_hX3ZdVM-zSWw"
Status: Status{code=INVALID_ARGUMENT, description=Request contains an
invalid argument., cause=null}.
When are the historical data safely available?
Best regards,
Markus
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/2d42182a-43fc-4403-85c9-89ab830fdcb4n%40googlegroups.com.