Create campaign - adwords script - doesnt create the campaign

31 views
Skip to first unread message

Ersin Uslu

unread,
Apr 25, 2017, 9:24:48 AM4/25/17
to AdWords API Forum
Hi, I copied this code from Adwords Script Samples section. But it doesnt create the campaign? What is missing? Please Help

--------------------

function createOrUpdateCampaigns() {

  var columns = [ 'Campaign', 'Budget', 'Bid Strategy type', 'Campaign type' ];

  var upload = AdWordsApp.bulkUploads().newCsvUpload( columns, {moneyInMicros: false} );

  // AdWords identify existing campaigns using its name. To create a new
  // campaign, use a campaign name that doesn't exist in your account.
  upload.append({
    'Campaign': 'Test Campaign 1',
    'Budget': 1,
    'Bid Strategy type': 'cpc',
    'Campaign type': 'Search Only'
  });
  // Use upload.apply() to make changes without previewing.
  upload.preview();
}

function main() {
  createOrUpdateCampaigns();
  
}

Shwetha Vastrad (AdWords API Team)

unread,
Apr 25, 2017, 10:06:07 AM4/25/17
to AdWords API Forum
Hi,

On this forum, we support queries related to AdWords API. Since this question is related to AdWords Scripts, you need to post your question on the AdWords Scripts Forum and your issue can be resolved there.

Regards,
Shwetha, AdWords API Team.

Ersin Uslu

unread,
Apr 26, 2017, 8:36:22 AM4/26/17
to AdWords API Forum
there is no error on code. 
Problem is in the adwords page, The adwords page doesnt refresh the all campaigns after script runned.

1) I run the code.
2) Then I click the Google Adwords Logo.
3) New campaign is created and it can be seen there.
Reply all
Reply to author
Forward
0 new messages