Hello.
I was fighting quite a long time with issue in google ads beta api while 
trying to create google ads campaign. I was not able to create ad for some 
reason and was getting following error:

GrpcError: Too few.
    at AdGroupAdService.<anonymous> 
(/usr/src/app/node_modules/google-ads-api/build/services/service.js:200:23)
    at Generator.throw (<anonymous>)
    at rejected 
(/usr/src/app/node_modules/google-ads-api/build/services/service.js:6:65) {
  code: { collectionSizeError: 2 },
  request: {
    customerId: '8497700244',
    operationsList: [ [Object] ],
    partialFailure: false,
    validateOnly: false
  },
  request_id: 'A-2vzTuRligHyf8mtIHgOQ',
  location: 'operations[0].create.ad.app_ad.headlines.pinned_field',
  failure: Error: 3 INVALID_ARGUMENT: Too few.
      at Object.exports.createStatusError 
(/usr/src/app/node_modules/grpc/src/common.js:91:15)
      at Object.onReceiveStatus 
(/usr/src/app/node_modules/grpc/src/client_interceptors.js:1209:28)
      at InterceptingListener._callNext 
(/usr/src/app/node_modules/grpc/src/client_interceptors.js:568:42)
      at InterceptingListener.onReceiveStatus 
(/usr/src/app/node_modules/grpc/src/client_interceptors.js:618:8)
      at Object.onReceiveStatus 
(/usr/src/app/node_modules/google-ads-node/build/lib/interceptor.js:109:17)
      at InterceptingListener._callNext 
(/usr/src/app/node_modules/grpc/src/client_interceptors.js:568:42)
      at InterceptingListener.onReceiveStatus 
(/usr/src/app/node_modules/grpc/src/client_interceptors.js:618:8)
      at Object.onReceiveStatus 
(/usr/src/app/node_modules/google-ads-node/build/lib/interceptor.js:161:13)
      at InterceptingListener._callNext 
(/usr/src/app/node_modules/grpc/src/client_interceptors.js:568:42)
      at InterceptingListener.onReceiveStatus 
(/usr/src/app/node_modules/grpc/src/client_interceptors.js:618:8)
      at callback 
(/usr/src/app/node_modules/grpc/src/client_interceptors.js:847:24) {
    code: 3,
    metadata: Metadata { _internal_repr: [Object], flags: 0 },
    details: 'Too few.'
  }
}


Googling about this issue was giving me results about incorrect 
*pinned_field*. But in fact - it was not about it. Reason of getting this 
error was that array of headlines for ad for app campaign was not big 
enough.
I was trying to create campaign with only 1 headline and getting error 
above. So after I just added more headlines and was finally able to create 
campaign ads. Is there any info about minimal amount of headlines in google 
ads for app campaigns? I did not find it. Here is the link where is no word 
about minimal amount of headlines: 
https://developers.google.com/google-ads/api/reference/rpc/v3/AppAdInfo

I would also add that in my opinion error description is not 100% true.
Here is original location in error:
  location: 'operations[0].create.ad.app_ad.headlines.pinned_field',

In my opinion, proper location should be:
  location: 'operations[0].create.ad.app_ad.headlines',

Showing pinned_field in location is confusing as it does not give real 
reason of failure.


Thanks.

BR, Vlad






-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c2a53489-8bce-4b8a-8956-4aadb9a5eb9eo%40googlegroups.com.

Reply via email to