Ad Params can only be set on keywords. If you want the same Ad Param value
for the entire Ad Group, you'll need to set that same value for every
keyword in that Ad Group.
On Tuesday, February 4, 2014 5:16:29 AM UTC-5, Alex wrote:
>
>
> As i understand, method setAdParam can be applied on keyword level, e.g.
> keyword.setAdParam(1,'data')
>
> I have no idea how to use such params. It would be great if smb tell me.
> how it can be applicable while using on a keyword level.
>
>
>
> But, the main question is! Let's imagine that we have an ad. Like this ->
>
>
>
> Nice title of a shop
>
> Buy some candies
>
> On {param1:10} coins
>
>
>
>
> Using params data looks logical. How can i use it in such way?
>
> I was hoping that such piece of code would resolve my problem
>
>
>
> var SPREADSHEET_URL = "URL";
>
> var spreadsheet = SpreadsheetApp.openByUrl(SPREADSHEET_URL);
>
> var sheet = spreadsheet.getActiveSheet()
>
> var data = sheet.getRange("A:C").getValues();
>
> var [cn,ag,param1] = data[i];
>
>
> var adGroups = AdWordsApp.adGroups()
>
> .withCondition("AdGroupName = '"+ag+"'")
>
> .withCondition("CampaignName = '"+cn+"'")
>
> .get();
>
>
> while (adGroups.hasNext()) {
>
> var ad = adGroups.next();
>
> //Logger.log('ad' + ad)
>
> ad.setAdParam(1,param1); // Fatal Error! What's the correct method?
>
> }
>
>
>
> But there is no way to add an adParam to the text ad, otherwise in
> documentation is noticed
> https://developers.google.com/adwords/api/docs/guides/ad-parameters that -
> An AdParam value is set for the Keyword, AdGroup
>
>
> Thanks for help!
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.