Re: Unauthorized CREATE operation in invoking a service's mutate method

2022-06-29 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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 
googleadsapi-supp...@google.com alias instead.

Best regards,

Heidi
Google Ads API Team
ref:_00D1U1174p._5004Q2bzVIl:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8pS3s0RE8SXF00CkWdrrkORNav-5i2iasqlA%40sfdc.net.


Re: Unauthorized CREATE operation in invoking a service's mutate method

2022-06-29 Thread אלינור אברהם
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-supp...@google.com.
>
> Please let me know if you have further concerns and our team will be happy 
> to provide support.
>
>
>
> Best,
> [image: Google Logo] 
> Anthony Cyril 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2bzVIl:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/15bd46fa-47e9-47cf-8d6a-23bad3bdc693n%40googlegroups.com.


Re: Unauthorized CREATE operation in invoking a service's mutate method

2022-06-27 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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-supp...@google.com.

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



Best,

Anthony Cyril
Google Ads API Team
ref:_00D1U1174p._5004Q2bzVIl:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/sXmfL0RE522K00GlUBO96bRxGzn4E7YT4xqg%40sfdc.net.


Re: Unauthorized CREATE operation in invoking a service's mutate method

2022-06-27 Thread אלינור אברהם
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: createOn field: selective_optimizationOn field: 
conversion_actionsRequest 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 כתב/ה:

> 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 
> 
> , .NET 
> 
> , PHP 
> 
> , Python 
> 
> , Ruby 
> 
>  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,
>
> [image: Google Logo] 
> Aryeh 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2bzVIl:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/e192e415-5a16-4835-b294-a5fd1bb2c680n%40googlegroups.com.


RE: Unauthorized CREATE operation in invoking a service's mutate method

2022-06-23 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
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, .NET, PHP, Python, Ruby 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 
googleadsapi-supp...@google.com with a link to this forum post added to the new 
thread.

Regards,

Aryeh
Google Ads API Team
ref:_00D1U1174p._5004Q2bzVIl:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/Sjo960RDXO85003rWyqmOvQAyskzfhD3UvGg%40sfdc.net.


Unauthorized CREATE operation in invoking a service's mutate method

2022-06-23 Thread אלינור אברהם
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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/439570db-5f67-4953-b669-24acd337a0c7n%40googlegroups.com.


Re: Receive "Unauthorized CREATE operation in invoking a service's mutate method." error for add_amart_display_ads.py

2022-05-31 Thread Chiao Hsiao
ss_name = "Google"

asset_service = client.get_service("AssetService")
# Add a marketing image
marketing_image = client.get_type("AdImageAsset")
marketing_image.asset = asset_service.asset_path(
customer_id, marketing_image_asset_id
)
responsive_display_ad.marketing_images.append(marketing_image)

# Add a square marketing image
square_marketing_image = client.get_type("AdImageAsset")
square_marketing_image.asset = asset_service.asset_path(
customer_id, square_marketing_image_asset_id
)
responsive_display_ad.square_marketing_images.append(square_marketing_image)

# Add the call to action
responsive_display_ad.call_to_action_text = "Shop Now"

# Add the price prefix
responsive_display_ad.price_prefix = "as low as"

# Add the promo text
responsive_display_ad.promo_text = "Free shipping!"

try:
ad_group_ad_response = ad_group_ad_service.mutate_ad_group_ads(
customer_id=customer_id, operations=[ad_group_ad_operation]
)
except GoogleAdsException as ex:
_handle_googleads_exception(ex)

return ad_group_ad_response.results[0].resource_name
# [END add_smart_display_ad_2]


def _handle_googleads_exception(exception):
print(
f'Request with ID "{exception.request_id}" failed with status '
f'"{exception.error.code().name}" and includes the following errors:'
)
for error in exception.failure.errors:
print(f'\tError with message "{error.message}".')
if error.location:
for field_path_element in error.location.field_path_elements:
print(f"\t\tOn field: {field_path_element.field_name}")
sys.exit(1)


if __name__ == "__main__":
# GoogleAdsClient will read the google-ads.yaml configuration file in the
# home directory if none is specified.
googleads_client = GoogleAdsClient.load_from_storage(version="v10",
path="C:/Users/Chiao/startinvest/prj17/google_ads_tutorials-master/creds_example/googleads.yaml")

parser = argparse.ArgumentParser(
description=(
"Creates a Smart Display campaign, and an ad group that "
"are then used to create a responsive display ad."
)
)
# The following argument(s) should be provided to run the example.
parser.add_argument(
"-c",
"--customer_id",
type=str,

help="The Google Ads customer ID.",
)
parser.add_argument(
"-m",
"--marketing_image_asset_id",
type=str,

help=("The ID for an image asset to be used as a marketing image."),
)
parser.add_argument(
"-s",
"--square_marketing_image_asset_id",
type=str,

help=(
"The resource name for an image asset to be used as a square "
"marketing image."
),
)
args = parser.parse_args()

main(
googleads_client,
"7199745982",
marketing_image_asset_id="40081329863",
square_marketing_image_asset_id="40080135580",
)

On Friday, May 27, 2022 at 10:34:56 AM UTC-7 Chiao Hsiao wrote:

> Hello,
> I am running the script of add_amart_display_ads.py, but I failed to do 
> the create operation as the following code:
>
> ---
> Created budget with resource name "customers/7199745982 <(719)%20974-5982>
> /campaignBudgets/10971713488".
> Request with ID "42zRfQLX_cfQvRh3hs_xLg" 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
> Request made: ClientCustomerId: 7199745982 <(719)%20974-5982>, Host: 
> googleads.googleapis.com, Method: 
> /google.ads.googleads.v10.services.CampaignService/MutateCampaigns, 
> RequestId: 42zRfQLX_cfQvRh3hs_xLg, IsFault: True, FaultMessage: 
> Unauthorized CREATE operation in invoking a service's mutate method.
>
> 
> Note: I have the customer_Id, created in the test account, and all 
> credentials in googleads.yaml file, I can create another campaign such as 
> responsive search campaign successfully, so I think my customer_Id and all 
> credential in googleads.yaml file are correct, could you help me to solve 
> the problem?
>
> -
>
> The code below is my script:
> [image: 螢幕擷取畫面 202

RE: Receive "Unauthorized CREATE operation in invoking a service's mutate method." error for add_amart_display_ads.py

2022-05-30 Thread 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
Hi Chiao,

Thank you for raising your concern to this forum.

So that our team can investigate the issue further, could you provide the 
complete request and response logs with request ID and request header generated 
on your end in the format that you can see the provided links where we can see 
the error? This information in the preferred format can be extracted when 
logging of the API transactions is enabled on your end. To enable it, you can 
follow this guide for the Python client library.

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-supp...@google.com.

Regards,

Ernie John
Google Ads API Team
ref:_00D1U1174p._5004Q2bEKVf:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/33aZT0RCPXN200nZui97BIRlmh_QTb9aYOOg%40sfdc.net.


Receive "Unauthorized CREATE operation in invoking a service's mutate method." error for add_amart_display_ads.py

2022-05-27 Thread Chiao Hsiao
Hello,
I am running the script of add_amart_display_ads.py, but I failed to do the 
create operation as the following code:
---
Created budget with resource name 
"customers/7199745982/campaignBudgets/10971713488".
Request with ID "42zRfQLX_cfQvRh3hs_xLg" 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
Request made: ClientCustomerId: 7199745982, Host: googleads.googleapis.com, 
Method: /google.ads.googleads.v10.services.CampaignService/MutateCampaigns, 
RequestId: 42zRfQLX_cfQvRh3hs_xLg, IsFault: True, FaultMessage: 
Unauthorized CREATE operation in invoking a service's mutate method.

Note: I have the customer_Id, created in the test account, and all 
credentials in googleads.yaml file, I can create another campaign such as 
responsive search campaign successfully, so I think my customer_Id and all 
credential in googleads.yaml file are correct, could you help me to solve 
the problem?
-

The code below is my script:
[image: 螢幕擷取畫面 2022-05-27 103050.png]
#!/usr/bin/env python
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Adds a display upload ad to a given ad group.
To get ad groups, run get_ad_groups.py.
"""


import argparse
import sys

import requests

from google.ads.googleads.client import GoogleAdsClient
from google.ads.googleads.errors import GoogleAdsException


BUNDLE_URL = "https://gaagl.page.link/ib87;


def main(client, customer_id, ad_group_id):
"""Adds a display upload ad to a given ad group.
Args:
client: An initialized Google Ads client.
customer_id: The Google Ads customer ID.
ad_group_id: The ID of the ad group to which the new ad will be added.
"""
# There are several types of display upload ads. For this example, we will
# create an HTML5 upload ad, which requires a media bundle.
# This feature is only available to allowlisted accounts.
# See https://support.google.com/google-ads/answer/1722096 for more details.
# The DisplayUploadProductType field lists the available display upload 
types:
# 
https://developers.google.com/google-ads/api/reference/rpc/latest/DisplayUploadAdInfo

# Creates a new media bundle asset and returns the resource name.
ad_asset_resource_name = _create_media_bundle_asset(client, customer_id)

# Creates a new display upload ad and associates it with the specified
# ad group.
_create_display_upload_ad_group_ad(
client, customer_id, ad_group_id, ad_asset_resource_name
)


def _create_media_bundle_asset(client, customer_id):
"""Creates a media bundle from the assets in a zip file.
The zip file contains the HTML5 components.
Args:
client: An initialized Google Ads client.
customer_id: The Google Ads customer ID for which the call is made.
Returns:
The string resource name of the newly uploaded media bundle.
"""
# Get the AssetService client.
asset_service = client.get_service("AssetService")

# Construct an asset operation and populate its fields.
asset_operation = client.get_type("AssetOperation")
media_bundle_asset = asset_operation.create
media_bundle_asset.type_ = client.enums.AssetTypeEnum.MEDIA_BUNDLE
media_bundle_asset.name = "Ad Media Bundle"
# The HTML5 zip file contains all the HTML, CSS, and images needed for the
# HTML5 ad. For help on creating an HTML5 zip file, check out Google Web
# Designer (https://www.google.com/webdesigner/).
# Download the ZIP as bytes from the URL
media_bundle_asset.media_bundle_asset.data = requests.get(
BUNDLE_URL
).content

# Adds the asset to the client account.
mutate_asset_response = asset_service.mutate_assets(
customer

RE: Unauthorized CREATE operation in invoking a service's mutate method.

2021-06-24 Thread Google Ads API Forum Advisor
Hi everyone,

I had to delete all your initial posts as it appears to have contained 
sensitive information in the logs of the initial poster. I am now re-posting 
the redacted details of the initial post below for reference :

"Hello, i am trying to create a new campaign and budget but i get the following 
errors all the time Unauthorized CREATE operation in invoking a service's 
mutate method

My code in (Nodejs):

const client = new GoogleAdsApi({
client_id: '',
client_secret: '***',
developer_token: ''
})
const customer = client.Customer({
customer_account_id: '371-114-1084',
refresh_token: '1//03*
})

try {

const response = await customer.mutateResources([
// Create new budget
{
_resource: 'CampaignBudget',
_operation: 'create',
resource_name: 'customers/3711141084/campaignBudgets/-1',
name: 'My all new budget',
amount_micros: 300,
explicitly_shared: true
}
]);

console.log(response);


} catch (err) {
console.log(err)
}
});


The response:

request_id: 'XX',
location: 'mutate_operations[0].campaign_budget_operation',
policy_violation_details: undefined,
failure: Error: 3 INVALID_ARGUMENT: Unauthorized CREATE operation in invoking a 
service's mutate method."

Moving forward, could you both provide the complete request and response logs, 
with the request-id, separately? 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 may then send the requested information via the Reply privately to author 
option. If this option is not available, you may send the details directly to 
our googleadsapi-supp...@google.com alias instead.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2IxP34:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/I9KgO0QV74K400LhhW8DWDTJqdmBE1lHe6PQ%40sfdc.net.


Re: Unauthorized CREATE operation in invoking a service's mutate method.

2021-06-22 Thread Yossi
In my case, there was only a manager account set without any client account 
- once creating such an account (had to do it via the API, as there's an 
issue when it comes to test accounts) everything works as epected.  

On Monday, June 21, 2021 at 6:24:05 PM UTC+3 Yossi wrote:

> Hi,
> I'm getting the same issue, have you managed to overcome it?
>
> Thanks
>
> On Thursday, February 18, 2021 at 8:19:57 AM UTC+2 onefla...@gmail.com 
> wrote:
>
>>
>> Hello, i am trying to create a new campaign and budget but i get the 
>> following errors all the time Unauthorized CREATE operation in invoking a 
>> service's mutate method
>>
>> My code in (Nodejs):
>>
>>  const client = new GoogleAdsApi({
>> client_id: '
>> 1004921226288-vu85lph7lcjm2g11ncb0o4chuuir01cj.apps.googleusercontent.com
>> ',
>> client_secret: '***',
>> developer_token: ''
>>   })
>>
>>   const customer = client.Customer({
>> customer_account_id: '371-114-1084',
>> refresh_token: '1//03*
>>   })
>>
>>
>>   try {
>>
>>
>> const response = await customer.mutateResources([
>>   // Create new budget
>>   {
>> _resource: 'CampaignBudget',
>> _operation: 'create',
>> resource_name: 'customers/3711141084/campaignBudgets/-1',
>> name: 'My all new budget',
>> amount_micros: 300,
>> explicitly_shared: true
>>   }
>> ]);
>>
>>
>> console.log(response);
>>
>> 
>>   } catch (err) {
>> console.log(err)
>>   }
>> });
>>
>>
>> The response:
>>
>>  request_id: 'MdY5RUivI7vUaKUccZBhsw',
>>   location: 'mutate_operations[0].campaign_budget_operation',
>>   policy_violation_details: undefined,
>>   failure: Error: 3 INVALID_ARGUMENT: Unauthorized CREATE operation in 
>> invoking a service's mutate method.
>>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/661d7a54-46af-4574-baae-81d037c8dc87n%40googlegroups.com.


Re: Unauthorized CREATE operation in invoking a service's mutate method.

2021-06-21 Thread Yossi
Hi,
I'm getting the same issue, have you managed to overcome it?

Thanks

On Thursday, February 18, 2021 at 8:19:57 AM UTC+2 onefla...@gmail.com 
wrote:

>
> Hello, i am trying to create a new campaign and budget but i get the 
> following errors all the time Unauthorized CREATE operation in invoking a 
> service's mutate method
>
> My code in (Nodejs):
>
>  const client = new GoogleAdsApi({
> client_id: '
> 1004921226288-vu85lph7lcjm2g11ncb0o4chuuir01cj.apps.googleusercontent.com'
> ,
> client_secret: '***',
> developer_token: ''
>   })
>
>   const customer = client.Customer({
> customer_account_id: '371-114-1084',
> refresh_token: '1//03*
>   })
>
>
>   try {
>
>
> const response = await customer.mutateResources([
>   // Create new budget
>   {
> _resource: 'CampaignBudget',
> _operation: 'create',
> resource_name: 'customers/3711141084/campaignBudgets/-1',
> name: 'My all new budget',
> amount_micros: 300,
> explicitly_shared: true
>   }
> ]);
>
>
> console.log(response);
>
> 
>   } catch (err) {
> console.log(err)
>   }
> });
>
>
> The response:
>
>  request_id: 'MdY5RUivI7vUaKUccZBhsw',
>   location: 'mutate_operations[0].campaign_budget_operation',
>   policy_violation_details: undefined,
>   failure: Error: 3 INVALID_ARGUMENT: Unauthorized CREATE operation in 
> invoking a service's mutate method.
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8774bea3-2df5-4c11-a746-30df26dba5f3n%40googlegroups.com.


Re: Unauthorized CREATE operation in invoking a service's mutate method

2021-04-20 Thread Kenny Kandola
Thank you Xiaming and Ernie. Much better than the Facebook Ads API team :)

On Tuesday, April 20, 2021 at 3:34:31 PM UTC-4 adsapiforumadvisor wrote:

> Hi Kenny,
>
> Thank you for reaching out. The CampaignBudgetService 
> 
>  
> is a service that is used on a campaign. However, a campaign does not 
> directly exist in a manager account. You were seeing this error as you were 
> making the call to the manager account 6947334835 instead of a client 
> customer account. Please create a client account under this manager account 
> and then use this service for the client account instead.
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>  
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2FZuB8:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/12ea7250-cae8-459d-b6e7-29c8ff17ea1dn%40googlegroups.com.


Re: Unauthorized CREATE operation in invoking a service's mutate method

2021-04-20 Thread Google Ads API Forum Advisor Prod
Hi Kenny,

Thank you for reaching out. The CampaignBudgetService is a service that is used 
on a campaign. However, a campaign does not directly exist in a manager 
account. You were seeing this error as you were making the call to the manager 
account 6947334835 instead of a client customer account. Please create a client 
account under this manager account and then use this service for the client 
account instead.

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2FZuB8:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/Vlch70QRVNP200wsZ-9EckQ9aLKc99GwxjXw%40sfdc.net.


Re: Unauthorized CREATE operation in invoking a service's mutate method

2021-04-20 Thread Kenny Kandola
Thanks for getting back to me.

It won't allow me to respond privately for some reason (screenshot attached 
for proof).

Here is the full request/response I get when the log level is set to 'INFO'.

I don't see any request ID specified, let me know how I can get that for 
you or anything else you need.

W, [2021-04-20T13:19:46.382087 #1]  WARN -- : CID: 6947334835, Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v6.services.CampaignBudgetService/MutateCampaignBudgets, 
IsFault: yes

I, [2021-04-20T13:19:46.382357 #1]  INFO -- : Outgoing request: Headers: 
{"developer-token":"REDACTED","login-customer-id":"6947334835","x-goog-api-client":"gl-ruby/2.6.5
 
gax/0.3.4 gapic/10.0.0 
grpc/1.36.0","x-goog-request-params":"customer_id=6947334835"} Payload: 
{"customerId":"6947334835","operations":[{"create":{"name":"Budget","amountMicros":"1000","deliveryMethod":"STANDARD"}}]}

I, [2021-04-20T13:19:46.382492 #1]  INFO -- : Incoming response (errors): 

  
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
Unauthorized CREATE operation in invoking a service's mutate method.

  called from: 
/usr/src/trip_tippa/app/services/find_new_advisors_service.rb:39:in 
`add_campaigns'

Google::Ads::GoogleAds::Errors::GoogleAdsError: 
Google::Ads::GoogleAds::Errors::GoogleAdsError

from 
/usr/local/bundle/gems/google-ads-googleads-10.0.0/lib/google/ads/google_ads/interceptors/error_interceptor.rb:67:in
 
`rescue in request_response'


[image: Screen Shot 2021-04-20 at 9.30.37 AM.png]
On Tuesday, April 20, 2021 at 2:08:56 AM UTC-4 adsapiforumadvisor wrote:

> Hi  Kenny,
>
> Thank you for posting your concern.
>
> To investigate the issue, could you provide the customer ID where you are 
> creating the budget and the complete request 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#request>
>  
> and response 
> <https://developers.google.com/google-ads/api/docs/concepts/field-service#response>
>  
> logs with request ID 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#request-id>
>  
> generated on your end? You can provide the requested details via *Reply 
> privately to author* option.
>
> Regards,
> [image: Google Logo] 
> Ernie John Blanca Tacata 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2FZuB8:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7f441eb4-d556-47ec-b58d-e19ca5f7b2d9n%40googlegroups.com.


RE: Unauthorized CREATE operation in invoking a service's mutate method

2021-04-20 Thread Google Ads API Forum Advisor Prod
Hi  Kenny,

Thank you for posting your concern.

To investigate the issue, could you provide the customer ID where you are 
creating the budget and the complete request and response logs with request ID 
generated on your end? You can provide the requested details via Reply 
privately to author option.

Regards,

Ernie John Blanca Tacata
Google Ads API Team
ref:_00D1U1174p._5004Q2FZuB8:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/dtbEk0QRUMEG00UW_VfbBqTxOWeN0EiKxS6w%40sfdc.net.


Unauthorized CREATE operation in invoking a service's mutate method

2021-04-19 Thread Kenny Kandola
I've seen several posts online regarding this error but no clear answer.

When trying to create a new campaign, I get the below error.

Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
Unauthorized CREATE operation in invoking a service's mutate method.

The line points to this line of code:

return_budget = client.service.campaign_budget.mutate_campaign_budgets(
customer_id: customer_id,
operations: [operation],
)

I have all the proper permissions from my understanding. I have a basic 
access developer token, and I created a project and added Oauth 
credentials, and generated a refresh token with access to manage Ads. This 
is how I'm initializing Google Ads in the application and creating a 
campaign_budget. The code is a template I've modified from the github page 
for this Ruby gem <https://github.com/googleads/google-ads-ruby/>. I've 
redacted the actual values.

//

client = Google::Ads::GoogleAds::GoogleAdsClient.new do |config|

config.login_customer_id = '6947334XXX'
config.developer_token = 'XXX'
config.client_id = 'XXX'
config.client_secret = 'XXX'
config.refresh_token = 'XXX'
config.log_level = 'DEBUG'
config.log_target = STDOUT
config.treat_deprecation_warnings_as_errors = false
config.warn_on_all_deprecations = false
end

campaign_budget = client.resource.campaign_budget do |cb|
cb.name = "#{@place.full_name} Budget"
cb.delivery_method = :STANDARD
cb.amount_micros = 1000
end

operation = 
client.operation.create_resource.campaign_budget(campaign_budget)

# Add budget.
return_budget = client.service.campaign_budget.mutate_campaign_budgets(
customer_id: customer_id,
operations: [operation],
)

//

Here is the full response when I try to create a campaign:

W, [2021-04-19T23:34:01.400542 #1]  WARN -- : CID: 6947334835, Host: 
googleads.googleapis.com:443, Method: 
/google.ads.googleads.v6.services.CampaignBudgetService/MutateCampaignBudgets, 
IsFault: yes

I, [2021-04-19T23:34:01.400813 #1]  INFO -- : Outgoing request: Headers: 
{"developer-token":"REDACTED","login-customer-id":"XXX","x-goog-api-client":"gl-ruby/2.6.5
 
gax/0.3.4 gapic/10.0.0 
grpc/1.36.0","x-goog-request-params":"customer_id=XXX"} Payload: 
{"customerId":"XXX","operations":[{"create":{"name":"Las Vegas, NV, United 
States Budget","amountMicros":"1000","deliveryMethod":"STANDARD"}}]}

I, [2021-04-19T23:34:01.400971 #1]  INFO -- : Incoming response (errors): 

  
Google::Ads::GoogleAds::Errors::GoogleAdsError(Google::Ads::GoogleAds::Errors::GoogleAdsError):
 
Unauthorized CREATE operation in invoking a service's mutate method.

 called from: 
/usr/src/trip_tippa/app/services/find_new_advisors_service.rb:39:in 
`add_campaigns'

Google::Ads::GoogleAds::Errors::GoogleAdsError: 
Google::Ads::GoogleAds::Errors::GoogleAdsError

from 
/usr/local/bundle/gems/google-ads-googleads-10.0.0/lib/google/ads/google_ads/interceptors/error_interceptor.rb:67:in
 
`rescue in request_response'

Thanks for looking into this. Let me know if you need anything else.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9ff56649-6653-4a66-b725-d73d1e97bc7en%40googlegroups.com.


Unauthorized CREATE operation in invoking a service's mutate method.

2021-02-17 Thread abadariki temidayo

Hello, i am trying to create a new campaign and budget but i get the 
following errors all the time Unauthorized CREATE operation in invoking a 
service's mutate method

My code in (Nodejs):

 const client = new GoogleAdsApi({
client_id: 
'1004921226288-vu85lph7lcjm2g11ncb0o4chuuir01cj.apps.googleusercontent.com',
client_secret: '***',
developer_token: ''
  })

  const customer = client.Customer({
customer_account_id: '371-114-1084',
refresh_token: '1//03*
  })


  try {


const response = await customer.mutateResources([
  // Create new budget
  {
_resource: 'CampaignBudget',
_operation: 'create',
resource_name: 'customers/3711141084/campaignBudgets/-1',
name: 'My all new budget',
amount_micros: 300,
explicitly_shared: true
  }
]);


console.log(response);


  } catch (err) {
console.log(err)
  }
});


The response:

 request_id: 'MdY5RUivI7vUaKUccZBhsw',
  location: 'mutate_operations[0].campaign_budget_operation',
  policy_violation_details: undefined,
  failure: Error: 3 INVALID_ARGUMENT: Unauthorized CREATE operation in 
invoking a service's mutate method.


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b727c285-9f03-461f-9b05-9474fb939c9fn%40googlegroups.com.


RE: get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-22 Thread Google Ads API Forum Advisor Prod
Hi Дуршлаг,

Thank you for reaching out. Could you please share the source code you used via 
the Reply privately to author option for us to further investigate?

Thanks and regards,
Xiaoming, Google Ads API Team

Xiaoming
Google Ads API Team
ref:_00D1U1174p._5004Q2B2Bhn:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ae-6B0QNCSMK009CCdiX0YTduHEWeP7369sQ%40sfdc.net.


Re: get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-21 Thread Дуршлаг Макаронин


[2021-01-22 07:38:48,844 - DEBUG] Making request: POST 
https://accounts.google.com/o/oauth2/token
[2021-01-22 07:38:48,849 - DEBUG] Starting new HTTPS connection (1): 
accounts.google.com:443
[2021-01-22 07:38:49,048 - DEBUG] https://accounts.google.com:443 "POST 
/o/oauth2/token HTTP/1.1" 200 None
[2021-01-22 07:38:50,310 - INFO] Request
---
Method: 
/google.ads.googleads.v6.services.CampaignBudgetService/MutateCampaignBudgets
Host: googleads.googleapis.com:443
Headers: {
  "developer-token": "REDACTED",
  "login-customer-id": "8211474449",
  "x-goog-api-client": "gl-python/3.8.7 grpc/1.34.1 gax/1.25.0 gapic/8.2.0",
  "x-goog-request-params": "customer_id=8211474449"
}
Request: customer_id: "8211474449"
operations {
  create {
delivery_method: STANDARD
name: "Interplanetary Budget 1fa38e7d-c39a-4ac4-9336-562e5cf4e841"
amount_micros: 50
  }
}


Response
---
Headers: {
  "google.ads.googleads.v6.errors.googleadsfailure-bin": 
"\na\n\u0003\u0003\u0003\u0012DUnauthorized CREATE operation in invoking a 
service's mutate 
method.\u001a\u0002*\u\"\u0010\u0012\u000e\n\noperations\u0018\u",
  "grpc-status-details-bin": "\b\u0003\u0012%Request contains an invalid 
argument.\u001a\u0001\nCtype.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure\u0012c\na\n\u0003\u0003\u0003\u0012DUnauthorized
 CREATE operation in invoking a service's mutate 
method.\u001a\u0002*\u\"\u0010\u0012\u000e\n\noperations\u0018\u",
  "request-id": "3bAmB_c_IiNT0iZNh4wI5A"
}
Fault: 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: 0
}
  }
}


[2021-01-22 07:38:50,310 - WARNING] Request made: ClientCustomerId: 8211474449, 
Host: googleads.googleapis.com:443, Method: 
/google.ads.googleads.v6.services.CampaignBudgetService/MutateCampaignBudgets, 
RequestId: 3bAmB_c_IiNT0iZNh4wI5A, IsFault: True, FaultMessage: Unauthorized 
CREATE operation in invoking a service's mutate method.
Request with ID "3bAmB_c_IiNT0iZNh4wI5A" 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

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/185937c8-9a3b-4593-afa7-ea2cc28ddf3eo%40googlegroups.com.


Re: get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-21 Thread Дуршлаг Макаронин

>
> Thanks for answers.
> Yes, I was wrong in my question. Of course I was trying to CREATE the 
> campaign, not GET it. =)
>
> Let's start simple, I'm using the add_campaign.py example. It has a 
> customer_id parameter. Which of my IDs should I use?
> I have 3 accounts:
> 659-129-2780 - customer ID
> 821-147-4449 - customer ID (test account)
> 447-045-4427 - client customer ID (test test account)
>
> Anyway, all three work with errors
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5c6eab40-dee8-4ee7-a74f-44562567eaf1o%40googlegroups.com.


RE: get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-21 Thread Google Ads API Forum Advisor Prod
Hi,

In addition to my earlier response, I would recommend that you use a client 
account ID as the customer ID since campaigns are created and associated to 
client accounts and not to MCC/manager accounts.

I hope this helps.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B2Bhn:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/11TAO0QNBMPS00MIJmsD8jQQOkWoC8sNmfrw%40sfdc.net.


RE: get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-21 Thread Google Ads API Forum Advisor Prod
Hi,

Since you mentioned that you wish to GET a list of campaigns, you can use this 
example instead. This is because the previous example that was being referred 
to was a call to a method which CREATEs campaigns.

Should issues persist, you may enable logging by navigating to the Client 
libraries > Your client library (ex. Java) > Logging documentation, which you 
can access from this link.

You may then provide the complete request and response logs and send it using 
the Reply privately to author option, so our team can further investigate.

Best regards,

Peter Laurence Napa Oliquino
Google Ads API Team
ref:_00D1U1174p._5004Q2B2Bhn:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/mBF0v0QNBMLH00Y7pYj_wjRZKcbBuRbilxTA%40sfdc.net.


get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

2021-01-21 Thread Дуршлаг Макаронин
I am trying to get a list of campaigns using an example from the 
documentation 
(https://developers.google.com/google-ads/api/docs/campaigns/create-campaigns). 
I get this error:

Request with ID "fFkcENuC9XxW3n4cCJduHA" 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

I work in a test environment. Everything seems to be set up correctly...

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/083f9fed-d52b-4a39-a37c-cc18618528e2o%40googlegroups.com.


RE: Getting "Unauthorized CREATE operation in invoking a service's mutate method." when creating new resources

2020-10-21 Thread Google Ads API Forum Advisor Prod
Hi Yossi,

Thanks for reaching out. Glad to hear you solved the issue. Please let us know 
if there is anything else we can help with.

Regards,
Matt
Google Ads API Team

Matt
Google Ads API Team
ref:_00D1U1174p._5004Q26AwFi:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/Ku4W60QIK51T00gwrClO-ARKKK-Gdn8u6wzA%40sfdc.net.


Re: Getting "Unauthorized CREATE operation in invoking a service's mutate method." when creating new resources

2020-10-21 Thread Yossi
Managed to tackle it, there was no client test account connected to this 
manager, seems to be working now! 

On Wednesday, October 21, 2020 at 9:49:41 AM UTC+3 Yossi wrote:

> Hello,
> I'm trying to create a new campaign (and first, a new campaign budget as a 
> matter of fact) via the API, but I keep getting this:
> Error: 3 INVALID_ARGUMENT: Unauthorized CREATE operation in invoking a 
> service's mutate method.
>
> I've followed these instructions [1] 
> So basically I have a production ad manager account with a dev token 
> enabled for test accounts at the moment.
> I'm trying to create those resources on a different Google account with 
> test ad account enabled (customer_account_id: 6608293656 
> <(660)%20829-3656>) and an appropriate refresh token.
> What am I missing?
>
> Thanks in advance,
> Yossi
>
> [1] 
> https://developers.google.com/adwords/api/docs/guides/accounts-overview#test_accounts
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/f6b46094-5c74-4ecf-90fb-17393abcaf9fn%40googlegroups.com.


Getting "Unauthorized CREATE operation in invoking a service's mutate method." when creating new resources

2020-10-21 Thread Yossi Shirizli
Hello,
I'm trying to create a new campaign (and first, a new campaign budget as a 
matter of fact) via the API, but I keep getting this:
Error: 3 INVALID_ARGUMENT: Unauthorized CREATE operation in invoking a 
service's mutate method.

I've followed these instructions [1] 
So basically I have a production ad manager account with a dev token 
enabled for test accounts at the moment.
I'm trying to create those resources on a different Google account with 
test ad account enabled (customer_account_id: 6608293656) and an 
appropriate refresh token.
What am I missing?

Thanks in advance,
Yossi

[1] 
https://developers.google.com/adwords/api/docs/guides/accounts-overview#test_accounts

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ecb021bb-255f-4e0d-8591-e886eb68256an%40googlegroups.com.