When I send this query via the ads api, I get back millions of keywords. The thing is, this account is a remarketing account and when I look in the web console, it has no keywords. When I hand checked 99 of the returned keywords, they were from another account(s) and our DB thought they were deleted. Getting back millions of interlopers makes me concerned that I'm getting back similar interlopers on the accounts which do have keywords. Can someone investigate and explain?
SELECT
ad_group.id, ad_group_criterion.criterion_id, ad_group_criterion.keyword.text, ad_group_criterion.keyword.match_type, ad_group_criterion.status, ad_group_criterion.cpc_bid_micros, ad_group_criterion.quality_info.quality_score, ad_group_criterion.approval_status
FROM ad_group_criterion
and ad_group_criterion.type = KEYWORD
and ad_group_criterion.status != 'REMOVED'
=> Found 4104310 keywords
Passing <REDACTED> as the customer id in the query header too. (I'm happy to provide the value for <REDACTED> to any Google employee directly)
Don Mitchell
Sr. Prin SW Arch