Hi,
I'm trying to get campaign network setting with ruby client. In
previous AdWords API version I used (v201008)
it was possible to get network setting with campaign target service.
As documented here:
http://code.google.com/apis/adwords/docs/reference/latest/CampaignTargetService.html
we should refer to CampaignCriterionService to get NetworkTargetList
but I can't find it there.
There is networkSetting field in Campaign type:
http://code.google.com/apis/adwords/docs/reference/latest/CampaignService.Campaign.html
but I dunno how to get it.
Simple example with Ruby client:
adwords = AdwordsApi::Api.new(creds)
campaign_srv = adwords.service(:CampaignService, API_VERSION)
selector = {
:fields => ['Id', 'Name', 'Status'],
:ordering => [{:field => 'Name', :sort_order => 'ASCENDING'}]
}
response = campaign_srv.get(selector)
result = response[:entries]
No networkSetting in result.
Another example:
campaign_criteria_srv = adwords.service(:CampaignCriterionService,
API_VERSION)
selector = {
:fields => ["CampaignId"],
:predicates => [{:field => "CampaignId", :operator =>
'EQUALS', :values => [campaign[:id]]}]
}
response = campaign_criteria_srv.get(selector)
No networkSeting in response.
Same thing for CampaignTargetService.
How can I pull networkSeting or better to say NetworkTargetList for
specific campaign?
Thanks,
Sinisa.
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en