Create ad schedule bug

141 views
Skip to first unread message

Eylon Raymond Harari

unread,
Feb 26, 2021, 6:18:02 AM2/26/21
to AdWords API and Google Ads API Forum
Ad schedule cannot be updated for a 45 minute timeframe. 

0, 15, 30 minutes works fine. When I add "FORTY_FIVE" in startMinute/endMinute it rounds it back to 0 (see examples below)

Refference: 

Endpoint:
https://googleads.googleapis.com/v6/customers/{customerid}/campaignCriteria:mutate

Example operations and results: 


1. Works as expected, the result is: WEDNESDAY: 20:15-23:15

{

   "create":{

      "adSchedule":{

         "startMinute":"FIFTEEN",

         "endMinute":"FIFTEEN",

         "dayOfWeek":"WEDNESDAY",

         "startHour":20,

         "endHour":23

      },

      "campaign":"customers/{customerid}/campaigns/{campaignid}",

      "bidModifier":1

   }

}


2. Not Working as expected, the result is: WEDNESDAY: 20:15-23:00, instead of the expected WEDNESDAY: 20:15-23:45

{

   "create":{

      "adSchedule":{

         "startMinute":"FIFTEEN",

         "endMinute":"FORTY_FIVE",

         "dayOfWeek":"WEDNESDAY",

         "startHour":20,

         "endHour":23

      },

      "campaign":"customers/{customerid}/campaigns/{campaignid}",

      "bidModifier":1

   }

}


Additional information - 

- The bug occurs every hour of the day I try

- I don't get any error message after the request

- When choosing "FORTY_FIVE" it rounds it down to "ZERO" every time

- Everything else (all minute and hour options) works perfectly. 


How can I solve this issue? 

Cheers 



Google Ads API Forum Advisor Prod

unread,
Mar 1, 2021, 12:37:36 PM3/1/21
to eyl...@gmail.com, adwor...@googlegroups.com
Hi Eylon,

Thanks for reaching out and providing that information. Can you please provide us with the complete request and response logs that show this behavior using the FORTY_FIVE MinuteOfHour value? This will help us further investigate any issues.

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJEn7:ref

Eylon Raymond Harari

unread,
Mar 4, 2021, 1:10:05 AM3/4/21
to AdWords API and Google Ads API Forum

Hi Matt, Ill share some of the curl requests, responses and outcomes to better explain the situation. 

* Please look at the operations directed at "SUNDAY", which will be highlighted in blue. 

The first request is showing the expected behavior, the second request will showcase the bug -

Request 1: 

--header 'Authorization: Bearer {token}' \
--header 'developer-token: {developer-token}' \
--header 'login-customer-id: {customerid}' \
--header 'Content-Type: application/json' \
--data-raw '{
"operations": [
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "MONDAY",
"startHour": 8,
"endHour": 22
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "TUESDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "WEDNESDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "THURSDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "FIFTEEN",
"dayOfWeek": "FRIDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "SATURDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "THIRTY",
"dayOfWeek": "SUNDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
}
]
}'

Request 1 response: 

{ results:

   [ { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

    { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' }
]}


Request 1 outcome: 
Sunday: 05:00 - 23:30 = as expected

------

Request 2: 

--header 'Authorization: Bearer {token}' \
--header 'developer-token: {developer-token}' \
--header 'login-customer-id: {customerid}' \
--header 'Content-Type: application/json' \
--data-raw '{
"operations": [
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "MONDAY",
"startHour": 8,
"endHour": 22
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "TUESDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "WEDNESDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "THURSDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "FIFTEEN",
"dayOfWeek": "FRIDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "ZERO",
"dayOfWeek": "SATURDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
},
{
"create": {
"adSchedule": {
"startMinute": "ZERO",
"endMinute": "FORTY_FIVE",
"dayOfWeek": "SUNDAY",
"startHour": 5,
"endHour": 23
},
"campaign": "customers/{customer-id}/campaigns/{campaign-id}",
"bidModifier": 1
}
}
]
}'

Request 2 response: 

{ results:

   [ { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

    { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' },

     { resourceName: 'customers/{customer-id}/campaignCriteria/{campaign-id}~{creteria-id}' }
]}


Request 2 outcome: 
Sunday: 05:00 - 23:00 = not as expected (should be 05:00 - 23:45)



Google Ads API Forum Advisor Prod

unread,
Mar 4, 2021, 8:41:50 PM3/4/21
to eyl...@gmail.com, adwor...@googlegroups.com
Hi Eylon,

I work with Matt and allow me to assist you.

Thank you for sharing these details. However, so our team can further investigate the behavior that you are observing, could you access this link then enable logging by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation?

Once enabled, you may send our customer ID and the complete request and response logs, with the request-id. You may send the requested details using the Reply privately to author option.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJEn7:ref

Eylon Raymond Harari

unread,
Mar 7, 2021, 12:45:26 AM3/7/21
to AdWords API and Google Ads API Forum
Hi Peter, I am not using any of the client's libraries - its all on nodejs with the raw google ads API.

However, my project is hosted on the google app engine so maybe that's something you can access. 

How do you reckon we can proceed from here? 

Google Ads API Forum Advisor Prod

unread,
Mar 8, 2021, 9:00:35 PM3/8/21
to eyl...@gmail.com, adwor...@googlegroups.com
Hi Eylon,

Unfortunately, since node.js is not supported directly, then our team does not have visibility on how logging can be enabled for it. However, your API transaction should still return a response, and within that response the request-id should be included. That said, could you provide the following instead :
  • your customer ID
  • complete node.js request
  • response returned by your API transaction including the request-id
  • generated IDs of your ad schedule criterion
You may send these details using the Reply privately to author option

Eylon Raymond Harari

unread,
Mar 9, 2021, 12:50:11 AM3/9/21
to AdWords API and Google Ads API Forum
Hey peter, the option for replying to the author is not available for me... I there another address I can send the details to? 

Google Ads API Forum Advisor Prod

unread,
Mar 9, 2021, 1:35:50 PM3/9/21
to eyl...@gmail.com, adwor...@googlegroups.com
Hi Eylon,

Please email us at googleadsa...@google.com if you are unable to reply privately.

Cheers,
Anthony

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DJEn7:ref

Eylon Raymond Harari

unread,
Mar 9, 2021, 10:25:11 PM3/9/21
to AdWords API and Google Ads API Forum
Sent, thanks

On Wednesday, March 10, 2021 at 4:35:50 AM UTC+10 adsapiforumadvisor wrote:
Hi Eylon,

Please email us at googleadsapi-support@google.com if you are unable to reply privately.
Reply all
Reply to author
Forward
0 new messages