문제

What's the least expensive way to create the entire Campaign hierarchy, from the Campaign down to the Ads/Keywords, using the AdWords API?

I have a tool for creating/organizing Campaigns, AdGroups, and Ads/Keywords. I'm sending this data to Google via the AdWords API.

Is there a way to do all of this in one single MutateJobService?

From all my research it seems the only way to do this is by

  1. Creating the Campaigns job.
  2. waiting for it to finish, extracting all Campaign ids and matching them to the AdGroups.
  3. Creating an AdGroups job.
  4. waiting for it to finish, extracting all AdGroup ids and matching them to the ads/keywords.
  5. Creating an Ads/Keywords job.

Is there a simple way that I'm somehow missing?

도움이 되었습니까?

해결책

There is currently no way to add an entire account hierarchy in a single job, because of depending IDs. In general the number of campaigns and ad groups in an account is relatively small, and it may be worth using the synchronous CampaignService and AdGroupService to create them instead of waiting on jobs.

FYI: In the future you may want to post these questions to the official AdWords API forum: http://code.google.com/apis/adwords/community/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top