modify keyword text

7 views
Skip to first unread message

Douglas Cox

unread,
Jul 15, 2019, 2:22:21 PM7/15/19
to Google Ads Scripts Forum
Hello,

i'm looking to modify text of a keywords, specifically i have a script that pulls keywords that match a particular condition where the following a captured from AdsApp.report(query).
{
        keyword: text,
        campaignName: campaignName,
        adGroup: adGroupName,
        matchType: matchType,
        adGroupStatus: adGroupStatus,
        status: status,
        campaignStatus: campaignStatus
}
is there way that i can update the keyword text to something new, basically trying to add "+" search term original [searchTerm] update to [+searchTerm] , by modifying  the existing keyword. 
otherwise i'm lead towards use the "KeywordBuilder".

Google Ads Scripts Forum Advisor Prod

unread,
Jul 15, 2019, 4:10:43 PM7/15/19
to adwords-scripts+apn2wqca2huqjukc...@googlegroups.com, adwords-scripts+apn2wqca2huqjukc...@googlegroups.co, adwords...@googlegroups.com
Hi Douglas,

Keyword text is not mutable in scripts. You can only get text -- not set it. You can use ad params to dynamically set keyword text. You can also use keyword builders to create new keywords with new text. 

Regards,
Matt
Google Ads Scripts Team

ref:_00D1U1174p._5001U8LPdy:ref
Reply all
Reply to author
Forward
0 new messages