Hi,
I love that Smart Campaign data is going to be available from the API but have been having some issues getting the Keyword theme data. It is available according to the
Documentation and
Query Validator:
However, when I make the request I get an Internal Error.
For a minimal reproduction, when I try:
SELECT campaign_criterion.type, campaign_criterion.status, campaign_criterion.criterion_id, campaign_criterion.keyword_theme.keyword_theme_constant FROM campaign_criterion WHERE campaign_criterion.type = 'KEYWORD_THEME' LIMIT 1000
I get 8 results, which matches the UI.
But when I add the keyword constant (or any of the keyword constant related fields):
SELECT campaign_criterion.type, campaign_criterion.status, campaign_criterion.criterion_id, campaign_criterion.keyword_theme.keyword_theme_constant, campaign_criterion.keyword_theme.free_form_keyword_theme FROM campaign_criterion WHERE campaign_criterion.type = 'KEYWORD_THEME' LIMIT 1000
I get an internal error:
{
"StatusCode": 13,
"Details": "Internal error encountered.",
"RequestId": "pzk_nc5FCt-JBuizgrZ0XQ",
"Failure": {
"requestId": "pzk_nc5FCt-JBuizgrZ0XQ"
}
}
Another example,
SELECT campaign_criterion.type, campaign_criterion.status, campaign_criterion.criterion_id, campaign_criterion.keyword_theme.keyword_theme_constant, keyword_theme_constant.country_code FROM campaign_criterion WHERE campaign_criterion.type = 'KEYWORD_THEME' LIMIT 1000
Also gives:
{
"StatusCode": 13,
"Details": "Internal error encountered.",
"RequestId": "bPF8g8L0KtoMlsmNN0L6PQ",
"Failure": {
"errors": [
{
"errorCode": {
"internalError": "INTERNAL_ERROR"
},
"message": "An internal error has occurred."
}
],
"requestId": "bPF8g8L0KtoMlsmNN0L6PQ"
}
}
I believe each query is valid (according to the validator), and this reproduces repeatedly so I do not think it is a transient internal error.
Is anyone else encountering this issue? It's a real blocker for any Smart Campaign usage.
Thanks,
Kevin