How to get url from Ad

23 views
Skip to first unread message

Miha Zelnik

unread,
Jul 9, 2015, 1:07:35 PM7/9/15
to adwor...@googlegroups.com
Hy,

Last week my script for getting url from ad broke. I was using ad.ad.url. I also try with ad.ad.finalUrls and I'm getting error back 'TextAd' object has no attribute 'finalUrls'

I'm using v201502, I also try to upgrade to v201506, but googleads python lib looks like it is not supporting v201506 https://github.com/googleads/googleads-python-lib/blob/3.4.1/googleads/adwords.py

GoogleAdsValueError: Unrecognized version of the AdWords API. Version given: v201506 Supported versions: ['v201409', 'v201502', 'v201406']

When I request for ad I get this response, without any urls, only display url, which I don't need

(AdGroupAd){
   adGroupId = 13706829803
   ad =
      (TextAd){
         id = 68561727563
         displayUrl = "www.example.com"
         Ad.Type = "TextAd"
         headline = "What"
         description1 = "nothing"
         description2 = "asdfas adsf dsaf dasf dsaf"
      }
   status = "ENABLED"
   approvalStatus = "UNCHECKED"
   trademarkDisapproved = False
 }

My question is how can I get correct url from Ad?

Thank you for your help
Reply all
Reply to author
Forward
0 new messages