Hi, Referring to the possibility of updating remotely the CpvBid, is it possible to do a bulkUpload of a modified report in Python, as it could be done in JavaScript?
Here is the way it is done in JS: var adGroupsChecked = {}; var adgroupReport = AdWordsApp.report(AWQL_AdGroup(), API_VERSION_0).rows(); while (adgroupReport.hasNext()) { var row = adgroupReport.next(); adGroupsChecked[row.AdGroupId]['CpvBid'] = row.CpvBid; var report = AdWordsApp.report(AWQL_Criteria(), API_VERSION_0); // Create an upload with the report columns. var upload = AdWordsApp.bulkUploads().newCsvUpload([ report.getColumnHeader('CampaignId').getBulkUploadColumnName(), report.getColumnHeader('AdGroupId').getBulkUploadColumnName(), report.getColumnHeader('CpvBid').getBulkUploadColumnName() ]/*,{moneyInMicros: false}*/); upload.forCampaignManagement(); Thanks! El martes, 27 de noviembre de 2018, 8:42:30 (UTC+1), Peter Oliquino (AdWords API Team) escribió: > > Hi Jorge, > > There is currently no CpvBid that is supported > <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.BiddingStrategyConfiguration#bids> > by > the AdWords API's services. CpvBid > <https://developers.google.com/adwords/api/docs/appendix/reports/all-reports#cpvbid> > is > only available via the reports. For all other bids, you can update them by > referring to this example > <https://developers.google.com/adwords/api/docs/guides/bidding#setting_bids> > in > Python. > > I hope this helps. > > Thanks and regards, > Peter > AdWords API Team > > On Tuesday, November 27, 2018 at 2:55:24 PM UTC+8, > jorge....@kimiagroup.com <javascript:> wrote: >> >> Hi, >> >> I would like to remotely update CpvBid of an AdGroup but I can't find a >> way in the API to do it. >> I'm working with Python Client and have already tried with: >> >> # Initialize appropriate service. >> ad_group_service = client.GetService('AdGroupService', version='v201802') >> >> # Construct operations and update an ad group. >> operations = [{ >> 'operator': 'SET', >> 'operand': { >> 'id': ad_group_id, >> 'biddingStrategyConfiguration' : { >> 'bids': { >> 'xsi_type': 'CpvBid', >> 'bid': { >> 'microAmount': data, >> } >> } >> } >> } >> }] >> >> print("Trying to update adGroupId: {} \n with params: \n >> {}".format(ad_group_id, operations)) >> >> ad_groups = ad_group_service.mutate(operations) >> >> >> >> # Getting the following error: >> [2018-11-26 18:36:12,072: ERROR/Worker-2] (CpvBid) not-found >> [2018-11-26 18:36:12,073: ERROR/Worker-2] path: "CpvBid", not-found >> [2018-11-26 18:36:12,073: ERROR/Worker-2] (ns0:CpvBid) not-found >> [2018-11-26 18:36:12,073: ERROR/Worker-2] path: "ns0:CpvBid", not-found >> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/27b80934-d094-4f4a-9c09-f78dc78ea87a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.