Friday, 29 April 2016

Re: Script - Google Shopping Campaign - Auto CPC Bid

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('AdGroupCriterionService', version='v201603')

    bid_modifier = '15'

    operations =  [{
                          'xsi_type':'AdGroupCriterionOperation',
                          'operator': 'SET',
                          'operand': {
                                      'xsi_type': 'BiddableAdGroupCriterion',
                                      'adGroupId': ad_group_id,
                                      'criterion': {
                                                    'xsi_type': 'ProductPartition',
                                                    'id': criterion_id
                                                    },
                                       'bidModifier':bid_modifier

                            }
                          }]

if __name__ == '__main__':
  adwords_client = adwords.AdWordsClient.LoadFromStorage('******.yaml')
  main(adwords_client)

--

I would like to be able to set the CPC of product Ids themselves by passing the appropriate product ID in the Criterion_ID --- I have thousands of products that I want to try a strategy on.  I believe the last step in the explanation is what I am missing here.

Thanks,
Kevin

On Thursday, September 25, 2014 at 12:00:28 PM UTC-5, Josh Radcliff (AdWords API Team) wrote:
Hi Steve,

Just to clarify - by "script" I'm assuming you mean code that executes methods in the AdWords API, and not AdWords Scripts. All management of product groups in the AdWords API is done via AdGroupCriterionService. The Shopping Guide contains a useful introduction to the concepts involved.

Once you have your product groups set up, you can modify a given product group's CPC bid by sending an AdGroupCriterionService.mutate call containing an AdGroupCriterionOperation where the operator is SET and the operand is a BiddableAdGroupCriterion with:
To monitor the performance of each product group (ProductPartition), you can use the API's Product Partition Report.

Cheers,
Josh, AdWords API Team

On Wednesday, September 24, 2014 10:41:29 AM UTC-4, 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
be in good conversion correspondingly higher.

How would a possible script look like?

Best Regards
- Steve -

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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+unsubscribe@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/c9985c69-9888-448c-859a-7a13064bd81a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment