GoogleAds API Beta: not possible to create campaign containing HTML5 ad

64 views
Skip to first unread message

Uladzislau Zayats

unread,
Jul 9, 2020, 9:54:41 AM7/9/20
to AdWords API and Google Ads API Forum
Hello.

I am getting an error when I try to create google ads display campaign (Beta API) that contains HTML5 or AMPHTML ad. 
This is the error:  
GrpcError: Unauthorized invocation of a service's method (get, mutate, etc.)



Here I post more info to better describe what happens.

Ad group ad object (JSON):
 {
  name
: 'vlad test amphtml.zip',
  type
: 21,
  final_urls
: [ 'https://google2.com' ],
  display_url
: 'https://google2.com',
  display_upload_ad
: {
    media_bundle
: { asset: 'customers/8497700244/assets/9264037065' },
    display_upload_product_type
: 2
 
}
}

Error:
Trace: GrpcError: Unauthorized invocation of a service's method (get, mutate, etc.)
    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: { operationAccessDeniedError: 2 },
  request: {
    customerId: '8497700244',
    operationsList: [ [Object] ],
    partialFailure: false,
    validateOnly: false
  },
  request_id: '_SraD8mid48f6KlOmwmmNA',
  location: 'operations[0].create.ad.display_upload_ad',
  failure: Error: 3 INVALID_ARGUMENT: Unauthorized invocation of a service's method (get, mutate, etc.)
      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: "Unauthorized invocation of a service's method (get, mutate, etc.)"
  }
}

I am able to create other kinds of ads: Responsive display ad, Image ad. I am only struggling with HTML5 and AMPHTML ads.

Here is request id if it matters for you: 
_SraD8mid48f6KlOmwmmNA

Please help me as I am fighting with this issue almost a week. Maybe there is some kind of attributes that is not allowed by API?
I have "Basic access" to api if it matters (no standard access).

BR, Vlad

Uladzislau Zayats

unread,
Jul 9, 2020, 9:56:21 AM7/9/20
to AdWords API and Google Ads API Forum
1 more note to not confuse you: error happens when I am trying to create AdGroupAd
Message has been deleted

Google Ads API Forum Advisor Prod

unread,
Jul 10, 2020, 9:10:59 AM7/10/20
to beaddy.uladz...@gmail.com, adwor...@googlegroups.com
Hello,

It looks like you are using v1 which is deprecated which will cause some issues. Please migrate to the latest version and try to run this call again.

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5004Q21kPNh:ref

Uladzislau Zayats

unread,
Jul 17, 2020, 6:35:00 AM7/17/20
to AdWords API and Google Ads API Forum
Hello. Thanks for your reply, but it is not true. I am using v3. I realized that to be able to create HTML5 ads - I need to apply for it:

Maybe it is good idea to adjust API error message to make it more obvious?

BR, Vlad
Message has been deleted

Google Ads API Forum Advisor Prod

unread,
Jul 17, 2020, 2:14:08 PM7/17/20
to beaddy.uladz...@gmail.com, adwor...@googlegroups.com
Hi Vlad,

I've passed your feedback to the team to have more descriptive error messages.
Reply all
Reply to author
Forward
0 new messages