HOW TO CREATE DYNAMIC AD USING ADWORDS API

194 views
Skip to first unread message

mccac...@india.com

unread,
Mar 22, 2011, 3:34:04 AM3/22/11
to adwor...@googlegroups.com
Hi,
I am using Adwords API (V201101) and wanted to create dynamic ads.
I want to create ad,

Cricket score
IND 219/2 In 36.0 ovrs
www.example.com

I found I can create dynamic ad like,

Cricket score
{param1:default_text} In {param2:default_text} ovrs
www.example.com

But I trying with sandbox and I used "SetParams" from adwords api. but its not worked. Now I am now stopped there and not finding any way so please anyone can help me.

Anash P. Oommen

unread,
Mar 24, 2011, 4:16:15 AM3/24/11
to adwor...@googlegroups.com
Hi,

The client libraries have code examples for setting ad params. For example, the PHP code example is here: http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201101/SetAdParams.php.

That said, it might not be that easy to get this done; an ad can have have only 2 params, and they can only be numerals or currency values. Your ad would need 3 (score, wicket, overs). You may have to modify your ads a bit to fit the limitations. 

You can refer to the following blogs for more details:


Cheers,
Anash P. Oommen,
AdWords API Advisor.

Chris

unread,
Mar 24, 2011, 4:24:34 AM3/24/11
to adwor...@googlegroups.com
You can do this with 2 parameters, e.g. param1 = 219/2 and param2 = 36.0

So use your params as param1 = "runs"/"wickets" & param2 = "overs"."balls"



Anash P. Oommen

unread,
Mar 24, 2011, 4:34:58 AM3/24/11
to adwor...@googlegroups.com
Hi,

Spoke too soon. / and . are supported in v201101, so you can support the ad you suggested. Thanks Chris.
Reply all
Reply to author
Forward
0 new messages