Hi,
My question pertains to the first instance of a Google Ads Client and making the first request from the Ads Api.
issue:
I notice that the first one seems to take some time on the very first instance.
After the user authenticates for the first time => the first request will take 10-15 seconds. After that things speed up greatly and it seems fine (1-2 secs). Have not had this issue with making POST requests either.
When a user logs into the app, the first request made is to get Shopping performance segmented by date ('last_30_days'). I did this to satisfy the Google RMF for standard shopping tool. However, this is my slowest call it seems. I question if it's a result of the query itself or if the first instance with Google has something to do with that.
Again after the first call, app all subsequent requests resolve quite fast.
API: V16 REST
here is the query below:
export const getAppAnalyticsQuery = (segment: string) => {
return `
SELECT
campaign.advertising_channel_type,
campaign.resource_name,
campaign.status,
segments.product_title,
metrics.conversions,
metrics.conversions_value,
metrics.clicks,
metrics.cost_micros,
metrics.cost_per_conversion,
metrics.ctr,
metrics.impressions,
metrics.average_cpc,
segments.date
FROM shopping_performance_view
WHERE
campaign.status = 'ENABLED'
AND campaign.advertising_channel_type = 'SHOPPING'
AND segments.date DURING ${segment}
ORDER BY
segments.date ASC
`;
};
Is this normal? I understand maybe sometimes the Access token needs to be refreshed, but I am not sure that if that has anything to do with it.
regards,
Michael