Cannot retrieve DIsplayUrl parameter from ExpandedTExtAd objects

76 views
Skip to first unread message

Ludovic Barreteau

unread,
Jun 16, 2020, 10:03:19 AM6/16/20
to AdWords API and Google Ads API Forum
Hello,

I'm currently working on a project using the api in php version v201809 via this library (38.0.0):


However I recently noticed that when retrieving data from an ExpandedTextAd object the DisplayUrl parameter is null.

I noticed a cautionary note on the doc api, but I don't know if it's related.


Have there been any changes in the api or is it a bug on my side? Do I need to update my library?

Translated with www.DeepL.com/Translator (free version)

Google Ads API Forum Advisor Prod

unread,
Jun 16, 2020, 4:17:59 PM6/16/20
to l.bar...@inlead.fr, adwor...@googlegroups.com
Hi Ludovic,

Thanks for reaching out. With regards to your concern, you should get data of DisplayUrl using  ExpandedTextAd object. Could you please share the complete detailed request and response logs along with customer id. Please Reply privately to the author so that I can further investigate the issue. You can find information on enabling logging in the ReadMe of your client library.

Let me know if you have any questions.

Thanks,
Nirmita Patel Google Ads Team

ref:_00D1U1174p._5004Q20ZGp4:ref

Ludovic Barreteau

unread,
Jun 17, 2020, 4:25:50 AM6/17/20
to AdWords API and Google Ads API Forum
Hello,

I tried to send a private reply but I couldn't see it.

Google Ads API Forum Advisor Prod

unread,
Jun 17, 2020, 3:07:04 PM6/17/20
to l.bar...@inlead.fr, adwor...@googlegroups.com
Hi Ludovic,

Thank you for providing information. I noticed that the you are using incorrect AdGroupId for getting DisplayUrl. This is the reason you will receive null parameter, I would suggest you please use the valid id to retrieve DisplayUrl. 

Let me know of you have any questions.

Ludovic Barreteau

unread,
Jun 18, 2020, 8:51:38 AM6/18/20
to AdWords API and Google Ads API Forum
Thank you for your response,

However, I don't see the problem with my AdGroupId.
I just tested on another account and another campaign, I have the right id for my adgroup, in the request and in the response.
Furthermore, the data received corresponds well to the data expected for my ExpandedTextAd. But the DisplayUrl field is missing.

Google Ads API Forum Advisor Prod

unread,
Jun 18, 2020, 3:44:26 PM6/18/20
to l.bar...@inlead.fr, adwor...@googlegroups.com
Hi Ludovic,

Thanks for reaching out. Can you please provide the  CID and ad group id of the account you tested it on. Could you please share the complete detailed request and response logs along with customer id. Please Reply privately to the author so that I can further investigate the issue. You can find information on enabling logging in the ReadMe of your client library.

Google Ads API Forum Advisor Prod

unread,
Jun 19, 2020, 1:22:59 PM6/19/20
to l.bar...@inlead.fr, adwor...@googlegroups.com
Hi Ludovic,

Thank you for providing information. I noticed that the you are using ad type is expandedtext, so the expanded text ads do not use urldisplayUrlfinalAppUrls, or devicePreference setting these fields on an expanded text ad will cause an error. It is expected behavior. Please refer to this guide.


Let me know if you have any questions.

Ludovic Barreteau

unread,
Jun 23, 2020, 3:21:17 AM6/23/20
to AdWords API and Google Ads API Forum
Hello, 

I had already seen the link of this guide it is precisely to have confirmation that I had opened this subject.

Thank you for your answers.

Have a nice day.
Reply all
Reply to author
Forward
0 new messages