Re: Could we change the target roas at ad group level via api?

2019-11-05 Thread Kevin Weitzner
For anybody who needs to know how to do this via Python: ad_group_service = client.GetService( 'AdGroupService', version='v201809') # Construct operations and update an ad group. operations = [{ 'operator': 'SET', 'operand': { 'id': adgroup_id, 'biddingStrategyConfigu

Re: Modifying existing Product Partition trees

2019-06-17 Thread Kevin Weitzner
at 9:19:46 PM UTC-5, CDG wrote: > > hi Kevin, > > Thank you for your answer. > , > I am currently able to create tree content and add it to the Google > advertising product group through examples and your responses. > > I want to ask is, is there any way to modify the create

Re: Modifying existing Product Partition trees

2019-06-12 Thread Kevin Weitzner
Do you still need help with this? Here is some example in code from one of my python scripts adgroup_criterion_service = client.GetService( 'AdGroupCriterionService', version='v201809') selector = { 'fields':['ParentCriterionId'], 'predicates':[ { 'field':'AdGroupI

Re: Keywords Performance Report

2019-06-12 Thread Kevin Weitzner
You're looking for the column: "Criteria" Descriptive string for the Criterion. For more information on the format of criteria types in reports, see the Criteria prefixessection of the reporting guide . Type St

Lining up KeywordID to the actual Keyword Text

2019-01-17 Thread Kevin Weitzner
I am not a clever man. Criteria is what I was looking for. I thought that I had tried it and had null data. -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received t

Lining up KeywordID to the actual Keyword Text

2019-01-17 Thread Kevin Weitzner
I am looking for how to line up the Id received from KEYWORDS_PERFORMANCE_REPORT - the actual ID of a keyword to the actual keyword in the account. I pulled a SEARCH_QUERY_PERFORMANCE_REPORT but a lot of them aren't in this report - so this is not the best way. Is there any way to have the ac

Re: [Python] Adwords API - Product Partition

2018-10-26 Thread Kevin Weitzner
x27;] = pla helper.CreateUnit(root, new_product, 20) other_products = { 'xsi_type': 'ProductOfferId', } helper.CreateUnit( root, other_products) # Make the mutate request result = adgroup_criterion_service.mutate(helper.GetOperations()) On Friday,

Re: How to get the id of the root product partition [python]

2018-10-26 Thread Kevin Weitzner
Hi Matthias, I went to check this out, as I think I need to do this for my issue. I was able to get the parent criterion id using the AdGroupCriterionService get selector Looks like something like this would work - but I've not put it in practice other than a quick test. def main(client, adgr

Re: [Python] Adwords API - Product Partition

2018-10-26 Thread Kevin Weitzner
Additionally -- the end goal is to be able to built it out like the attached image. On Friday, October 19, 2018 at 9:39:25 AM UTC-5, Kevin Weitzner wrote: > > Greetings, > > I'm attempting to modify the add_product_partition_tree.py ( > https://github.com/googleads/googl

Re: [Python] Adwords API - Product Partition

2018-10-26 Thread Kevin Weitzner
Hi Sreelakshmi, Sorry for the delay, I've been working on other projects this week. The image you've attached does not appear to show up. I am trying to modify the sample you've given to do a small test, and still running into an error - if I exclude the parentCriterionId:-1, it gives an er

Re: [Python] Adwords API - Product Partition

2018-10-22 Thread Kevin Weitzner
I have sent you some details privately. Thanks On Monday, October 22, 2018 at 2:15:48 PM UTC-5, Sreelakshmi Sasidharan (AdWords API Team) wrote: > > Hello Kevin, > > Glad that you were able to remove the existing product partition. What > issue are you facing? Could you please share the error

Re: [Python] Adwords API - Product Partition

2018-10-22 Thread Kevin Weitzner
> > I was able to remove the existing partition via the code: > adgroup_criterion_service = client.GetService( 'AdGroupCriterionService', version='v201806') helper = ProductPartitionHelper(adgroup_id) division_old = { 'xsi_type': 'ProductPartition', 'partitionType': 'SUBDIVISION'

Re: [Python] Adwords API - Product Partition

2018-10-19 Thread Kevin Weitzner
Hi, It's not clear exactly how to do this - can I do it via this library without an external report call? In the c# library it looks like there exists a method to do this rather easily - "// Build a new ProductPartitionTree using the ad group's current set of criteria.

Re: How to pull Shopping product id and Max Cpc

2018-10-19 Thread Kevin Weitzner
I do this via a product partition report. I pull Campaign ID, ProductGroup, CpcBid, Id, and AdGroupId. If you look in the product group column, you can get your PLA IDs, just have to string replace the * / item id=", and other " with nothing. If you want to assign bids you will need your crite

[Python] Adwords API - Product Partition

2018-10-19 Thread Kevin Weitzner
Greetings, I'm attempting to modify the add_product_partition_tree.py (https://github.com/googleads/googleads-python-lib/blob/master/examples/adwords/v201806/shopping/add_product_partition_tree.py) example file to create a product group with a single PLAID - and every other item to be excluded

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"

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
id', 'bid': { 'microAmount': str(bid_modifier) }, }] } } } result = adgroup_cri

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
}] } } } On Monday, May 2, 2016 at 10:12:54 AM UTC-5, Kevin Weitzner wrote: > > Hi Anup, > > Is the

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
'bid': { 'microAmount': str(bid_modifier) },

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
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,

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
riterion'] = unit > > CreateAddOperation(adgroup_criterion) > result = adgroup_criterion_service.mutate(adgroup_criterion_service) > > Instead of passing *adgroup_criterion_service* to *mutate*, please try > passing an array containing the operations (*adgroup_criterion* in your > code)

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
t instead of directly to the *ProductOfferId*. > > I realize this can be a bit confusing. :) I'd definitely recommend looking > at the createUnit function I mentioned earlier > <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201603/ShoppingCampa

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-05-02 Thread Kevin Weitzner
turday, 30 April 2016 05:58:05 UTC+5:30, Josh Radcliff (AdWords API > Team) wrote: >> >> 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 >&g

Re: Script - Google Shopping Campaign - Auto CPC Bid

2016-04-29 Thread Kevin Weitzner
ers.google.com/adwords/api/docs/reference/v201603/AdGroupCriterionService.BiddableAdGroupCriterion#biddingstrategyconfiguration> > configured > with your bids > > Please see the createUnit function in the AddProductPartitionTree.php > example > <https://github.com/goo

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 = client.GetService('AdGroupCriterionS

Re: Python - Campaign Report - advertisingChannelType question

2016-04-27 Thread Kevin Weitzner
Thank you Shwetha - this solved it perfectly, now I understand the predicate functionality on the entire reporting system. On Tuesday, April 26, 2016 at 12:39:14 PM UTC-5, Shwetha Vastrad (AdWords API Team) wrote: > > Hi Kevin, > > To filter results associated with SEARCH campaigns, you would

Python - Campaign Report - advertisingChannelType question

2016-04-26 Thread Kevin Weitzner
I've been trying a few different ways to setup the report definition such that I only get SEARCH campaigns. report = { 'reportName': 'Last 7 days CRITERIA_PERFORMANCE_REPORT', 'dateRangeType': 'CUSTOM_DATE', 'reportType': 'CRITERIA_PERFORMANCE_REPORT', 'downloadFormat': '