OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE

170 views
Skip to first unread message

kz test

unread,
Dec 5, 2019, 12:00:11 PM12/5/19
to AdWords API and Google Ads API Forum
  universal_app_campaign['settings'] = [
      # Set the campaign's assets and ad text ideas. These values will
      # be used to generate ads.
      {
          'xsi_type''UniversalAppCampaignSetting',
          'appId''com.labpixies.colordrips',
          'appVendor''VENDOR_GOOGLE_MARKET',
          'description1''A cool puzzle game',
          'description2''Remove connected blocks',
          'description3''3 difficulty levels',
          'description4''4 colorful fun skins',
          # Optional: You can set up to 20 image assets for your campaign.
          # See upload_image.py for an example on how to upload images.
          #
          # 'imageMediaIds': [INSERT_IMAGE_MEDIA_ID(s)_HERE]
      }
  ]

  # Optimize this campaign for getting new users for your app.
  universal_app_campaign_setting = universal_app_campaign['settings'][0]
  universal_app_campaign_setting['universalAppBiddingStrategyGoalType'] = (
      'OPTIMIZE_FOR_INSTALL_CONVERSION_VOLUME')
Error summary: {'faultMessage': '[OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[0].operand.settings]', 'requestId': '000598f7bed8104a0a37ac17670eb454', 'serviceName': 'CampaignService', 'methodName': 'mutate', 'operations': '1', 'responseTime': '191'}
Traceback (most recent call last):
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\googleads\common.py", line 992, in MakeSoapRequest
    *packed_args, _soapheaders=soap_headers)['body']['rval']
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\zeep\proxy.py", line 45, in __call__
    kwargs,
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\zeep\wsdl\bindings\soap.py", line 130, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\zeep\wsdl\bindings\soap.py", line 195, in process_reply
    return self.process_error(doc, operation)
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\zeep\wsdl\bindings\soap.py", line 299, in process_error
    detail=fault_node.find("detail"),
zeep.exceptions.Fault: [OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[0].operand.settings]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "add_1.py", line 213, in <module>
    main(adwords_client)
  File "add_1.py", line 114, in main
    campaigns = campaign_service.mutate(operations)['value']
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\googleads\common.py", line 1004, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[0].operand.settings]

Google Ads API Forum Advisor Prod

unread,
Dec 5, 2019, 3:46:13 PM12/5/19
to kzte...@gmail.com, adwor...@googlegroups.com
Hi, 

Thanks for reaching out to us. I see that you are trying to mutate a Universal App Campaign. As of August 6, 2019, UniversalAppCampaignSetting was replaced with UniversalAppCampaignInfo in AdWords API. All specific ad-level details will be added in the new UniversalAppAd for AdWords API. For more details, please see this blog post. Let me know if you have any other questions.

Thank you,
Bharani, Google Ads API Team

 

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