Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
Last and final update. I tested and I can pull the Criteria ID for item IDs and utilize this code to update their CPC. Thank you for all your help Josh and Anup. On Monday, May 2, 2016 at 10:26:24 AM UTC-5, Kevin Weitzner wrote: > > Fixed - changed the operator to "SET" rather than add. > >

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
Fixed - changed the operator to "SET" rather than add. Final code that works... I cannot modify productID level CPCs yet .. so not ideal however this will suffice I think, I am not sure how to utilize suggestions that Josh has offered. -- def main(client): adgroup_criterion_service =

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
I modified the code and now receive invalid bid error(was receiving invalid parititon type earlier so I added it in): suds.WebFault: Server raised fault: '[BiddingErrors.INVALID_BID @ operations[0].operand.biddingStrategyConfiguration.bids; trigger:'CpcBid{bid=1.50, contentBid=null,

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
I modified the code trying to add the partitionType but got this error(edit in bold): suds.WebFault: Server raised fault: '[AdGroupCriterionError.PRODUCT_PARTITION_ADD_MAY_ONLY_USE_TEMP_ID @ operations[0].operand.criterion, AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS @

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
Hi Anup, Is there a way to obtain criteria Id for actual product IDs for items? Or is there an easy way to obtain criteria id? I created a Product_Partition_report for a different adgroup since my actual test one was not showing up (not live campaign). I got the CriterionId and ran it and

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
Hi Josh, This did not work :( I get this error: suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-elt.4.3: Type 'ns0:BiddableAdGroupCriterion' is not validly derived from the type definition, 'AdGroupCriterionOperation', of element 'ns0:operations'. ' On Monday, May 2, 2016 at

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Anup Pathak
Hi Kevin, You have to take Criteria id from PRODUCT_PARTITION_REPORT and use that Criteria id, you are using wrong criteria id let me know if you need more help in this! Thank you! Anup Pathak On Monday, 2 May 2016 19:26:32 UTC+5:30, Kevin Weitzner wrote: > > Hi Anup, > > I tried your

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi, I think the problem is in the line highlighted below. adgroup_criterion['adGroupId'] = adgroup_id adgroup_criterion['criterion'] = unit CreateAddOperation(adgroup_criterion) result = adgroup_criterion_service.mutate(adgroup_criterion_service) Instead of passing

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
Hi Josh, I understand the requirements, however I am having a difficult time translating this to appropriate Python code which does not result in an unmarshalling error. I have found the Python version of the code you're referencing --

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
Hi Anup, I tried your operations and still receive an Unmarshalling Error for my input string (my criterion ID was a product ID.) So I changed the product groups as such: "All products > lighting, rugs, outdoor, Everything else in 'All products' Code is as such: ad_group_id = '263'

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread Anup Pathak
Hi, working code for setting cpc bids for Shopping product partitions, I hope this will help you. operation = { 'xsi_type':'AdGroupCriterionOperation', 'operator': 'ADD', 'operand': {

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi, It looks like you're missing the intermediate *ProductPartition* object. You'll want to create one of those with *UNIT* partition type and set its *caseValue* to the *ProductOfferId*. The *BiddableAdGroupCriterion.criterion* should point to that *ProductPartition* object instead of

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread Kevin Weitzner
Hi -- I think I am getting closer... ad_group_id = '2163' criterion_id = '2523931-rou-6' Function now looks like this - def main(client): adgroup_criterion_service = client.GetService('AdGroupCriterionService', version='v201603') bid_modifier = '1.5' operations = [{

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Kevin, You can set bids at the product/item ID level by creating BiddableAdGroupCriterion objects with: - criterion

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread Kevin Weitzner
Hi -- I am not certain how the last step should be executed --I am not getting any errors, however CPC for productID is not being set. See script below: ad_group_id = '**' criterion_id = '**' def main(client): adgroup_criterion_service =

Re: Script - Google Shopping Campaign - Auto CPC Bid

2014-10-17 Thread Anup Pathak
Hello Josh, Issue resolved Thank You! On Wednesday, September 24, 2014 8:11:29 PM UTC+5:30, Steve Berg wrote: Hello, I would like in my 30 Shopping Campaigns the offer and the management of the CPC from the Product Groups automate. For example, the CPC should be low in a low CTR

Re: Script - Google Shopping Campaign - Auto CPC Bid

2014-10-16 Thread Anup Pathak
Hi Josh, i want to change product group cpc, i have created product groups by item id I followed your steps here is code (Python) adgroup_criterion_service = adwords_client.GetService('AdGroupCriterionService', version='v201406') bid_modifier = '1.5' operations = [{

Re: Script - Google Shopping Campaign - Auto CPC Bid

2014-09-25 Thread Josh Radcliff (AdWords API Team)
Hi Steve, Just to clarify - by script I'm assuming you mean code that executes methods in the AdWords API https://developers.google.com/adwords/api/docs/, and not AdWords Scripts https://developers.google.com/adwords/scripts/. All management of product groups in the AdWords API is done via

Script - Google Shopping Campaign - Auto CPC Bid

2014-09-24 Thread Steve Berg
Hello, I would like in my 30 Shopping Campaigns the offer and the management of the CPC from the Product Groups automate. For example, the CPC should be low in a low CTR be in good conversion correspondingly higher. How would a possible script look like? Best Regards - Steve - -- --