Thanks Vincent - you're totally right. I misunderstood NetworkSetting for being a criterion rather than a field in Campaign objects. Thanks for your response!
On Wednesday, December 20, 2017 at 10:45:32 PM UTC-6, Vincent Racaza (AdWords API Team) wrote: > > Hi Nick, > > Could you confirm on why you were able to say that "Network isn't a > possible criteria to target"? Network is not a criterion, therefore, you > really could not update it in the CampaignCriterion object. You can only > update the network setting > <https://developers.google.com/adwords/api/docs/reference/v201710/CampaignService.Campaign#networksetting> > of > a draft campaign in the Campaign > <https://developers.google.com/adwords/api/docs/reference/v201710/CampaignService.Campaign> > object. > See sample SOAP request snippets below on creating a draft campaign (via > DraftService.mutate() > <https://developers.google.com/adwords/api/docs/reference/v201710/DraftService#mutate>) > > and modifying its network setting (via CampaignService.mutate() > <https://developers.google.com/adwords/api/docs/reference/v201710/CampaignService#mutate> > ): > > <soapenv:Body> > <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201710"> > <operations> > <operator>ADD</operator> > <operand> > <baseCampaignId>XXXXXXXXXX</baseCampaignId> > <draftName>Test Draft Sample</draftName> > </operand> > </operations> > </mutate> > </soapenv:Body> > > <soapenv:Body> > <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201710"> > <operations> > <operator>SET</operator> > <operand> > <id>XXXXXXXXXXXX</id> //This is the draft campaign ID > <networkSetting> > > *<targetGoogleSearch>true</targetGoogleSearch> > <targetSearchNetwork>true</targetSearchNetwork>* > </networkSetting> > </operand> > </operations> > </mutate> > </soapenv:Body> > > You can emulate the SOAP requests above and let me know if this works on > your end. > > Thanks, > Vincent > 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 [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 --- 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 [email protected]. 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/9276bd08-ccb2-4785-b6ba-0c754e558b14%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
