Hi,
Please see this example code:
function main(){
const genderSelector = AdsApp.videoTargeting()
.genders()
.withCondition("ad_group.status in (ENABLED, PAUSED, REMOVED)")
.withCondition("campaign.status in (ENABLED, PAUSED, REMOVED)")
.withCondition("ad_group_criterion.status in (ENABLED, PAUSED, REMOVED)"
);
const genderIterator = genderSelector.get();
while (genderIterator.hasNext()) {
let gender = genderIterator.next();
console.log(gender.getVideoAdGroup().getVideoCampaign().getName() + " -
" + gender.getVideoAdGroup().getName())
//here, campaigns/ad groups are only listed for the campaign I created
manually
//campaign created via bulk upload (I have 3) are not listed
}
}
Per the comments, a campaign named "YouTube" (created manually) appears but
all my other campaigns aren't listed.
The campaign which are *not *showing:
- Have the same campaign type
- Have ad groups (and those ad groups obviously have genders)
- Don't have any clicks or impressions
My account ID is 125-518-7903 and the script is named "Playground".
Any help would be appreciated.
Thanks,
Charles
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/db587bf0-5f49-44db-b4d4-2a2074282ea0n%40googlegroups.com.