Google Adwords API

BobGang-3117 6 Reputation points
2022-03-18T13:03:44.2+00:00

Linked Service connects but I am getting error when trying query:
SELECT campaign.name, campaign_budget.amount_micros, campaign.status, campaign.optimization_score, campaign.advertising_channel_type, metrics.clicks, metrics.impressions, metrics.ctr, metrics.average_cpc, metrics.cost_micros, campaign.bidding_strategy_type FROM campaign WHERE segments.date DURING LAST_7_DAYS AND campaign.status != 'REMOVED'

Error code 9602
DetailsERROR [42000] [Microsoft][SQLEngine] (31480) syntax error near 'SELECT campaign.name,
campaign_budget.amount_micros,
campaign.status,
campaign.optimization_score,
campaign.advertising_channel_type,
metrics.clicks,
metrics.impressions,
metrics.ctr,
metrics.average_cpc,
metrics.cost_micros,
campaign.bidding_strategy_type
FROM campaign
WHERE segments.date DURING<<< ??? >>> LAST_7_DAYS
AND campaign.status != 'REMOVED'

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pratik Somaiya 4,211 Reputation points Volunteer Moderator
    2022-03-20T05:59:26.48+00:00

    @BobGang-3117

    Can you check quotation marks in your SELECT query, I think this is an issue related to that as I can see a start quotation ' but not at the trail of the query as added in https://developers.google.com/google-ads/api/docs/migration/overview


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.