in this code example, I don't understand what the AdsApp object refers to how do I ad AdsApp to my code? How do I find out the object model of 'AdsApp' object?
Thanks -Aaron ------------------------------------------------------------------------------- function addImageAd() { // If you have multiple adGroups with the same name, this snippet will // pick an arbitrary matching ad group each time. In such cases, just // filter on the campaign name as well: // // AdsApp.adGroups() // .withCondition('Name = "INSERT_ADGROUP_NAME_HERE"') // .withCondition('CampaignName = "INSERT_CAMPAIGN_NAME_HERE"') var adGroupIterator = AdsApp.adGroups() .withCondition('Name = "INSERT_ADGROUP_NAME_HERE"') .get(); var mediaIterator = AdsApp.adMedia().media() .withCondition('Name = "INSERT_IMAGE_NAME_HERE"') .get(); if (adGroupIterator.hasNext() && mediaIterator.hasNext()) { var adGroup = adGroupIterator.next(); var image = mediaIterator.next(); adGroup.newAd().imageAdBuilder() .withName('Ad name') .withImage(image) .withDisplayUrl('http://www.example.com') .withFinalUrl('http://www.example.com') .build(); // ImageAdBuilder has additional options. // For more details, see // https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_imageadbuilder } } https://developers.google.com/google-ads/scripts/docs/examples/ads -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a5ebf2fc-05fc-4ab9-bd6f-de2b14e1da86n%40googlegroups.com.