Hi, The AddAudience.php example <https://github.com/googleads/googleads-php-lib/blob/4058cd3fb30e3a2a3629f323e99df587c085d230/examples/AdWords/v201409/Remarketing/AddAudience.php> shows how to create the user list. If you want to add the user list for target and bid, you'll need to:
1. Add a TargetingSettingDetail <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupService.TargetingSettingDetail> to the AdGroup with: - criterionTypeGroup = USER_INTEREST_AND_LIST - targetAll = false (this is equivalent to "Target and bid" in the UI) 2. Add a BiddableAdGroupCriterion with: - criterion <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupCriterionService.BiddableAdGroupCriterion#criterion> = a CriterionUserList <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupCriterionService.CriterionUserList> with your audience/user list ID - biddingStrategyConfiguration <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupCriterionService.BiddableAdGroupCriterion#biddingStrategyConfiguration> = a config with your desired bids The 2nd step will be similar to the process of adding bids for a keyword shown in the AddKeywords.php example <https://github.com/googleads/googleads-php-lib/blob/4058cd3fb30e3a2a3629f323e99df587c085d230/examples/AdWords/v201409/BasicOperations/AddKeywords.php> . Cheers, Josh, AdWords API Team On Monday, February 16, 2015 at 5:12:10 AM UTC-5, Denys Kovalenko wrote: > > Hi guys, > > I'm struggling to find an example of a script to add a new AdGroup and > assign "Target and Bid" to Targeting Settings and Add Remarketing Lists to > Audiences by List Id. > > Can someone help please? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/bd0d439f-8b06-4c8e-9e9a-a00ffa09d687%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
