Unauthorized CREATE operation in invoking a service's mutate method

110 views
Skip to first unread message

אלינור אברהם

unread,
Jun 23, 2022, 7:46:19 AM6/23/22
to Google Ads API and AdWords API Forum
Hay,
I'm trying to create a smart display campaign and gettinf this errors:
Request made: ClientCustomerId: 5103537456, Host: googleads.googleapis.com, Method: /google.ads.googleads.v10.services.CampaignService/MutateCampaigns, RequestId: 7Bad5G4n6zMQByGjuGb-Fw, IsFault: True, FaultMessage: Unauthorized CREATE operation in invoking a service's mutate method.
Request with ID "7Bad5G4n6zMQByGjuGb-Fw" failed with status "INVALID_ARGUMENT" and includes the following errors:
    Error with message "Unauthorized CREATE operation in invoking a service's mutate method.".
        On field: operations
        On field: create
        On field: advertising_channel_sub_type
    Error with message "Conversion tracking is not enabled for the campaign for VBB transition.".
        On field: operations
        On field: create
        On field: target_cpa

Process finished with exit code 1

Can you please help us understand the problem?
Thanks,
Elinor

Google Ads API Forum Advisor

unread,
Jun 23, 2022, 10:00:25 AM6/23/22
to elin...@gmail.com, adwor...@googlegroups.com
Hi Elinor,

Before you can set up a Target CPA bid strategy, you’ll need to set up conversion tracking to manage your conversion.  Target CPA is the only allowed bidding strategy for this campaign type.

If the above doesn't help, could you send us a 'DEBUG' log level request and response log of raw API communications for the errors encountered?

The request and response appears similar to the JSON Mappings in our REST documentation with additional headers and information such as request Id. Here are logging instructions for our Java.NETPHPPythonRuby and Perl Ads API Client Libraries.

If you are using our REST interface then the full multi line curl command line is a request log and adding curl command line option '-i' will also generate a response log.

You may send the requested information via "Reply to author" or via googleadsa...@google.com with a link to this forum post added to the new thread.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bzVIl:ref

אלינור אברהם

unread,
Jun 27, 2022, 4:11:18 AM6/27/22
to Google Ads API and AdWords API Forum
Hi,
 I created a conversion action and now I am trying to add it to the smart campaign and get this error:

Request with ID "lTV-hzVcWEK7lPcVioGp_A" failed with status "INVALID_ARGUMENT" and includes the following errors:
    Error with message "The error code is not in this version.".

        On field: operations
        On field: create
        On field: selective_optimization
        On field: conversion_actions
Request made: ClientCustomerId: 5103537456, Host: googleads.googleapis.com, Method: /google.ads.googleads.v10.services.CampaignService/MutateCampaigns, RequestId: lTV-hzVcWEK7lPcVioGp_A, IsFault: True, FaultMessage: The error code is not in this version.


I added the resource_name of the conversion_action in that way:
campaign.selective_optimization.conversion_actions.append("customers/5103537456/conversionActions/958724854")

What should I need to do now?
Thanks for your replying!
Elinor

ב-יום חמישי, 23 ביוני 2022 בשעה 17:00:25 UTC+3, adsapi כתב/ה:

Google Ads API Forum Advisor

unread,
Jun 27, 2022, 9:42:35 AM6/27/22
to elin...@gmail.com, adwor...@googlegroups.com

Hi Elinor,

I hope that you are doing well today.

Before answering your question, and help you with your concern why you get "INVALID_ARGUMENT" error, could you please send us the complete request and response logs and request header generated on your end where we can see the error? This information will help our team to further check the said issue. If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Please let me know if you have further concerns and our team will be happy to provide support.



Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bzVIl:ref

אלינור אברהם

unread,
Jun 29, 2022, 9:29:16 AM6/29/22
to Google Ads API and AdWords API Forum
Hi,
I don't understand what I need to send you.
The request that I tried to run is from your git-hub: 'google-ads-python'.
The function that I tried to run is: '_create_smart_display_campaign'.
I would be happy for your help in this field.
Thanks,
Elinor

ב-יום שני, 27 ביוני 2022 בשעה 16:42:35 UTC+3, adsapi כתב/ה:

Hi Elinor,

I hope that you are doing well today.

Before answering your question, and help you with your concern why you get "INVALID_ARGUMENT" error, could you please send us the complete request and response logs and request header generated on your end where we can see the error? This information will help our team to further check the said issue. If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsapi-support@google.com.



Please let me know if you have further concerns and our team will be happy to provide support.



Best,

Google Ads API Forum Advisor

unread,
Jun 29, 2022, 10:15:32 AM6/29/22
to elin...@gmail.com, adwor...@googlegroups.com
Hi Elinor,

Thank you for the reply.

Since you said you are using python client library, you may check if you have any API logs, note that this can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled as what my colleague Anthony also said.

This is the specific guideline for Python to enable it.

Python - https://developers.google.com/google-ads/api/docs/client-libs/python/logging

You may then send the requested logs via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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