GoogleAds beta: Probably incorrect error code when trying to create google app campaign

79 views
Skip to first unread message

Uladzislau Zayats

unread,
Jun 17, 2020, 6:05:47 AM6/17/20
to AdWords API and Google Ads API Forum
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






Google Ads API Forum Advisor Prod

unread,
Jun 17, 2020, 10:20:24 AM6/17/20
to beaddy.uladz...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out and bringing these issues to my attention. I have forwarded them along to my team so please keep an eye on our Developer Blog for information on future releases.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q2177pL:ref
Reply all
Reply to author
Forward
0 new messages