I am trying to retrieve all Search Terms via the Google Ads PHP API.
However, I noticed that a lot of them are missing. After investigation I found out that API returns only those terms that belong to the type SEARCH campaigns. Others types are ignored. I don't understand why it works like this since when I click in Google Ads UI, the table containing these search terms has all of them in it.
My GAGL query that returns search terms that belong to SEARCH campaigns looks as follows:
SELECT
search_term_view.resource_name,
ad_group.id,
ad_group.status,
campaign.id,
search_term_view.ad_group,
search_term_view.resource_name,
search_term_view.search_term,
search_term_view.status,
segments.keyword.info.match_type,
segments.date,
metrics.clicks,
metrics.impressions,
metrics.ctr,
metrics.average_cpc
FROM search_term_view
WHERE segments.date DURING LAST_7_DAYS AND
When I try to specify other campaign types, I get 0 results, despite in the UI these search terms exist:
...FROM search_term_view
WHERE segments.date DURING LAST_7_DAYS AND campaign.advertising_channel_type IN ('DISPLAY', 'SHOPPING')
How can I get all Search terms?
Best,
Lukas.