I am trying to add demographic for local campaign.
WARN -- : CID: 1642674633, Host:
googleads.googleapis.com:443, Method: /google.ads.googleads.v8.services.AdGroupCriterionService/MutateAdGroupCriteria, IsFault: yes, Request ID: 8orcWK_fFAnfvMeqTNet0g
Error with message: The operation is not allowed for the given context.
On field: operations
On field: create
On field: gender
Type: context_error
Code: OPERATION_NOT_PERMITTED_FOR_CONTEXT
Error with message: The operation is not allowed for the given context.
On field: operations
On field: create
On field: age_range
Type: context_error
Code: OPERATION_NOT_PERMITTED_FOR_CONTEXT
Traceback (most recent call last):
13: from add_demographic_criteria.rb:77:in `<main>'
12: from add_demographic_criteria.rb:29:in `add_demographic_targeting_criteria'
11: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/service_wrapper.rb:50:in `method_missing'
10: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/service_wrapper.rb:50:in `public_send'
9: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/v8/services/ad_group_criterion_service/client.rb:333:in `mutate_ad_group_criteria'
8: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/gapic-common-0.6.0/lib/gapic/grpc/service_stub.rb:156:in `call_rpc'
7: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/gapic-common-0.6.0/lib/gapic/grpc/service_stub/rpc_call.rb:121:in `call'
6: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/grpc-1.40.0-universal-darwin/src/ruby/lib/grpc/generic/client_stub.rb:173:in `block in request_response'
5: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/grpc-1.40.0-universal-darwin/src/ruby/lib/grpc/generic/interceptors.rb:175:in `intercept!'
4: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/interceptors/logging_interceptor.rb:53:in `request_response'
3: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/grpc-1.40.0-universal-darwin/src/ruby/lib/grpc/generic/interceptors.rb:177:in `block in intercept!'
2: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/grpc-1.40.0-universal-darwin/src/ruby/lib/grpc/generic/interceptors.rb:175:in `intercept!'
1: from /Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/interceptors/error_interceptor.rb:63:in `request_response'
/Users/synup/.rvm/gems/ruby-2.5.1/gems/google-ads-googleads-14.0.0/lib/google/ads/google_ads/interceptors/error_interceptor.rb:67:in `rescue in request_response': Google::Ads::GoogleAds::Errors::GoogleAdsError (Google::Ads::GoogleAds::Errors::GoogleAdsError)