Re: criteria service PLACEMENT not work

2018-12-03 Thread 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Alejandro,

Could you please provide the complete SOAP request and response logs 
(including the clientCustomerId) via the the *Reply privately to author* option 
so 
I can look into the issue you're having?

You can enable SOAP logging on your end by referring to this guide 
.
 
Once enabled, kindly send to me the generated SOAP request and response 
logs so I can determine more accurately which caused the issue.

Regards,
Dannison
AdWords API Team

On Monday, December 3, 2018 at 1:30:29 PM UTC+8, Alejandro BrĂ¼cher wrote:
>
> I insert a negative criterial 
> ---
>  customer_negative_criterion_service = client.GetService(
>   'CustomerNegativeCriterionService', version='v201809')
>   criteria = [
>   # Exclude a specific placement.
>   {
>   'xsi_type': 'Placement',
>   'url': url
>   }
>   ]
>   operations = [{
>   'operator': 'ADD',
>   'operand': {
>   'criterion': criterion
>   }
>   } for criterion in criteria]  
>   result = customer_negative_criterion_service.mutate(operations)
>
> --  
>
> and insert de negative criterial!
> when i search the insert
> -
> selector = {
>   'fields': ['Id'],
>   'predicates': [{
>   'field': 'CriteriaType',
>   'operator': 'IN',
>   'values': ['PLACEMENT']
>   }],
>   'paging': {
>   'startIndex': str(offset),
>   'numberResults': str(PAGE_SIZE)
>   }
>   }  
>   # Make the mutate request.
>   page = campaign_criterion_service.get(selector)
> --
> return null
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/2b756500-78d6-4221-a518-7ea973e6720f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


criteria service PLACEMENT not work

2018-12-02 Thread Alejandro BrĂ¼cher
I insert a negative criterial 
---
 customer_negative_criterion_service = client.GetService(
  'CustomerNegativeCriterionService', version='v201809')
  criteria = [
  # Exclude a specific placement.
  {
  'xsi_type': 'Placement',
  'url': url
  }
  ]
  operations = [{
  'operator': 'ADD',
  'operand': {
  'criterion': criterion
  }
  } for criterion in criteria]  
  result = customer_negative_criterion_service.mutate(operations)

--  

and insert de negative criterial!
when i search the insert
-
selector = {
  'fields': ['Id'],
  'predicates': [{
  'field': 'CriteriaType',
  'operator': 'IN',
  'values': ['PLACEMENT']
  }],
  'paging': {
  'startIndex': str(offset),
  'numberResults': str(PAGE_SIZE)
  }
  }  
  # Make the mutate request.
  page = campaign_criterion_service.get(selector)
--
return null

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/31138041-f004-45a4-8f7a-6ad7992034ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.