Checking param values

27 views
Skip to first unread message

Ryan Jones

unread,
Nov 11, 2013, 3:17:59 PM11/11/13
to adwords...@googlegroups.com
Is there any way to check if a keyword already has a ad parameters set? I wanted to speed up a script by updating params only when necessary (ie if they differ from those currently being used); I know how to check the current value of a param, but the script breaks if it encounters a new keyword that's not previously had the param set.

Thanks,

Ryan

DuracellTomi

unread,
Nov 13, 2013, 3:36:57 PM11/13/13
to adwords...@googlegroups.com
Hi Ryan,

I did not try but maybe you could use the adParams() method of a Keyword object to check whether it has ad params or not:

I am thinking about something like:

yourkeywordresult.adParams.get().totalNumEntities() > 0


Hope this helps.

Cheers,
Thomas Geiger
Reply all
Reply to author
Forward
0 new messages