Skip to content

ads pdf

davidmagnussonvalueguard edited this page Jan 11, 2022 · 5 revisions

Get ads

The code below gives an example of how to get a pdf snapshot of an ad.

import valueguard

vgClient = valueguard.Client()
vgClient.authenticate("<username>", "<password>")
ad_id = "2342324"
adPdf = vgClient.ads_pdf(search_criteria={
    "ad_id":"2342342"
})

with open(ad_id + '.pdf', 'wb') as f:
    f.write(adPdf)

Search criteria fields

Field name Description Example
ad_id ad id 12312312

Raw request

Get

curl https://api.valueguard.se/v1/ads/pdf?access_token={access_token}&ad_id={ad_id}
Clone this wiki locally