How to Add Multiple Ad Formats to a Video Campaign via Google Ads Script?

188 views
Skip to first unread message

Jose M

unread,
Feb 19, 2025, 5:52:29 PMFeb 19
to Google Ads Scripts Forum

Hi everyone,

I'm currently working on a Google Ads Script to create a Video Campaign via bulk uploads. Below is the script I'm using:

function main() {
  var campaignProps = {
    "Account ID": "4561927262",
    "Campaign": "20250219-A9",
    "Budget": "1",
    "Bid Strategy type": "Target CPM",
    "Campaign type": "video",
    "Campaign state": "paused",
    "Location": "Spain",
    "Devices": "Mobile devices with full browsers:+100%;Tablets with full browsers:+0%;Computers:+0%",
    "Networks": "YouTube videos"
  };

  var upload = AdsApp.bulkUploads().newCsvUpload(
    ["Account ID", "Campaign", "Budget", "Bid Strategy type", "Campaign type", "Campaign state", "Location", "Devices", "Networks"]
  );
  upload.append(campaignProps);
  upload.forCampaignManagement();
  upload.apply();
}

The campaign gets created successfully, but I need to add support for multiple ad formats within the same campaign (e.g., skippable in-stream, bumper ads, non-skippable ads, etc.).

My Questions:
  1. Is it possible to specify multiple ad formats when creating a video campaign via bulk uploads in Google Ads Scripts?
  2. If yes, what fields or parameters should I add to my campaignProps to support multiple ad formats?

Any insights or examples would be greatly appreciated!

Thanks in advance,

José M.

Google Ads Scripts Forum

unread,
Feb 19, 2025, 6:07:47 PMFeb 19
to Google Ads Scripts Forum

Hi Jose,

Thank you for reaching out to the Google Ads Scripts support team.

I would like to inform you that there is no ready made template in Bulk Uploads for creating different video Ads in a video campaign. I would suggest that you create video Ads directly in Google Ads Scripts by using the methods available in the Build the ad document.

I hope this helps! Feel free to get back to us for any further concerns.

Thanks,
Google Ads Scripts team

Jose M

unread,
Feb 20, 2025, 6:04:48 PMFeb 20
to Google Ads Scripts Forum

Hi Team,

Thank you for the quick response. I just wanted to confirm—there’s no way to create a campaign using Google Ads Scripts with the Multi-format ads section enabled on the campaign?

Looking forward to your feedback.

I’ve attached an image highlighting the specific section I’m referring to.

Best regards,

Jose M

Screenshot 2025-02-20 at 17.22.47.png

Google Ads Scripts Forum Advisor

unread,
Feb 20, 2025, 6:18:45 PMFeb 20
to adwords...@googlegroups.com

Hi Jose,

Multi-format Ads via Bulk Uploads are not supported in the Google Ads Scripts. Currently, you can create ‘In Stream Video Ads’ out of the mentioned multi-format ads by using the “inStreamAdBuilder()” method. You can find the below sample code for the same.

var videoAdGroupSelector = AdsApp.videoAdGroups()
var videoAdGroupIterator = videoAdGroupSelector.get();
while (videoAdGroupIterator.hasNext()) {
  var videoAdGroup = videoAdGroupIterator.next();
}
const videoAd = videoAdGroup.newVideoAd().inStreamAdBuilder().withAdName("Video Ad").withFinalUrl("http://www.example.com/video-ad").withVideo(video).build().getResult();

I hope this! Kindly get back to us if you still have any concerns.

Thanks,
 
Google Logo Google Ads Scripts Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-02-20 23:18:14Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH2yv:ref" (ADR-00289085)



Jose M

unread,
Apr 8, 2025, 1:25:49 PMApr 8
to Google Ads Scripts Forum
Dear Google Ads Scripts Team,

I am writing as a follow-up to a previous inquiry (case ADR-00289085) from February 2025 regarding the configuration of Multi-format ads in video campaigns through scripts.

My specific current question is: Is there any way using scripts to configure a video campaign to appear ONLY on YouTube Shorts, without needing to create ad groups?

In the Google Ads user interface, this can be easily done by checking only the "Shorts ads" option within "Multi-format ads," but I need to automate this process through scripts for multiple campaigns.

I have tried exploring various methods available in the campaign object, but I haven't found a way to access or modify this specific configuration. Has there been any update to the Google Ads Scripts API since February that allows this functionality?

Any guidance, sample code, or updated documentation on this topic would be greatly appreciated.

Thank you in advance for your time and assistance.

Best regards,

Jose M

Google Ads Scripts Forum Advisor

unread,
Apr 8, 2025, 6:32:05 PMApr 8
to adwords...@googlegroups.com
Hi,

I would like to inform you that there is no other way to configure the video campaigns to appear only on Youtube shorts without creating an ad group. This feature is currently not supported in Google Ads Scripts even if you are able to avail this in the Google Ads Interface. I would recommend keeping an eye on our blog post for future updates and the latest announcements.

Feel free to get back in case of any further queries.

Thanks,
 
Google Logo Google Ads Scripts Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-04-08 22:31:31Z GMT] This message is in relation to case "ref:!00D1U01174p.!5004Q02vH2yv:ref" (ADR-00289085)



Reply all
Reply to author
Forward
0 new messages