Add campaign failure: INVALID_ARGUMENT/CREATE_OPERATION_NOT_PERMITTED

68 views
Skip to first unread message

Shady Kayof

unread,
Sep 30, 2019, 8:32:49 AM9/30/19
to AdWords API and Google Ads API Forum
Im using a test google ads account, I managed to make get_campaigns API request using the google-ads-python repository examples (https://github.com/googleads/google-ads-python/tree/master)

But when trying to add campaign using the script (https://developers.google.com/google-ads/api/docs/campaigns/create-campaigns) i get the following errors:


google.ads.google_ads.errors.GoogleAdsException(<_Rendezvous of RPC that terminated with:


                                                        status = StatusCode.INVALID_ARGUMENT


                                                        details = "Request contains an invalid argument."


                                                        debug_error_string = "{"created":"@1569844148.467055000","description":"Error received from peer ipv4:216.58.213.106:443","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"


                                                >,


                                                <_Rendezvous of RPC that terminated with:


                                                        status = StatusCode.INVALID_ARGUMENT


                                                        details = "Request contains an invalid argument."


                                                        debug_error_string = "{"created":"@1569844148.467055000","description":"Error received from peer ipv4:216.58.213.106:443","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"Request contains an invalid argument.","grpc_status":3}"


                                                >,


                                                errors {


                                                  error_code {


                                                    operation_access_denied_error: CREATE_OPERATION_NOT_PERMITTED


                                                  }


                                                  message: "Unauthorized CREATE operation in invoking a service\'s mutate method."


                                                  trigger {


                                                    string_value: ""


                                                  }


                                                  location {


                                                    field_path_elements {


                                                      field_name: "operations"


                                                      index {


                                                      }


                                                    }


                                                  }


                                                },


                                                'jBmzUcpq5IFP1R7Ig9B-gw')


My test account access level is admin. i cant see why is this happening?

thanks y'all!
Reply all
Reply to author
Forward
0 new messages