I'm trying to use the Google Ads API in Apps Script but am getting the following error, which doesn't help me diagnose the problem.
Can someone please provide an example JSON request for the
generateKeywordIdeas REST endpoint? I've tried nearly 100 different combinations of variable formats, and they all return the same undescriptive error.
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "
type.googleapis.com/google.ads.googleads.v11.errors.GoogleAdsFailure",
"errors": [
{
"errorCode": {
"keywordPlanIdeaError": "INVALID_VALUE"
},
"message": "The input has an invalid value."
}
],
"requestId": "YGYPoatXaAI1JJhkr2pTww"
}
]
}
}