Re: KeyError when using mutate method FeedItemService

2019-05-20 Thread 'Ketan Ingle' via AdWords API and Google Ads API Forum
Hi Dave,

I have replied privately to you. Please let me know.

On Monday, May 20, 2019 at 10:10:26 AM UTC+5:30, googleadsapi-forumadvisor 
wrote:
>
> Hi,
>
> Thank you for reaching out. To further investigate this, could you provide 
> the complete SOAP request and response logs when you encountered the error? 
> If you haven't enabled logging yet, you may refer to this guide 
> 
>  on 
> how to do so. Please use the *reply privately to author* option.
>
> Regards,
> Dave
> Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> On 05/18/19 13:22:19 ketan...@oyorooms.com  wrote:
>
> I have an ad customizer feed setup in my account and I want to change the 
> value of one Item in that feed. I tried doing that using the "SET" 
> operation in the 'FeedItemService'
>
> PFA code:
>
> fi_service = adwords_client.GetService('FeedItemService', version = 'v201809')
>
> fi_operator = { 
> 'feedId': 1234,
> 'feedItemId': 5678,
> 'attributeValues': [
> { 
>  'feedAttributeId':111,
>  'stringValue': '1000'}   
>
> ]
> }
> fi_creator_operation = {'operator': 'SET',
> 'operand': fi_operator}
> fi_call_response = fi_service.mutate(feed_creator_operation)
>
> Here is the traceback of the error:
>
> Traceback (most recent call last):
>
>   File "", line 15, in 
> fi_call_response = fi_service.mutate(feed_creator_operation)
>
>   File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
> 1381, in MakeSoapRequest
> packed_args = self._PackArguments(method_name, args)
>
>   File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
> 1239, in _PackArguments
> for ((_, param), param_data) in izip(op_params, args)]
>
>   File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
> 1284, in _PackArgumentsHelper
> elem_type, type_override is not None, data_formatted, set_type_attrs)
>
>   File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
> 1351, in _CreateComplexTypeFromData
> for k, v in data if k != 'xsi_type'}
>
>   File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
> 1351, in 
> for k, v in data if k != 'xsi_type'}
>
>   File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
> 1284, in _PackArgumentsHelper
> elem_type, type_override is not None, data_formatted, set_type_attrs)
>
>   File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
> 1351, in _CreateComplexTypeFromData
> for k, v in data if k != 'xsi_type'}
>
>   File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
> 1351, in 
> for k, v in data if k != 'xsi_type'}
>
> KeyError: 'feedAttributes'
>
> -- 
> -- 
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> 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.
> Visit this group at https://groups.google.com/group/adwords-api.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/adwords-api/71085bd2-6473-4a83-b96a-c9e805f044ef%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 

KeyError when using mutate method FeedItemService

2019-05-17 Thread 'Ketan Ingle' via AdWords API and Google Ads API Forum
I have an ad customizer feed setup in my account and I want to change the 
value of one Item in that feed. I tried doing that using the "SET" 
operation in the 'FeedItemService'

PFA code:

fi_service = adwords_client.GetService('FeedItemService', version = 'v201809')

fi_operator = { 
'feedId': 1234,
'feedItemId': 5678,
'attributeValues': [
{ 
 'feedAttributeId':111,
 'stringValue': '1000'} 
 
]
}
fi_creator_operation = {'operator': 'SET',
'operand': fi_operator}
fi_call_response = fi_service.mutate(feed_creator_operation)

Here is the traceback of the error:

Traceback (most recent call last):

  File "", line 15, in 
fi_call_response = fi_service.mutate(feed_creator_operation)

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1381, in MakeSoapRequest
packed_args = self._PackArguments(method_name, args)

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1239, in _PackArguments
for ((_, param), param_data) in izip(op_params, args)]

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1284, in _PackArgumentsHelper
elem_type, type_override is not None, data_formatted, set_type_attrs)

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1351, in _CreateComplexTypeFromData
for k, v in data if k != 'xsi_type'}

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1351, in 
for k, v in data if k != 'xsi_type'}

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1284, in _PackArgumentsHelper
elem_type, type_override is not None, data_formatted, set_type_attrs)

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1351, in _CreateComplexTypeFromData
for k, v in data if k != 'xsi_type'}

  File "C:\ProgramData\Anaconda2\lib\site-packages\googleads\common.py", line 
1351, in 
for k, v in data if k != 'xsi_type'}

KeyError: 'feedAttributes'

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/71085bd2-6473-4a83-b96a-c9e805f044ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: OperationAccessDenied.ACTION_NOT_PERMITTED: while creating a new ad customiser feed

2019-05-17 Thread 'Ketan Ingle' via AdWords API and Google Ads API Forum
Hi Sai Teja,

The user has the access to the account. I have created campaigns/ad groups 
etc using the API before. I also export reports on a regular basis from the 
account with the same user.

The problem is persisting. Can you please detail out how I can share the 
SOAP logs for the operation?

On Saturday, May 11, 2019 at 1:57:54 AM UTC+5:30, googleadsapi-forumadvisor 
wrote:
>
> Hello Ketan,
>
> Could you please confirm whether the user making the API call is having 
> the right access to the account for which you are making the mutate 
> operations? If the problem persists, could you please share the complete 
> SOAP logs for the operation, you are performing without redacting any 
> information using reply privately to the author option.
>
> Regards,
> Sai Teja, Google Ads API Team
>
>
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
> Also find us on our blog and discussion group:
> https://ads-developers.googleblog.com/search/label/google_ads_api
> https://developers.google.com/adwords/api/community/
> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
>
> Was your question answered? Please rate your experience with us by taking 
> a short survey.
> If not -- reply to this email and tell us what else we can do to help.
>
> Take Survey 
> 
>
> Also find us on our blog and discussion group:
> http://googleadsdeveloper.blogspot.com/search/label/adwords_api
> https://developers.google.com/adwords/api/community/
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/af403596-76f1-4daf-8b55-221f0372cd85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


OperationAccessDenied.ACTION_NOT_PERMITTED: while creating a new ad customiser feed

2019-05-10 Thread 'Ketan Ingle' via AdWords API and Google Ads API Forum
I'm trying to create a new ad customizer feed using the Python2.7 and API 
version 'v201809'

The mutate function doesn't seem to work and is giving the following error:

GoogleAdsServerFault: [OperationAccessDenied.ACTION_NOT_PERMITTED @ class 
com.google.ads.api.serviceimpls.campaignmgmt.feed.adcustomizer.MutateActio]

adc_service = adwords_client.GetService('AdCustomizerFeedService', 
version='v201809')

Code Snippet:

feed_operator = {
  'feedName': 'Name',
  'feedAttributes': [
 {'type': 'STRING', 'name': 'Name1'},
 {'type': 'STRING', 'name': 'Name2'}
 ]
   }

feed_creator_operation = {'operator': 'ADD',
  'operand': feed_operator}

feed_call_response = adc_service.mutate(feed_creator_operation)

The get call is working perfectly though as I'm able to read all the feeds 
in the account. 

What's the issue here? Is it a problem with the authentication?



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/67564e25-54e1-4ab3-9b8c-2b03e681b220%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


GoogleAdsValueError: Unrecognized version for the AdWords API. Given: v201809 Supported: ['v201806', 'v201802']

2019-01-25 Thread 'Ketan Ingle' via AdWords API and Google Ads API Forum
Hi Team,

I'm using the Python wrapper for the AdWords API. When I try to fetch a 
service, for ex:

ad_group_criterion_service = 
adwords_client.GetService('AdGroupCriterionService', version='v201809')

I get the following error:
GoogleAdsValueError: Unrecognized version for the AdWords API. Given: 
v201809 Supported: ['v201806', 'v201802'] 

More details:
Python Version: 2.7.14
googleads version: 15.0.2
PyYaml version: 4.2b4



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/af84ffc8-57a3-4133-a2ec-f02ced2f95c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.