Hi!
the following code gives me an error, because it does not recognize the
audienceID. I have used the ones from the report called
"uservertical::91800", and have tried just typing in numbers such as 1,2,3
etc. Why is it not updating? Can you help?
function interests() {
var interests = []
var campaignIterator = AdsApp.campaigns().withIds([1668598316]).get()
while (campaignIterator.hasNext()){
var campaign = campaignIterator.next()
var adgroupIterator = campaign.adGroups().get()
while (adgroupIterator.hasNext()){
var adgroup = adgroupIterator.next()
var audienceBuilder = adgroup.targeting().newUserListBuilder();
var audienceOperation = audienceBuilder
.withAudienceId(91800) // required
.withBidModifier(1.1) // optional
.build(); // add the audience
var audience = audienceOperation.getResult()}}}
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 and Google Ads 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/a1317a55-1d37-43d4-a7bd-6071bcea51ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.