Get / Delete Ad Schedule API

50 views
Skip to first unread message

Juan Carlos Blanco Delgado

unread,
Oct 31, 2019, 8:58:36 AM10/31/19
to AdWords API and Google Ads API Forum
Hello, 

I am trying to get the Ad Schedule using the API, I can do it using Google AdWords Scripts but I need to change the ad schedule of too many campaigns and the 30 minutes is not enough.

If I have to use API Beta will be ok, any solutions to solve this issue.

Thank you 


Google Ads API Forum Advisor Prod

unread,
Oct 31, 2019, 3:56:10 PM10/31/19
to rsc.camp...@gmail.com, adwor...@googlegroups.com
Hi Juan, 

We recommend to continue running production systems using the AdWords API. While Google Ads API is in “beta”, you may use the new API for testing and development work in preparation for future migration. If you're using Google Ads API for your internal testing, you may use the campaign_criterion resource. If you're using AdWords API, the Criteria Performance Report will return this data. If your concern is different, could you please elaborate with a screenshot from the UI?

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UKP9Wa:ref

Juan Carlos Blanco Delgado

unread,
Nov 1, 2019, 7:43:43 AM11/1/19
to AdWords API and Google Ads API Forum
Hi Bharani, 

Thank you for your reply!

I want to modify the Ad schedule, not reporting. 

To elaborate a little more, within our company we have thousands of campaigns, and when there is a holiday we want to stop those campaigns. I could do it with AdWords script but the 30 minutes limit is not enough to delete the ad schedule. 

How can I modify an ad schedule by using the API? 

Google Ads API Forum Advisor Prod

unread,
Nov 1, 2019, 2:42:06 PM11/1/19
to rsc.camp...@gmail.com, adwor...@googlegroups.com

Hi Juan, 

You may use the ExtensionFeedItemService to update the AdSchedule or remove the existing schedules. You will need to make a request with the ExtensionFeedItem and resource name of the specific feed item. Please find the code sample below in Java as a reference.

ExtensionFeedItem extensionFeedItem = ExtensionFeedItem.newBuilder()
.setResourceName(ResourceNames.extensionFeedItem(customerId, 93452085881L))
.setStartDateTime(StringValue.of("2018-02-01 14:34:30"))
.setDevice(FeedItemTargetDevice.MOBILE)
.setEndDateTime(StringValue.of("2018-02-01 14:34:30"))
.setStatus(FeedItemStatus.ENABLED)
.build();

ExtensionFeedItemOperation operation = ExtensionFeedItemOperation.newBuilder()
.setUpdate(extensionFeedItem)
.setUpdateMask(FieldMasks.allSetFieldsOf(extensionFeedItem))
.build();

Please give this a try and let me know if you have any issues. 



Thanks,
Bharani, Google Ads API Team



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