function main() {var report = AdWordsApp.report("SELECT CampaignName, AdNetworkType1 " +"FROM CAMPAIGN_PERFORMANCE_REPORT " +"DURING TODAY");var rows = report.rows()while (rows.hasNext()) {var row = rows.next();Logger.log(row['CampaignName'] + ": - " + row['AdNetworkType1']) }}
var campaignIterator = AdWordsApp.campaigns()
.withCondition('Status = "ENABLED"')
.withCondition("AdvertisingChannelType = SEARCH") //Only check Search campaigns
.get();
function main() {
var campaignIterator = AdWordsApp.campaigns()
.withCondition('Status = "ENABLED"')
.withCondition("AdvertisingChannelType = SEARCH") //Only check Search campaigns
.withCondition("AdvertisingChannelSubType = SEARCH_MOBILE_APP")
.get();
while (campaignIterator.hasNext()){
var camp = campaignIterator.next();
Logger.log(camp.getName());
}
}function main() {
var campaignIterator = AdWordsApp.campaigns()
.withCondition('Status = "ENABLED"')
.withCondition("LabelNames CONTAINS_ANY ['Xmas', 'New Year']")
.get();
while (campaignIterator.hasNext()){
var camp = campaignIterator.next();
Logger.log(camp.getName());
}
}Hi Damian,
Thanks for reaching out and allow me to assist you. Are you also pertaining to the AdvertisingChannelType and the AdvertisingChannelSubType from Campaign Performance Reports? For your reference, kindly check out this link for available AdvertisingChannelType values and this link for AdvertisingChannelSubType values.
If you would require further assistance in implementing your script, can you kindly share with us your CID and the script ID via Reply privately to author or Reply to author option instead, so we could check on our end? If those options aren't working on your end, you can send those requested details on this email (googleadsscr...@google.com) and include the link of this thread so we could keep track of this existing conversation.
Thanks,
|
||||||
Hi Damian,
Thank you for the information you have shared privately. I will reach out to the rest of the team regarding your concern. I will get back to you as soon as I have more information.
Hi Damian,
Upon consulting, there is no corresponding attribute available in the API's Campaign object with regard to the Network Campaign Settings in the UI. For example, a Search-only campaign created via the API will always be an All features campaign from the UI perspective. See Campaign subtypes section in this link for reference.