expanded text ad update by script

8 views
Skip to first unread message

way...@trafficlab.dk

unread,
Feb 23, 2018, 4:56:36 AM2/23/18
to AdWords API Forum
Hi, is there any way to modify an expanded_text_ad Ad in  an adGroup by script?

something like this:

function main() {

  var adGroupIterator = AdWordsApp.adGroups().withCondition('Name = "AD_GROUP_NAME"').get();
  if (adGroupIterator.hasNext()) {
      
        var adGroup = adGroupIterator.next();
        var adsIterator = adGroup.ads().withCondition('Id=345435345').get();
        var ad = adsIterator.next().asType().expandedTextAd();

        ad.setHeadlinePart2(' A NEW HEADLINE HERE '); // THIS IS WHAT IAM ASKING FOR..
   }

}


Thanks 

Milind Sankeshware (AdWords API Team)

unread,
Feb 23, 2018, 10:35:04 AM2/23/18
to AdWords API Forum
Hi,

On this forum, we handle questions related to the AdWords API. Since your question is related to AdWords Script, could you please post the question on their forum?

Thanks,
Milind, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages