the other way i tried to change the CPC bid for the keyword i am getting the following error:
No handlers could be found for logger "suds.resolver"Traceback (most recent call last): File "B2Pnew.py", line 284, in <module> main(sys.argv[1:][0]) File "B2Pnew.py", line 230, in main response = mutate_job_service.mutate(operations) File "/usr/local/lib/python2.7/dist-packages/googleads/common.py", line 753, in MakeSoapRequest self._datetime_packer) for arg in args]) File "/usr/local/lib/python2.7/dist-packages/googleads/common.py", line 462, in _PackForSuds datetime_packer=datetime_packer) for item in obj] File "/usr/local/lib/python2.7/dist-packages/googleads/common.py", line 433, in _PackForSuds new_obj = factory.create(':'.join(['ns0', obj['xsi_type']])) File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 218, in create raise TypeNotFound(name)suds.TypeNotFound: Type not found: 'ns0:AdGroupCriterionOperation' here is the line of the code which i used batch_job_service = client.GetService('BatchJobService', version='v201708') operations = [] operations.append({ 'xsi_type': 'AdGroupCriterionOperation', 'operator': 'SET', 'operand': { 'xsi_type': 'BiddableAdGroupCriterion', 'adGroupId': '46067915677', 'criterion': { 'id': criterion_id, }, 'biddingStrategyConfiguration': { 'bids': [ { 'xsi_type': 'CpcBid', 'bid': { 'microAmount': 510000 } } ] } } }) response = batch_job_service .mutate(operations) On Wednesday, October 25, 2017 at 11:38:00 AM UTC+1, upw...@adaptive.ie wrote: > > Hi, > I want to change the CpcBid (Max CPC )for a keyword using python. what is > possible way or solution to do this using python > > On Tuesday, October 24, 2017 at 9:43:56 PM UTC+1, Shwetha Vastrad (AdWords > API Team) wrote: >> >> Hi, >> >> I see that the criterionId is that of a keyword. Bid modifiers are not >> supported for criteria of type Keyword. Please see this guide >> <https://developers.google.com/adwords/api/docs/appendix/criteria-usage> for >> the targeting and bidding options available for different Criteria types. >> The criterionId for Platform criteria are provided here >> <https://developers.google.com/adwords/api/docs/appendix/codes-formats#platforms>. >> >> I also see that you have set the bidModifier to 4510000. Please note that >> the valid modifier values range from 0.1 to 10.0, with 0.0 reserved for >> opting out of a platform. The add_ad_group_bid_modifier >> <https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201710/advanced_operations/add_ad_group_bid_modifier.py> >> Python >> example shows how to add a bidModifier using AdGroupBidModifierService >> <https://developers.google.com/adwords/api/docs/reference/v201710/AdGroupBidModifierService>. >> >> Could you retry the request with the correct criterionId and bidModifier >> and let me know if it works? >> >> Regards, >> Shwetha, AdWords API Team. >> > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords 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 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/51a7390c-4128-44cb-bee4-aeea4aa81e69%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.