Getting authentication failed error while creating video asset for creating video ads

47 views
Skip to first unread message

Gaurav Sharma

unread,
Feb 28, 2023, 4:25:25 AM2/28/23
to Google Ads Scripts Forum
We are facing error "authentication failed" while trying to create a video asset from youtube video id. We recently started facing this issue, earlier it was working fine. 

We are running script from a manager account and trying to create video ad in the child account.

Regards,
Gaurav

Google Ads Scripts Forum Advisor

unread,
Feb 28, 2023, 9:30:10 AM2/28/23
to adwords...@googlegroups.com
Hi Gaurav,

In order for us to assist you further, could you please provide the following?
  • CID
  • Script name
  • Shareable link of the spreadsheet being used in the script (if there's any)
  • Screenshot of the error
Regards,
Google Logo Google Ads Scripts Team


ref:_00D1U1174p._5004Q2jHXJT:ref

Gaurav Sharma

unread,
Feb 28, 2023, 11:55:00 PM2/28/23
to Google Ads Scripts Forum
Hi,

Please find the required details.

CID - 277-207-0019
Manager Id - 527-642-5218
Script Name - Create Campaigns MCC (Script is deployed at manager level)
Screenshot - 
Screenshot 2023-03-01 at 10.20.33 AM.png

Regards,
Gaurav

Luke Beales

unread,
Mar 2, 2023, 2:42:39 AM3/2/23
to Google Ads Scripts Forum
Our scripts have been getting the same error at the same point for a few days.  The code that is suddenly firing the error is equal to this:

const assetOperation = AdsApp.adAsset().newYouTubeVideoAssetBuilder()
   
.withName("name")
   
// This is the ID in the URL for the YouTube video.
   
.withYouTubeVideoId(youTubeVideoId)
   
.build();


Nothing has changed on our side and we have found no solution.  Hope it helps narrow this down knowing there are others.

Gaurav Sharma

unread,
Mar 2, 2023, 2:56:40 AM3/2/23
to Google Ads Scripts Forum
We have found a workaround for this for now. The error is coming only for scripts with new experience disabled. Once the new experience is enabled for scripts, the issue is not coming. But did not find any information regarding the deprecation of the scripts with new experience disabled.

Google Ads Scripts Forum Advisor

unread,
Mar 2, 2023, 3:54:03 AM3/2/23
to adwords...@googlegroups.com

Hi Gaurav,

 

I'm glad that you were able to resolve the issue you've encountered.

 

Please note that executing your scripts without the new script experience button toggled on will have it generate in the legacy environment. I would suggest to migrate and execute your scripts in the new script experience as the legacy version of Google Ads Scripts is now deprecated. It is expected for scripts to not work as expected when being generated in the legacy version.

 

Best regards,

Google Ads Scripts Forum Advisor

unread,
Mar 2, 2023, 3:56:40 AM3/2/23
to adwords...@googlegroups.com

Hi Luke,

 

Would you be able to confirm if you're encountering the same issue being observed in this thread? If yes, in order for us to assist you further, could you please provide the following?:

  • Google Ads account ID or CID
  • Script name
  • Shareable link of the spreadsheet being used in the script, if applicable. You can follow this guide.
  • Screenshot of the error

Luke Beales

unread,
Mar 3, 2023, 5:04:52 AM3/3/23
to Google Ads Scripts Forum
Thanks Gaurav & Google support, we have switched our script over to the new script experience which has solved the Authentication failed issue.  Hopefully this helps others who have the same issue.  Have a great day :)
Reply all
Reply to author
Forward
0 new messages