Rev 9057 | Blame | Compare with Previous | Last modification | View Log | RSS feed
namespace java in.shop2020.googleadwordsnamespace py shop2020.thriftpy.googleadwordsinclude "GenericService.thrift"/**Exceptions*/exception GoogleAdwordsServiceException{1:i64 id,2:string message}enum NetworkSettingType{GOOGLE_SEARCH_AND_SEARCH_NETWORK = 1,DISPLAY_NETWORK = 2,GOOGLE_PARTNER_SEARCH_NETWORK = 3,SEARCH_AND_DISPLAY_NETWORK = 4,DISPLAY_AND_PARTNER_NETWORK = 5,SEARCH_AND_PARTNER_NETWORK = 6,ALL_AVALIABLE_SOURCES =7}enum AdwordsCampaignStatus{ACTIVE = 1,PAUSED = 2,DELETED = 3}enum AdwordsAdGroupStatus{ENABLED = 1,PAUSED = 2,DELETED = 3}enum KeywordMatchType{EXACT = 1,PHRASE = 2,BROAD = 3}struct AdwordsCampaign{1:i64 id,2:i64 campaignId,3:string name,4:AdwordsCampaignStatus status,5:optional i64 startDate,6:optional i64 endDate,7:double budgetAmount,8:NetworkSettingType networkType}struct AdwordsAdGroup{1:i64 id,2:i64 campaignId,3:i64 adgroupId,4:i64 catalogItemId,5:string name,6:AdwordsAdGroupStatus status,7:double bidAmount,8:i32 stockLinked}struct AdwordsAdGroupAd{1:i64 id,2:i64 campaignId,3:i64 adgroupId,4:i64 adgroupadId,5:string headline,6:string description1,7:string description2,8:string url,9:string displayUrl}struct AdwordsAdKeyword{1:i64 id,2:i64 campaignId,3:i64 adgroupId,4:i64 criterionId,5:string text,6:double bidAmount,7:KeywordMatchType matchType}service GoogleAdwordsService extends GenericService.GenericService{void addAdwordsCampaign(1:AdwordsCampaign campaign) throws (1:GoogleAdwordsServiceException gasex),void addAdwordsAdGroup(1:AdwordsAdGroup adgroup) throws (1:GoogleAdwordsServiceException gasex),void addAdwordsAdGroupAd(1:AdwordsAdGroupAd adgroupad) throws (1:GoogleAdwordsServiceException gasex),void addAdwordsAdKeyword(1:AdwordsAdKeyword adkeyword) throws (1:GoogleAdwordsServiceException gasex),void updateAdwordsCampaign(1:AdwordsCampaign campaign) throws (1:GoogleAdwordsServiceException gasex),void updateAdwordsAdGroup(1:AdwordsAdGroup adgroup) throws (1:GoogleAdwordsServiceException gasex),void updateAdwordsAdKeyword(1:AdwordsAdKeyword adkeyword) throws (1:GoogleAdwordsServiceException gasex),void updateAdwordsAdGroupAd(1:AdwordsAdGroupAd adgroupad) throws (1:GoogleAdwordsServiceException gasex),void deleteAdwordsCampaign(1:i64 campaignId) throws (1:GoogleAdwordsServiceException gasex),void deleteAdwordsAdGroup(1:i64 adgroupId) throws (1:GoogleAdwordsServiceException gasex),void deleteAdwordsAdGroupAd(1:i64 adgroupadId) throws (1:GoogleAdwordsServiceException gasex),void deleteAdwordsAdKeyword(1:i64 criterionId) throws (1:GoogleAdwordsServiceException gasex),AdwordsCampaign getAdwordsCampaignByCampaignId(1:i64 campaignId) throws (1:GoogleAdwordsServiceException gasex),AdwordsAdGroup getAdwordsAdGroupByAdGroupId(1:i64 adgroupId) throws (1:GoogleAdwordsServiceException gasex),AdwordsAdGroupAd getAdwordsAdgroupAdByAdId(1:i64 adgroupadId) throws (1:GoogleAdwordsServiceException gasex),AdwordsAdKeyword getAdwordsAdKeywordByCriterionIdAndAdGroupId(1:i64 criterionId, 2:i64 adgroupId) throws (1:GoogleAdwordsServiceException gasex),list<AdwordsAdKeyword> getAdwordsAdKeywordsByAdgroupId(1:i64 adgroupId) throws (1:GoogleAdwordsServiceException gasex),list<AdwordsAdGroupAd> getAdwordsAdGroupAdsByAdgroupId(1:i64 adgroupId) throws (1:GoogleAdwordsServiceException gasex),list<AdwordsAdGroup> getAdwordsAdGroupsByCampaignId(1:i64 campaignId) throws (1:GoogleAdwordsServiceException gasex),list<AdwordsCampaign> getAllAdwordsCampaigns() throws (1:GoogleAdwordsServiceException gasex),list<AdwordsAdGroup> getAllAdwordsAdGroups() throws (1:GoogleAdwordsServiceException gasex),list<AdwordsAdGroupAd> getAllAdwordsAdGroupAds() throws (1:GoogleAdwordsServiceException gasex),list<AdwordsAdKeyword> getAllAdwordsAdKeywords() throws (1:GoogleAdwordsServiceException gasex)}