Re: Edit userlist targeting bid adjustment

2017-08-07 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi, 

I see that you have set the validateOnly 

 header 
to true in the request. When this header is set to true, the request is 
validated but not performed. If there are no errors returned in the 
response, it means the request is valid. You need to set this header to 
false to execute this operation. Please try this out 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/e9bd4807-4605-43de-b0c8-71326afb888e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Edit userlist targeting bid adjustment

2017-08-07 Thread rafa . romero
Hi!

I'm trying to edit the bid adjustment but despite I'm not getting any 
error, the change is not being made on Adwords.

This is the code that I'm using (I'm working with java/grails)

def adwordsServcices = new AdWordsServices()
def adGroupCriterionService = adwordsServcices.get(session, 
AdGroupCriterionServiceInterface.class)

def criterion = new CriterionUserList()
criterion.setId(id)

// Create ad group bid.
def bidCriterion = new BiddableAdGroupCriterion()
bidCriterion.setAdGroupId(adGroupId)
bidCriterion.setCriterion(criterion)
bidCriterion.setBidModifier(value)

// Create operations.
def operation = new AdGroupCriterionOperation()
operation.setOperand(bidCriterion)
operation.setOperator(Operator.SET)

def operations = (AdGroupCriterionOperation[]) [operation]

// Update ad group criteria.
def result = adGroupCriterionService.mutate(operations)


And here the request and response:

*Request*:

http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;>

https://adwords.google.com/api/adwords/cm/v201702; 
soapenv:mustUnderstand="0">

004707663694
REDACTED
***@gmail.com (AwApi-Java, 
AdWords-Axis/3.2.0, Common-Java/3.2.0, Axis/1.4, Java/1.8.0_131, 
maven)
true
true



https://adwords.google.com/api/adwords/cm/v201702;>

SET
https://adwords.google.com/api/adwords/cm/v201702; 
xsi:type="ns2:BiddableAdGroupCriterion">
39364874541

340920409188

1.04







*Response*:

http://schemas.xmlsoap.org/soap/envelope/;>

https://adwords.google.com/api/adwords/cm/v201702;>
0005562bcf5421480a37c31c590cd23b
AdGroupCriterionService
mutate
0
228



https://adwords.google.com/api/adwords/cm/v201702"/>





-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/93639bee-d667-408e-aaa3-e9e3937e2702%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.