can't create text_ad with url

17 views
Skip to first unread message

Kimsrung Lov

unread,
Sep 14, 2015, 11:18:59 PM9/14/15
to AdWords API Forum
Hi Adwords team,

I hope this email finds you well. I got a question here about setting params for text_ad. For the latest, it sites that destination url still can be used if we are not using upgrade urls. However, I got an error while I was trying to set url param. I wonder if it's still possible to set url or should I just set final urls. Here is an example of my creation text ad: 

{:ad_group_id=>"19070218244",


 :ad=>


  {:xsi_type=>"TextAd",


   :headline=>"Listing Directory",


   :description1=>"Advertising agency",


   :description2=>"Directory Publisher",


   :display_url=>"www.example.com",


   :device_preference=>30001,


   :url=>"http://example.com"}}



I'm looking forward to hearing from you.

Thanks,
Kimsrung


Umesh Dengale

unread,
Sep 15, 2015, 4:49:32 PM9/15/15
to AdWords API Forum
Hi Kimsrung,

Please use the final_urls field instead of url. (The url property represent the destination URL which is deprecated and replaced by final URLs (finalUrls).) Please check out our add_text_ads example code from Rubi client library for details.

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages