frequencyCaps timeLength set by default to 1

111 views
Skip to first unread message

adstest adstest

unread,
Feb 27, 2020, 5:44:36 AM2/27/20
to AdWords API and Google Ads API Forum
Hi all,

we have created successfully a campaign with frequency capping, without specifying the timeLength. Below the request:


"frequencyCaps": [
        {
"key": {
                        "level": "AD_GROUP",
                        "eventType": "IMPRESSION",
                        "timeUnit": "DAY",
                    },
"cap": 10

Executing a GET call, GADS return a default value for "timeLength": 1. What does it means ? 

We were expecting that the Ad will be shown to the user 10 times per day, for all the time period of the campaign, just because we did not send the timeLenght.

Thanks,
Alessandra

Google Ads API Forum Advisor Prod

unread,
Feb 27, 2020, 1:53:24 PM2/27/20
to pgad...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out. As explained here, the time_length is the number of time_units that the FrequencyCap exists. In this case, since you didn't specify the time_length, it defaulted to 1 meaning that it would only be applied for 1 day. If you would like the FrequencyCap to last for a longer period of time, you should explicitly set that.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UXTPqy:ref

ManzoniPlusTest ManzoniPlusTest

unread,
Mar 2, 2020, 11:15:23 AM3/2/20
to AdWords API and Google Ads API Forum
Hi Support,
Thanks for the feedback, one question by my side the time_length is applied starting from the first day of the campaign or starting from the date of setting.
E.g. : suppose that i have a running campaign and i want to add a frequency cap with value 10 , unit day and time_length =5 
what will happen?

1) i will have the cap for the next 5 days each day max 10 impressions per user

2)It depends on the starting of the campaign , if campaign was started more than 5 days ago no capping is actually set

3) I will have the cap for the next 5 days, total number of impression within 5 days will be 10 (but on the 6th day new capping period)

There is any possibility to set the cap for all the campaign duration?

Kindest regards

sudhakar dadi

unread,
Mar 3, 2020, 8:12:00 AM3/3/20
to AdWords API and Google Ads API Forum
Hi Mitcherll,

I have tried campaign creation using postman with time_length value more than 1. But I am getting error from google ads. Please see my request and error message below.

Request:
{
          "key": {
            "level": "AD_GROUP",
            "eventType": "IMPRESSION",
            "timeUnit": "DAY",
            "timeLength": 10
          },
          "cap": 1
        }
Response:
     {
  "error": {
    "code"400,
    "message""Request contains an invalid argument.",
    "status""INVALID_ARGUMENT",
    "details": [
      {
        "errors": [
          {
            "errorCode": {
              "rangeError""TOO_HIGH"
            },
            "message""Too high.",
            "trigger": {
              "stringValue"""
            },
            "location": {
              "fieldPathElements": [
                {
                  "fieldName""operations",
                  "index""0"
                },
                {
                  "fieldName""create"
                },
                {
                  "fieldName""frequency_caps",
                  "index""0"
                },
                {
                  "fieldName""key"
                },
                {
                  "fieldName""time_length"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

Am I passing the time_lenght value properly?

Google Ads API Forum Advisor Prod

unread,
Mar 3, 2020, 2:37:22 PM3/3/20
to sudhaka...@gmail.com, adwor...@googlegroups.com
Hi Sudhakar,

Thank you for providing this information. My team is further investigating the issue and will let you know when there is an update.

Google Ads API Forum Advisor Prod

unread,
Mar 5, 2020, 8:40:34 AM3/5/20
to sudhaka...@gmail.com, adwor...@googlegroups.com
Hello,

This issue has been escalated to me. I've taken a look at the requests and responses you provided, and I can't determine what you may be doing wrong. I'm going to reach out to the engineering team responsible for this feature to understand the intended usage and how to interpret this error message. I will get back to you as soon as I have any information to share.

Regards,
Mike, Google Ads API Team

ref:_00D1U1174p._5001UXTPqy:ref

sudhakar dadi

unread,
Mar 5, 2020, 11:29:18 PM3/5/20
to AdWords API and Google Ads API Forum
Hi Mike,

Thank you. Let me know if you need more details.

Regards
Sudhakar

sudhakar dadi

unread,
Mar 6, 2020, 6:49:17 AM3/6/20
to AdWords API and Google Ads API Forum
Hi Mike,

Could you please let us know the ETA for the below item.

Regards
Sudhakar

sudhakar dadi

unread,
Mar 9, 2020, 4:19:54 AM3/9/20
to AdWords API and Google Ads API Forum
Hi Mike,

Could you please updated on below query? Its kind of blocker for me

Regards
Sudhakar

On Thursday, March 5, 2020 at 7:10:34 PM UTC+5:30, adsapiforumadvisor wrote:

Google Ads API Forum Advisor Prod

unread,
Mar 9, 2020, 8:44:04 AM3/9/20
to sudhaka...@gmail.com, adwor...@googlegroups.com
Hello,

Unfortunately, I don't have any information to share yet. I've reached out again in hopes of getting an update sooner.

sharp d

unread,
Mar 13, 2020, 10:30:55 AM3/13/20
to AdWords API and Google Ads API Forum
Hi All,  

I am also facing the same issue. Can you please provide the solution?

Regards
Raj

Google Ads API Forum Advisor Prod

unread,
Mar 13, 2020, 4:07:17 PM3/13/20
to sharpdr...@gmail.com, adwor...@googlegroups.com
Hi Raj,

Thank you for reaching out. I will check with my team and see if there are any updates.

Regards,
Mitchell

Google Ads API Team

ref:_00D1U1174p._5001UXUzxo:ref

Google Ads API Forum Advisor Prod

unread,
Mar 16, 2020, 12:07:07 PM3/16/20
to sharpdr...@gmail.com, adwor...@googlegroups.com
Hi Raj,

Unfortunately, there are still no updates on this issue. I will update you when I have more information. In the meantime, you can keep an eye on our Developer Blog for information on future releases.

Google Ads API Forum Advisor Prod

unread,
Mar 16, 2020, 1:18:21 PM3/16/20
to sudhaka...@gmail.com, adwor...@googlegroups.com
Hello,

It turns out that, for most campaign types, the only possible value for timeLength is 1. What you're setting really is the timeUnit specifically when you set up a frequency cap.

We're going to look into improving the error messaging for this case.

Regards,
Mike, Google Ads API Team

ref:_00D1U1174p._5001UXTPqy:ref

sudhakar dadi

unread,
Mar 27, 2020, 10:51:44 AM3/27/20
to AdWords API and Google Ads API Forum
Hi Mike,

Thanks for the reply.

So you are saying we can not set timeLenght value more than 1 for most campaign types? Is my understanding correct? 
What is meant by most campaign types? Could you please explain on this?

Eg: Request:
{
          "key": {
            "level": "AD_GROUP",
            "eventType": "IMPRESSION",
            "timeUnit": "DAY",
            "timeLength": 10
          },
          "cap": 100
        }

The above example says, Each day my campaign should be served to 100 users for 10 days. It my understanding correct?
Thank you :) 

Regards
Sudhakar

Google Ads API Forum Advisor Prod

unread,
Mar 27, 2020, 11:04:53 AM3/27/20
to sudhaka...@gmail.com, adwor...@googlegroups.com
Hello,

That is correct. It looks like the only campaign type where this value is allowed to be a value other than 1 is for Video campaigns, are not manageable via the API.
Reply all
Reply to author
Forward
0 new messages