serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
50 stars 3 forks source link

[Google Search API] no `link` returned for some Ads in Google Search #291

Open marm123 opened 2 years ago

marm123 commented 2 years ago

Some links are missing from Google Search Ads results.

image

Playground | Inspect

austincollinpena commented 2 years ago

On other tools I've seen this happen because the link is hosted on a Google domain and then redirects to the destination. This is different from a tracking link.

My guess is if you set up a function to follow the link redirect you'll get the actual link.

hartator commented 2 years ago

My guess is if you set up a function to follow the link redirect you'll get the actual link.

We can't do that as this will register a click through Google Ads I would believe.

If there is no way to verify final link in a different way, we would remove that link field.

austincollinpena commented 2 years ago

That’s an interesting thought.

I wonder what would happen if you stripped any url parameters? Don’t you think it wouldn’t count as a click?

On Mon, Aug 29, 2022 at 5:42 PM hartator @.***> wrote:

My guess is if you set up a function to follow the link redirect you'll get the actual link.

We can't do that as this will register a click through Google Ads I would believe.

If there is no way to verify final link in a different way, we would remove that link field.

— Reply to this email directly, view it on GitHub https://github.com/serpapi/public-roadmap/issues/291#issuecomment-1230892976, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNUVGSS2TAM6AFDO73HG2TV3UVETANCNFSM5744ZYOA . You are receiving this because you commented.Message ID: @.***>

hartator commented 2 years ago

I wonder what would happen if you stripped any url parameters? Don’t you think it wouldn’t count as a click?

The final link is probably there in clear though. It seems to be just a new format of ad.

austincollinpena commented 1 year ago

Is this a won't fix? I get a ton of serp results without links and that negatively affects my application

hartator commented 1 year ago

Is this a won't fix? I get a ton of serp results without links and that negatively affects my application

Yes, this is for now a wontfix. Sorry about that.

I am waiting for 2nd set of eyes to double check my findings. I can be wrong.

However, the destination link doesn't seem to be in HTML (or anywhere else) anymore. The only way to get the destination link would be to follow the Google Ads link. Which we won't do as this might be counted as a click. This issue seems not be possible to fix technically on our side unfortunately.

austincollinpena commented 1 year ago

Can we test it? I can set up a Google ads campaign where you follow one of these links and we can see if I get a click in the area you searched from.

hartator commented 1 year ago

Can we test it? I can set up a Google ads campaign where you follow one of these links and we can see if I get a click in the area you searched from.

No, because even if this test follow gets ignored there is no guarantee that other follows won't be.