Hi Sreelakshmi,

Actually I have only campaign id and I want to get linked UserListId and 
UserListName of that campaign. In  CampaignCriterionService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService#get>
  
there no such field to get userListId.

I am using as below selector and method:

CampaignCriterionService = user.getService('CampaignCriterionService', 
'v201802')
         CustomerServiceSelector = {
            'fields': ['CampaignId'],
            "predicates": [{
                "field": 'CampaignId',
                "operator": "EQUALS",
                "values": ["xxxxx"]
            }],
        }
CampaignCriterionService.get({ serviceSelector: CustomerServiceSelector }


I found userListId 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.CriterionUserList#userlistid>
, userListName 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.CriterionUserList#userlistname>
 are used in CampaignCriterionService.mutate() 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService#mutate>;
 
not in  CampaignCriterionService.get() 
<https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService#get>
 but 
I want in get service.

If is possible then pls share the selector example might I am doing some 
mistake in selector that I share above.

Thanks,
Tarun Jain

On Wednesday, July 11, 2018 at 8:49:42 PM UTC+5:30, Sreelakshmi Sasidharan 
(AdWords API Team) wrote:
>
> Hi Tarun, 
>
> To get the AdWordsUserList associated with a campaign as a 
> CriterionUserList 
> <https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.CriterionUserList>,
>  
> you can use the CampaignCriterionService.get() 
> <https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService#get>
>  and 
> filter with the campaign Id. You can look for the attributes userListId 
> <https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.CriterionUserList#userlistid>
> , userListName 
> <https://developers.google.com/adwords/api/docs/reference/v201806/CampaignCriterionService.CriterionUserList#userlistname>
>  etc., 
> in the API response. You could check the GetCampaignTargetingCriteria 
> <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201806/targeting/GetCampaignTargetingCriteria.java>
>  sample 
> in Java client library to get all the campaign level targeting criterion. 
> Samples in other languages can also be found here 
> <https://developers.google.com/adwords/api/docs/clientlibraries>. 
>
> Thanks,
> Sreelakshmi, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ecb66f7b-9646-4f19-921c-48e72c97a15c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... Tarun Jain
    • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
      • ... Tarun Jain
      • ... Tarun Jain
        • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to