I've been trying to use Google Ads script
<https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_experiment>
to
get info of experiment and draft campaigns, however it give's me an error
like this:
ERROR: Cannot call property experiments in object AdWordsApp. It is not a
function, it is "undefined".
Below is the sample code I used:
var draftCampaignIterator =
AdWordsApp.experiments().withIds([draftIds]).get()
if (draftCampaignIterator.hasNext()) {
var draftCampaign = draftCampaignIterator.next();
var darftCampaignName = draftCampaign.getName();
sheet.getRange(i + 1,
lastColumnNumber+2).setValue(darftCampaignName);
}
I've checked the library
<https://script.google.com/a/macros/google.com/library/d/12qYtxFp9Rzt6KIn9BkgXLAQpjyLCeA72VwA9xG_jjtK-7aIljCrPHvZs/244>
and includes the experiment and draft, so I was wondering why is it not
working. I've also tried searching for possible answer but no luck.
Hope someone can help me or enlighten me what is wrong.
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/f7a9c73a-c62e-4a18-8b25-26fc8c5725e1%40googlegroups.com.