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": [
      {
        "@type": 
"type.googleapis.com/google.ads.googleads.v2.errors.GoogleAdsFailure",
        "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?

On Friday, February 28, 2020 at 12:23:24 AM UTC+5:30, adsapiforumadvisor 
wrote:
>
> Hi,
>
> Thank you for reaching out. As explained here 
> <https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v2.common#frequencycapkey>,
>  
> 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
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e9d82198-3cb5-4881-afb1-2d7c546cb733%40googlegroups.com.

Reply via email to