Guest User

Untitled

a guest
Jul 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. startQuery() {
  2. return Promise.all([
  3. this._createCampaign(this.$models),
  4. this._createCreative(this.$models),
  5. ]).then(resps => {
  6. this.setStore('campaign', resps[0]);
  7. this.setStore('creative', resps[1]);
  8. return this._createStrategy(this.$models, this.$store)
  9. }).then(strategy => {
  10. this.setStore('strategy', strategy);
  11. return Promise.all([
  12. this._attachCreativeToStrategy(this.$store),
  13. this._setLocationTargeting(this.$models, this.$store),
  14. this._setDeviceTargeting(this.$models, this.$store),
  15. this._setBrowserTargeting(this.$models, this.$store),
  16. this._setOsTargeting(this.$models, this.$store),
  17. this._setContextualTargeting(this.$models, this.$store),
  18. this._createSiteList(this.$models, this.$store)
  19. .then(siteList => this._attachSiteList({ siteList }, this.$store)),
  20. this._createKeywordList(this.$models, this.$store)
  21. .then(keywordList => this._attachKeywordList({ keywordList }, this.$store)),
  22. ]);
  23. }).then(attachedCreatives => {
  24. this.setStore('attachedCreatives', attachedCreatives);
  25. return this.$store;
  26. })
  27. }
Add Comment
Please, Sign In to add comment