├── doc.go ├── marketing-api ├── api │ ├── v3 │ │ ├── doc.go │ │ ├── project │ │ │ └── doc.go │ │ └── promotion │ │ │ └── doc.go │ ├── ad │ │ └── doc.go │ ├── dpa │ │ ├── doc.go │ │ ├── product_delete.go │ │ ├── dict_get.go │ │ ├── meta_get.go │ │ ├── detail_get.go │ │ └── video_get.go │ ├── star │ │ ├── doc.go │ │ ├── star-ad-unite-task │ │ │ └── doc.go │ │ └── info.go │ ├── tools │ │ ├── v3 │ │ │ └── doc.go │ │ ├── doc.go │ │ ├── rta │ │ │ ├── doc.go │ │ │ ├── status_update.go │ │ │ ├── set_scope.go │ │ │ └── get.go │ │ ├── aweme │ │ │ └── doc.go │ │ ├── union │ │ │ └── doc.go │ │ ├── abtest │ │ │ ├── doc.go │ │ │ └── update.go │ │ ├── comment │ │ │ ├── doc.go │ │ │ └── stick_on_top.go │ │ ├── diagnosis │ │ │ ├── v3 │ │ │ │ └── doc.go │ │ │ └── doc.go │ │ ├── log │ │ │ └── doc.go │ │ ├── site │ │ │ └── doc.go │ │ ├── adpreview │ │ │ ├── v3 │ │ │ │ └── doc.go │ │ │ └── doc.go │ │ ├── adraise │ │ │ ├── doc.go │ │ │ └── v3 │ │ │ │ ├── stop.go │ │ │ │ └── set.go │ │ ├── clue │ │ │ ├── doc.go │ │ │ └── callback.go │ │ ├── microgame │ │ │ └── doc.go │ │ ├── security │ │ │ └── doc.go │ │ ├── wechat │ │ │ └── doc.go │ │ ├── adconvert │ │ │ └── doc.go │ │ ├── taskraise │ │ │ ├── doc.go │ │ │ └── status_stop.go │ │ ├── nativeanchor │ │ │ ├── doc.go │ │ │ └── delete.go │ │ ├── thirdsite │ │ │ └── doc.go │ │ ├── creativeword │ │ │ └── doc.go │ │ ├── appmanagement │ │ │ ├── doc.go │ │ │ └── update_authorization.go │ │ ├── interestaction │ │ │ └── doc.go │ │ ├── landinggroup │ │ │ └── doc.go │ │ ├── rejectmaterial │ │ │ └── doc.go │ │ ├── sitetemplate │ │ │ └── doc.go │ │ ├── hotmaterialderive │ │ │ └── doc.go │ │ ├── keywordsbidratio │ │ │ ├── doc.go │ │ │ ├── create.go │ │ │ ├── delete.go │ │ │ └── update.go │ │ └── quickappmanagement │ │ │ └── doc.go │ ├── clue │ │ ├── doc.go │ │ ├── form │ │ │ └── doc.go │ │ ├── wechat │ │ │ └── doc.go │ │ ├── coupon │ │ │ ├── doc.go │ │ │ ├── code_consume.go │ │ │ ├── employee_delete.go │ │ │ ├── get.go │ │ │ └── update.go │ │ └── smartphone │ │ │ ├── doc.go │ │ │ └── delete.go │ ├── dmp │ │ ├── doc.go │ │ ├── datasource │ │ │ └── doc.go │ │ └── customaudience │ │ │ ├── doc.go │ │ │ ├── delete.go │ │ │ └── copy.go │ ├── file │ │ ├── doc.go │ │ ├── rebate │ │ │ └── doc.go │ │ └── audio_ad.go │ ├── local │ │ ├── doc.go │ │ ├── poi │ │ │ └── doc.go │ │ ├── aweme │ │ │ └── doc.go │ │ ├── clue │ │ │ ├── doc.go │ │ │ └── life_callback.go │ │ ├── file │ │ │ └── doc.go │ │ ├── product │ │ │ └── doc.go │ │ ├── project │ │ │ └── doc.go │ │ ├── report │ │ │ └── doc.go │ │ ├── promotion │ │ │ ├── doc.go │ │ │ └── update.go │ │ └── customaudience │ │ │ └── doc.go │ ├── qianchuan │ │ ├── ad │ │ │ ├── doc.go │ │ │ └── keywords_update.go │ │ ├── dmp │ │ │ └── doc.go │ │ ├── shop │ │ │ ├── doc.go │ │ │ └── get.go │ │ ├── doc.go │ │ ├── file │ │ │ └── doc.go │ │ ├── live │ │ │ └── doc.go │ │ ├── report │ │ │ └── doc.go │ │ ├── tools │ │ │ ├── doc.go │ │ │ └── shop_auth.go │ │ ├── aweme │ │ │ ├── doc.go │ │ │ └── order_budget_add.go │ │ ├── creative │ │ │ └── doc.go │ │ ├── campaign │ │ │ └── doc.go │ │ ├── finance │ │ │ └── doc.go │ │ ├── material │ │ │ ├── doc.go │ │ │ └── ad_material_delete.go │ │ ├── product │ │ │ ├── doc.go │ │ │ └── analyse │ │ │ │ └── doc.go │ │ ├── advertiser │ │ │ ├── doc.go │ │ │ └── account_budget_update.go │ │ └── uni_promotion │ │ │ ├── doc.go │ │ │ ├── ad_name_update.go │ │ │ └── material_delete.go │ ├── report │ │ ├── v3 │ │ │ └── doc.go │ │ ├── doc.go │ │ ├── audience │ │ │ └── doc.go │ │ ├── asynctask │ │ │ ├── doc.go │ │ │ └── v3 │ │ │ │ ├── doc.go │ │ │ │ └── download.go │ │ └── liveroom │ │ │ └── doc.go │ ├── agent │ │ ├── doc.go │ │ └── info.go │ ├── assets │ │ ├── doc.go │ │ └── creativecomponent │ │ │ └── doc.go │ ├── eventmanager │ │ ├── v3 │ │ │ └── doc.go │ │ ├── auth │ │ │ └── doc.go │ │ ├── doc.go │ │ ├── track_url_create.go │ │ └── track_url_update.go │ ├── oauth │ │ └── doc.go │ ├── track │ │ ├── doc.go │ │ ├── wxa_active.go │ │ └── active.go │ ├── audiencepackage │ │ ├── v3 │ │ │ └── doc.go │ │ └── doc.go │ ├── campaign │ │ └── doc.go │ ├── creative │ │ ├── doc.go │ │ └── get.go │ ├── duoplus │ │ └── doc.go │ ├── keyword │ │ └── doc.go │ ├── majordomo │ │ └── doc.go │ ├── advertiser │ │ ├── doc.go │ │ ├── qualification_create.go │ │ ├── avatar_submit.go │ │ └── qualification_submit.go │ ├── enterprise │ │ └── doc.go │ ├── servemarket │ │ └── doc.go │ ├── sharedwallet │ │ └── doc.go │ ├── subscribe │ │ ├── doc.go │ │ ├── accounts_add.go │ │ └── accounts_remove.go │ ├── privativeword │ │ └── doc.go │ ├── businessplatform │ │ └── doc.go │ ├── customercenter │ │ └── doc.go │ └── conversion │ │ ├── doc.go │ │ ├── assist.go │ │ ├── attribution.go │ │ ├── valuable.go │ │ └── conversion.go ├── enum │ ├── doc.go │ ├── qianchuan │ │ ├── doc.go │ │ ├── deep_bid_type.go │ │ ├── carousel_source.go │ │ ├── pay_status.go │ │ ├── pay_type.go │ │ ├── bid_type.go │ │ ├── qcpx_model.go │ │ ├── word_type.go │ │ ├── budget_mode.go │ │ ├── bid_mode.go │ │ ├── user_action_event.go │ │ ├── live_room_heat_mode.go │ │ ├── audience_account_type.go │ │ ├── product_channel_type.go │ │ ├── audience_type.go │ │ ├── material_type.go │ │ ├── stats_authority.go │ │ ├── live_flow_source.go │ │ ├── title_type.go │ │ ├── ecp_type.go │ │ ├── order_platform.go │ │ ├── view_delivery_type.go │ │ ├── creative_opt_status.go │ │ ├── ad_opt_status.go │ │ ├── marketing_scene.go │ │ ├── explain_status.go │ │ └── learing_status.go │ ├── yesno.go │ ├── order_type.go │ ├── company_type.go │ ├── attachment_type.go │ ├── credential.go │ ├── bid_speed.go │ ├── enterprise │ │ ├── item_type.go │ │ ├── comment_level.go │ │ ├── time_dimension.go │ │ ├── operation_type.go │ │ └── comment_source.go │ ├── rta_status.go │ ├── transaction_type.go │ ├── abtest_type.go │ ├── mini_program_type.go │ ├── opt_status.go │ ├── stamp_type.go │ ├── delivery_mode.go │ ├── interest_action_type.go │ ├── dpa_adtype.go │ ├── upload_type.go │ ├── lab_ad_type.go │ ├── local │ │ ├── clue_flow_type.go │ │ ├── delivery_goal.go │ │ ├── bid_type.go │ │ ├── ad_type.go │ │ ├── city_divide.go │ │ ├── image_mode.go │ │ ├── delivery_poi_model.go │ │ ├── gender.go │ │ ├── leads_page.go │ │ ├── clue_allocation_status.go │ │ ├── marketing_goal.go │ │ ├── custom_audience_tags_type.go │ │ ├── clue_type.go │ │ ├── upload_task_status.go │ │ ├── schedule_type.go │ │ ├── follow_life_account_type.go │ │ └── location_type.go │ ├── track_os.go │ ├── audit_platform.go │ ├── send_type.go │ ├── account_soruce.go │ ├── task_raise_mode.go │ ├── transfer_direction.go │ ├── aweme_user_type.go │ ├── carrier.go │ ├── industry_status.go │ ├── launch_type.go │ ├── schedule_scene.go │ ├── materials_type.go │ ├── comment_permission.go │ ├── site_share_type.go │ ├── difference_invoice.go │ ├── multi_delivery_medium.go │ ├── retargeting_type.go │ ├── video_update_status_code.go │ ├── flow_package_status.go │ ├── adraise_opt_status.go │ ├── download_mode.go │ ├── wechat_asset_status.go │ ├── anchor_share_type.go │ ├── track_match_type.go │ ├── campaign_type.go │ ├── stamp_status.go │ ├── comment_stick_type.go │ ├── feed_delivery_search.go │ ├── comment_type.go │ ├── site_function_type.go │ ├── task_raise_budget_mode.go │ ├── invoice_status.go │ ├── superior_popularity_type.go │ ├── ad_convert_status.go │ ├── material_channel.go │ ├── wechat_search_type.go │ ├── budget_mode.go │ ├── conversion_bill_track_type.go │ ├── material_bind_fail_reason.go │ ├── blue_flow_recommend_type.go │ ├── platform_version.go │ ├── rta_target_type.go │ ├── action_scene.go │ ├── micro_app_search_type.go │ ├── component_status.go │ ├── dpa_rta_recommend_type.go │ ├── ad_convert_opt_status.go │ ├── promotion_type.go │ ├── archive_status.go │ ├── creative_display_mode.go │ ├── group_flow_type.go │ ├── smart_bid_type.go │ ├── dpa_video_template_type.go │ ├── event_track_type.go │ ├── landing_group_status.go │ ├── security_score_illegal_type.go │ ├── video_schedule_type.go │ ├── advertiser_copy_status.go │ ├── aweme_binding_type.go │ ├── comment_hide_status.go │ ├── delivery_type.go │ ├── shop_platform.go │ ├── industry_config_rule_type.go │ ├── product_setting.go │ ├── video_cover_status.go │ ├── ad_delivery_range.go │ ├── app_promotion_type.go │ ├── async_task_type.go │ ├── auto_generate_config_version.go │ ├── aweme_auth_status.go │ ├── download_type.go │ ├── flow_package_type.go │ ├── video_pause_status.go │ ├── asset_share_type.go │ ├── launch_target_type.go │ ├── keyword_match_type.go │ ├── marketing_scene.go │ ├── shared_wallet_type.go │ ├── comment_level_type.go │ ├── dmp_push_status.go │ ├── audience_mode.go │ ├── rebate_operator_type.go │ ├── comment_emotion_type.go │ ├── interest_action_mode.go │ ├── advanced_dc_setting.go │ ├── conversion_ad_match_type.go │ ├── external_action_belong.go │ ├── location_type.go │ ├── union_video_type.go │ ├── ad_opt_status.go │ ├── creative_op_status.go │ ├── live_platform_tag.go │ ├── weekday.go │ ├── wechat_audit_status.go │ ├── audience_gender.go │ ├── datasource_status.go │ ├── abtest_status.go │ ├── activate_type.go │ ├── aweme_status.go │ ├── flow_control_mode.go │ ├── campaign_dpa.go │ ├── schedule_type.go │ ├── play_material_image_mode.go │ ├── bid_type.go │ ├── rebate_calc_policy_type.go │ ├── region_level.go │ ├── ai_repair_status.go │ ├── audience_level.go │ ├── material_policy_type.go │ ├── marketing_purpose.go │ ├── playable_orientation.go │ ├── aweme_auth_share_type.go │ ├── aweme_auth_type.go │ ├── behavior.go │ ├── external_action_source.go │ ├── rebate_approval_status.go │ ├── district.go │ ├── promotion_way.go │ ├── product_audit_status.go │ ├── subscribe_adv_status.go │ ├── app_upload_task_status.go │ └── rebate_use_type.go ├── model │ ├── star │ │ ├── doc.go │ │ └── star-ad-unite-task │ │ │ └── doc.go │ ├── v3 │ │ ├── doc.go │ │ ├── project │ │ │ ├── doc.go │ │ │ └── delete.go │ │ └── promotion │ │ │ ├── doc.go │ │ │ └── delete.go │ ├── doc.go │ ├── local │ │ ├── doc.go │ │ ├── poi │ │ │ ├── doc.go │ │ │ └── multi_poi.go │ │ ├── aweme │ │ │ └── doc.go │ │ ├── clue │ │ │ └── doc.go │ │ ├── file │ │ │ └── doc.go │ │ ├── product │ │ │ └── doc.go │ │ ├── project │ │ │ └── doc.go │ │ ├── report │ │ │ └── doc.go │ │ ├── promotion │ │ │ └── doc.go │ │ └── customaudience │ │ │ ├── doc.go │ │ │ └── custom_audience.go │ ├── qianchuan │ │ ├── ad │ │ │ ├── doc.go │ │ │ └── channel_product.go │ │ ├── dmp │ │ │ └── doc.go │ │ ├── shop │ │ │ ├── doc.go │ │ │ └── shop.go │ │ ├── doc.go │ │ ├── live │ │ │ └── doc.go │ │ ├── tools │ │ │ └── doc.go │ │ ├── file │ │ │ └── doc.go │ │ ├── report │ │ │ ├── doc.go │ │ │ └── stat.go │ │ ├── campaign │ │ │ └── doc.go │ │ ├── creative │ │ │ ├── doc.go │ │ │ └── dynamic_word.go │ │ ├── finance │ │ │ └── doc.go │ │ ├── material │ │ │ └── doc.go │ │ ├── advertiser │ │ │ └── doc.go │ │ ├── aweme │ │ │ ├── doc.go │ │ │ ├── interest_keyword.go │ │ │ ├── coupon.go │ │ │ └── audit_record.go │ │ ├── product │ │ │ ├── analyse │ │ │ │ └── doc.go │ │ │ └── doc.go │ │ ├── uni_promotion │ │ │ ├── doc.go │ │ │ └── auth_init.go │ │ ├── carousel │ │ │ └── audio.go │ │ └── brand │ │ │ └── brand.go │ ├── report │ │ ├── v3 │ │ │ ├── doc.go │ │ │ └── stat.go │ │ ├── doc.go │ │ ├── asynctask │ │ │ ├── v3 │ │ │ │ └── doc.go │ │ │ └── doc.go │ │ ├── audience │ │ │ └── doc.go │ │ └── liveroom │ │ │ └── doc.go │ ├── tools │ │ ├── v3 │ │ │ └── doc.go │ │ ├── aweme │ │ │ ├── doc.go │ │ │ └── category.go │ │ ├── rta │ │ │ └── doc.go │ │ ├── abtest │ │ │ ├── doc.go │ │ │ ├── object.go │ │ │ └── errors.go │ │ ├── comment │ │ │ └── doc.go │ │ ├── doc.go │ │ ├── union │ │ │ └── doc.go │ │ ├── adraise │ │ │ ├── doc.go │ │ │ └── v3 │ │ │ │ └── stop.go │ │ ├── diagnosis │ │ │ ├── v3 │ │ │ │ ├── doc.go │ │ │ │ └── suggest.go │ │ │ └── doc.go │ │ ├── security │ │ │ └── doc.go │ │ ├── wechat │ │ │ ├── doc.go │ │ │ ├── types.go │ │ │ └── consts.go │ │ ├── adpreview │ │ │ ├── v3 │ │ │ │ └── doc.go │ │ │ └── doc.go │ │ ├── clue │ │ │ └── doc.go │ │ ├── log │ │ │ └── doc.go │ │ ├── microgame │ │ │ └── doc.go │ │ ├── site │ │ │ ├── doc.go │ │ │ ├── fail_message.go │ │ │ ├── link_event.go │ │ │ └── text_brick.go │ │ ├── nativeanchor │ │ │ └── doc.go │ │ ├── adconvert │ │ │ ├── doc.go │ │ │ └── optimize_target.go │ │ ├── creativeword │ │ │ └── doc.go │ │ ├── taskraise │ │ │ ├── doc.go │ │ │ └── status_stop.go │ │ ├── thirdsite │ │ │ └── doc.go │ │ ├── appmanagement │ │ │ ├── doc.go │ │ │ ├── types.go │ │ │ └── upload_task.go │ │ ├── hotmaterialderive │ │ │ └── doc.go │ │ ├── interestaction │ │ │ ├── doc.go │ │ │ └── object.go │ │ ├── keywordsbidratio │ │ │ └── doc.go │ │ ├── landinggroup │ │ │ └── doc.go │ │ ├── rejectmaterial │ │ │ └── doc.go │ │ ├── sitetemplate │ │ │ ├── doc.go │ │ │ └── template.go │ │ └── quickappmanagement │ │ │ └── doc.go │ ├── ad │ │ └── doc.go │ ├── dmp │ │ ├── doc.go │ │ ├── datasource │ │ │ └── doc.go │ │ └── customaudience │ │ │ ├── doc.go │ │ │ ├── delete.go │ │ │ └── publish.go │ ├── dpa │ │ ├── doc.go │ │ ├── behaviour.go │ │ ├── dict.go │ │ ├── platform.go │ │ ├── category.go │ │ └── meta.go │ ├── eventmanager │ │ ├── v3 │ │ │ └── doc.go │ │ ├── auth │ │ │ ├── doc.go │ │ │ ├── const.go │ │ │ ├── enable.go │ │ │ └── disable.go │ │ └── doc.go │ ├── keyword │ │ ├── doc.go │ │ ├── response.go │ │ └── v3 │ │ │ └── delete.go │ ├── spi │ │ ├── doc.go │ │ ├── challenge_response.go │ │ ├── response.go │ │ └── challenge_request.go │ ├── agent │ │ └── doc.go │ ├── audiencepackage │ │ ├── v3 │ │ │ └── doc.go │ │ └── doc.go │ ├── clue │ │ ├── doc.go │ │ ├── form │ │ │ └── doc.go │ │ ├── wechat │ │ │ └── doc.go │ │ ├── coupon │ │ │ ├── doc.go │ │ │ ├── limit_setting.go │ │ │ ├── gift.go │ │ │ ├── activity_type.go │ │ │ └── employee_delete.go │ │ └── smartphone │ │ │ ├── doc.go │ │ │ ├── time_range.go │ │ │ └── delete.go │ ├── duoplus │ │ └── doc.go │ ├── file │ │ ├── doc.go │ │ └── rebate │ │ │ └── doc.go │ ├── spda │ │ └── doc.go │ ├── assets │ │ ├── doc.go │ │ └── creativecomponent │ │ │ └── doc.go │ ├── oauth │ │ └── doc.go │ ├── track │ │ └── doc.go │ ├── campaign │ │ └── doc.go │ ├── creative │ │ ├── doc.go │ │ ├── interactive_material.go │ │ ├── error.go │ │ ├── decoration_material.go │ │ ├── update.go │ │ ├── get_response.go │ │ └── component_material.go │ ├── enterprise │ │ ├── doc.go │ │ └── enterprise.go │ ├── sharedwallet │ │ └── doc.go │ ├── subscribe │ │ └── doc.go │ ├── advertiser │ │ └── doc.go │ ├── conversion │ │ ├── doc.go │ │ └── response.go │ ├── majordomo │ │ ├── doc.go │ │ └── advertiser.go │ ├── servemarket │ │ └── doc.go │ ├── privativeword │ │ ├── doc.go │ │ ├── v3 │ │ │ └── word.go │ │ └── ad_word.go │ ├── businessplatform │ │ ├── doc.go │ │ ├── account.go │ │ └── partner_organization.go │ ├── customercenter │ │ └── doc.go │ ├── float_range.go │ └── time_range.go ├── core │ ├── doc.go │ └── ratelimiter.go ├── doc.go └── util │ ├── query │ └── doc.go │ ├── json.go │ └── string.go ├── .github └── workflows │ └── goreportcard.yml ├── .gitignore └── go.mod /doc.go: -------------------------------------------------------------------------------- 1 | // 巨量引擎openapi golang sdk 2 | package oceanengine 3 | -------------------------------------------------------------------------------- /marketing-api/api/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 广告投放体验版 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/enum/doc.go: -------------------------------------------------------------------------------- 1 | // Package enum 枚举值定义 2 | package enum 3 | -------------------------------------------------------------------------------- /marketing-api/api/ad/doc.go: -------------------------------------------------------------------------------- 1 | // Package ad 广告组相关API 2 | package ad 3 | -------------------------------------------------------------------------------- /marketing-api/api/dpa/doc.go: -------------------------------------------------------------------------------- 1 | // Package dpa 商品广告相关API 2 | package dpa 3 | -------------------------------------------------------------------------------- /marketing-api/api/star/doc.go: -------------------------------------------------------------------------------- 1 | // Package star 巨量星图 2 | package star 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 升级版相关 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/model/star/doc.go: -------------------------------------------------------------------------------- 1 | // Package star 巨量星图 2 | package star 3 | -------------------------------------------------------------------------------- /marketing-api/model/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 广告投放体验版 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/api/clue/doc.go: -------------------------------------------------------------------------------- 1 | // Package clue 青鸟线索通API 2 | package clue 3 | -------------------------------------------------------------------------------- /marketing-api/api/dmp/doc.go: -------------------------------------------------------------------------------- 1 | // Package dmp DMP人群管理相关API 2 | package dmp 3 | -------------------------------------------------------------------------------- /marketing-api/api/file/doc.go: -------------------------------------------------------------------------------- 1 | // Package file 素材管理相关API 2 | package file 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/doc.go: -------------------------------------------------------------------------------- 1 | // Package local 本地推相关 2 | package local 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/poi/doc.go: -------------------------------------------------------------------------------- 1 | // Package poi 门店相关 2 | package poi 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/ad/doc.go: -------------------------------------------------------------------------------- 1 | // Package ad 广告计划 2 | package ad 3 | -------------------------------------------------------------------------------- /marketing-api/api/report/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 体验版数据报表 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/doc.go: -------------------------------------------------------------------------------- 1 | // Package tools 工具类API 2 | package tools 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/rta/doc.go: -------------------------------------------------------------------------------- 1 | // Package rta RTA策略管理 2 | package rta 3 | -------------------------------------------------------------------------------- /marketing-api/core/doc.go: -------------------------------------------------------------------------------- 1 | // Package core 包含SDKClient 2 | package core 3 | -------------------------------------------------------------------------------- /marketing-api/model/doc.go: -------------------------------------------------------------------------------- 1 | // Package model 包含API所需结构体 2 | package model 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/doc.go: -------------------------------------------------------------------------------- 1 | // Package local 本地推相关 2 | package local 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/poi/doc.go: -------------------------------------------------------------------------------- 1 | // Package poi 门店相关 2 | package poi 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/ad/doc.go: -------------------------------------------------------------------------------- 1 | // Package ad 广告计划 2 | package ad 3 | -------------------------------------------------------------------------------- /marketing-api/model/report/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 体验版数据报表 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 升级版相关 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/api/agent/doc.go: -------------------------------------------------------------------------------- 1 | // Package agent 代理商账号管理相关API 2 | package agent 3 | -------------------------------------------------------------------------------- /marketing-api/api/assets/doc.go: -------------------------------------------------------------------------------- 1 | // Package assets 资产相关API 2 | package assets 3 | -------------------------------------------------------------------------------- /marketing-api/api/clue/form/doc.go: -------------------------------------------------------------------------------- 1 | // Package form 表单组件API 2 | package form 3 | -------------------------------------------------------------------------------- /marketing-api/api/eventmanager/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 体验版事件管理 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/aweme/doc.go: -------------------------------------------------------------------------------- 1 | // Package aweme 抖音号相关 2 | package aweme 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/clue/doc.go: -------------------------------------------------------------------------------- 1 | // Package clue 本地推线索管理相关 2 | package clue 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/file/doc.go: -------------------------------------------------------------------------------- 1 | // Package file 本地推素材管理相关 2 | package file 3 | -------------------------------------------------------------------------------- /marketing-api/api/oauth/doc.go: -------------------------------------------------------------------------------- 1 | // Package oauth OAuth授权相关API 2 | package oauth 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/dmp/doc.go: -------------------------------------------------------------------------------- 1 | // Package dmp DMP人群管理 2 | package dmp 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/shop/doc.go: -------------------------------------------------------------------------------- 1 | // Package shop 店铺相关 2 | package shop 3 | -------------------------------------------------------------------------------- /marketing-api/api/report/doc.go: -------------------------------------------------------------------------------- 1 | // Package report 数据报表相关API 2 | package report 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/aweme/doc.go: -------------------------------------------------------------------------------- 1 | // Package aweme 抖音达人 2 | package aweme 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/union/doc.go: -------------------------------------------------------------------------------- 1 | // Package union 穿山流量相关 2 | package union 3 | -------------------------------------------------------------------------------- /marketing-api/api/track/doc.go: -------------------------------------------------------------------------------- 1 | // Package track 线索数据上报相关API 2 | package track 3 | -------------------------------------------------------------------------------- /marketing-api/model/ad/doc.go: -------------------------------------------------------------------------------- 1 | // Package ad 广告计划相关API models 2 | package ad 3 | -------------------------------------------------------------------------------- /marketing-api/model/dmp/doc.go: -------------------------------------------------------------------------------- 1 | // Package dmp DMP人群管理API models 2 | package dmp 3 | -------------------------------------------------------------------------------- /marketing-api/model/dpa/doc.go: -------------------------------------------------------------------------------- 1 | // Package dpa 商品广告相关API models 2 | package dpa 3 | -------------------------------------------------------------------------------- /marketing-api/model/eventmanager/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 体验版事件管理 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/model/keyword/doc.go: -------------------------------------------------------------------------------- 1 | // Package keyword 关键词管理 2 | package keyword 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/aweme/doc.go: -------------------------------------------------------------------------------- 1 | // Package aweme 抖音号相关 2 | package aweme 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/dmp/doc.go: -------------------------------------------------------------------------------- 1 | // Package dmp DMP人群管理 2 | package dmp 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/shop/doc.go: -------------------------------------------------------------------------------- 1 | // Package shop 店铺相关 2 | package shop 3 | -------------------------------------------------------------------------------- /marketing-api/model/spi/doc.go: -------------------------------------------------------------------------------- 1 | // Package spi SPI推送相关API models 2 | package spi 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/aweme/doc.go: -------------------------------------------------------------------------------- 1 | // Package aweme 抖音达人 2 | package aweme 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/rta/doc.go: -------------------------------------------------------------------------------- 1 | // Package rta RTA策略管理 2 | package rta 3 | -------------------------------------------------------------------------------- /marketing-api/api/audiencepackage/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 定向包相关V3 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/api/campaign/doc.go: -------------------------------------------------------------------------------- 1 | // Package campaign 广告计划相关API 2 | package campaign 3 | -------------------------------------------------------------------------------- /marketing-api/api/clue/wechat/doc.go: -------------------------------------------------------------------------------- 1 | // Package wechat 微信加粉组件 2 | package wechat 3 | -------------------------------------------------------------------------------- /marketing-api/api/creative/doc.go: -------------------------------------------------------------------------------- 1 | // Package creative 广告创意模块API 2 | package creative 3 | -------------------------------------------------------------------------------- /marketing-api/api/duoplus/doc.go: -------------------------------------------------------------------------------- 1 | // Package duoplus Dou+ 投放能力 2 | package duoplus 3 | -------------------------------------------------------------------------------- /marketing-api/api/eventmanager/auth/doc.go: -------------------------------------------------------------------------------- 1 | // Package auth 鉴权管理接口 2 | package auth 3 | -------------------------------------------------------------------------------- /marketing-api/api/keyword/doc.go: -------------------------------------------------------------------------------- 1 | // Package keyword 关键词管理相关API 2 | package keyword 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/product/doc.go: -------------------------------------------------------------------------------- 1 | // Package product 产品相关 2 | package product 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/project/doc.go: -------------------------------------------------------------------------------- 1 | // Package project 项目管理模块 2 | package project 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/report/doc.go: -------------------------------------------------------------------------------- 1 | // Package report 本地推数据报表相关 2 | package report 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/doc.go: -------------------------------------------------------------------------------- 1 | // Package qianchuan 巨量千穿 2 | package qianchuan 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/file/doc.go: -------------------------------------------------------------------------------- 1 | // Package file 素材管理相关API 2 | package file 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/live/doc.go: -------------------------------------------------------------------------------- 1 | // Package live 直播间相关API 2 | package live 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/report/doc.go: -------------------------------------------------------------------------------- 1 | // Package report 数据报表 2 | package report 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/tools/doc.go: -------------------------------------------------------------------------------- 1 | // Package tools 查询工具 2 | package tools 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/abtest/doc.go: -------------------------------------------------------------------------------- 1 | // Package abtest AB实验工具 2 | package abtest 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/comment/doc.go: -------------------------------------------------------------------------------- 1 | // Package comment 评论管理 2 | package comment 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/diagnosis/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 获取计划诊断信息体验版 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/log/doc.go: -------------------------------------------------------------------------------- 1 | // Package log 工具-查询工具-日志查询API 2 | package log 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/site/doc.go: -------------------------------------------------------------------------------- 1 | // Package site 橙子建站落地页管理 API 2 | package site 3 | -------------------------------------------------------------------------------- /marketing-api/api/v3/project/doc.go: -------------------------------------------------------------------------------- 1 | // Package project 项目管理模块 2 | package project 3 | -------------------------------------------------------------------------------- /marketing-api/model/agent/doc.go: -------------------------------------------------------------------------------- 1 | // Package agent 代理商相关API models 2 | package agent 3 | -------------------------------------------------------------------------------- /marketing-api/model/audiencepackage/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 定向包相关V3 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/model/clue/doc.go: -------------------------------------------------------------------------------- 1 | // Package clue 青鸟线索通API models 2 | package clue 3 | -------------------------------------------------------------------------------- /marketing-api/model/clue/form/doc.go: -------------------------------------------------------------------------------- 1 | // Package form 表单组件API models 2 | package form 3 | -------------------------------------------------------------------------------- /marketing-api/model/clue/wechat/doc.go: -------------------------------------------------------------------------------- 1 | // Package wechat 微信加粉组件 2 | package wechat 3 | -------------------------------------------------------------------------------- /marketing-api/model/duoplus/doc.go: -------------------------------------------------------------------------------- 1 | // Package duoplus Dou+ 投放能力 2 | package duoplus 3 | -------------------------------------------------------------------------------- /marketing-api/model/eventmanager/auth/doc.go: -------------------------------------------------------------------------------- 1 | // Package auth 鉴权管理接口 2 | package auth 3 | -------------------------------------------------------------------------------- /marketing-api/model/file/doc.go: -------------------------------------------------------------------------------- 1 | // Package file 素材管理相关API models 2 | package file 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/clue/doc.go: -------------------------------------------------------------------------------- 1 | // Package clue 本地推线索管理相关 2 | package clue 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/file/doc.go: -------------------------------------------------------------------------------- 1 | // Package file 本地推素材管理相关 2 | package file 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/product/doc.go: -------------------------------------------------------------------------------- 1 | // Package product 商品相关 2 | package product 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/doc.go: -------------------------------------------------------------------------------- 1 | // Package qianchuan 巨量千穿 2 | package qianchuan 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/live/doc.go: -------------------------------------------------------------------------------- 1 | // Package live 直播间相关API 2 | package live 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/tools/doc.go: -------------------------------------------------------------------------------- 1 | // Package tools 查询工具 2 | package tools 3 | -------------------------------------------------------------------------------- /marketing-api/model/spda/doc.go: -------------------------------------------------------------------------------- 1 | // Package spda SPDA 相关API models 2 | package spda 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/abtest/doc.go: -------------------------------------------------------------------------------- 1 | // Package abtest AB实验工具 2 | package abtest 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/comment/doc.go: -------------------------------------------------------------------------------- 1 | // Package comment 评论管理 2 | package comment 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/doc.go: -------------------------------------------------------------------------------- 1 | // Package tools 工具相关API models 2 | package tools 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/union/doc.go: -------------------------------------------------------------------------------- 1 | // Package union 穿山流量相关 2 | package union 3 | -------------------------------------------------------------------------------- /marketing-api/model/v3/project/doc.go: -------------------------------------------------------------------------------- 1 | // Package project 项目管理模块 2 | package project 3 | -------------------------------------------------------------------------------- /marketing-api/api/clue/coupon/doc.go: -------------------------------------------------------------------------------- 1 | // Package coupon 线索通卡券组件管理 API 2 | package coupon 3 | -------------------------------------------------------------------------------- /marketing-api/api/file/rebate/doc.go: -------------------------------------------------------------------------------- 1 | // Package rebate 【代理】返点明点化素材数据 2 | package rebate 3 | -------------------------------------------------------------------------------- /marketing-api/api/majordomo/doc.go: -------------------------------------------------------------------------------- 1 | // Package majordomo 管家账号相关API 2 | package majordomo 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/aweme/doc.go: -------------------------------------------------------------------------------- 1 | // Package aweme 千川授权抖音号相关API 2 | package aweme 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/creative/doc.go: -------------------------------------------------------------------------------- 1 | // Package creative 广告创意 2 | package creative 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/adpreview/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 广告升级版预览相关API 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/adraise/doc.go: -------------------------------------------------------------------------------- 1 | // Package adraise 一键起量相关API 2 | package adraise 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/clue/doc.go: -------------------------------------------------------------------------------- 1 | // Package clue 线索及建站工具API 相关models 2 | package clue 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/microgame/doc.go: -------------------------------------------------------------------------------- 1 | // package microgame 字节小游戏 2 | package microgame 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/security/doc.go: -------------------------------------------------------------------------------- 1 | // Package security 风控违规积分 2 | package security 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/wechat/doc.go: -------------------------------------------------------------------------------- 1 | // Package wechat 微信小程序/小游戏管理 2 | package wechat 3 | -------------------------------------------------------------------------------- /marketing-api/api/v3/promotion/doc.go: -------------------------------------------------------------------------------- 1 | // Package promotion 广告管理模块 2 | package promotion 3 | -------------------------------------------------------------------------------- /marketing-api/doc.go: -------------------------------------------------------------------------------- 1 | // Package marketingapi 巨量引擎marketing-api 2 | package marketingapi 3 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/doc.go: -------------------------------------------------------------------------------- 1 | // Package qianchuan 千川枚举值定义 2 | package qianchuan 3 | -------------------------------------------------------------------------------- /marketing-api/model/assets/doc.go: -------------------------------------------------------------------------------- 1 | // Package assets 资产相关API models 2 | package assets 3 | -------------------------------------------------------------------------------- /marketing-api/model/file/rebate/doc.go: -------------------------------------------------------------------------------- 1 | // Package rebate 【代理】返点明点化素材数据 2 | package rebate 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/project/doc.go: -------------------------------------------------------------------------------- 1 | // Package project 项目管理模块 2 | package project 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/report/doc.go: -------------------------------------------------------------------------------- 1 | // Package report 本地推数据报表相关 2 | package report 3 | -------------------------------------------------------------------------------- /marketing-api/model/oauth/doc.go: -------------------------------------------------------------------------------- 1 | // Package oauth OAuth授权相关API models 2 | package oauth 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/file/doc.go: -------------------------------------------------------------------------------- 1 | // Package file 素材管理API models 2 | package file 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/report/doc.go: -------------------------------------------------------------------------------- 1 | // Package report 数据报表 2 | package report 3 | -------------------------------------------------------------------------------- /marketing-api/model/report/doc.go: -------------------------------------------------------------------------------- 1 | // Package report 数据报表相关API models 2 | package report 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/adraise/doc.go: -------------------------------------------------------------------------------- 1 | // Package adraise 一键起量相关API 2 | package adraise 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/diagnosis/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 获取计划诊断信息体验版 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/security/doc.go: -------------------------------------------------------------------------------- 1 | // Package security 风控违规积分 2 | package security 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/wechat/doc.go: -------------------------------------------------------------------------------- 1 | // Package wechat 微信小程序/小游戏管理 2 | package wechat 3 | -------------------------------------------------------------------------------- /marketing-api/model/track/doc.go: -------------------------------------------------------------------------------- 1 | // Package track 数据上报管理相关API models 2 | package track 3 | -------------------------------------------------------------------------------- /marketing-api/api/advertiser/doc.go: -------------------------------------------------------------------------------- 1 | // Package advertiser 账号服务相关API 2 | package advertiser 3 | -------------------------------------------------------------------------------- /marketing-api/api/dmp/datasource/doc.go: -------------------------------------------------------------------------------- 1 | // Package datasource 数据源相关API 2 | package datasource 3 | -------------------------------------------------------------------------------- /marketing-api/api/enterprise/doc.go: -------------------------------------------------------------------------------- 1 | // Package enterprise 企业号相关 API 2 | package enterprise 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/promotion/doc.go: -------------------------------------------------------------------------------- 1 | // Package promotion 广告管理模块 2 | package promotion 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/campaign/doc.go: -------------------------------------------------------------------------------- 1 | // Package campaign 广告组管理 2 | package campaign 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/finance/doc.go: -------------------------------------------------------------------------------- 1 | // Package finance 资金管理相关API 2 | package finance 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/material/doc.go: -------------------------------------------------------------------------------- 1 | // Package material 广告素材管理 2 | package material 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/product/doc.go: -------------------------------------------------------------------------------- 1 | // Package product 千川商品相关API 2 | package product 3 | -------------------------------------------------------------------------------- /marketing-api/api/report/audience/doc.go: -------------------------------------------------------------------------------- 1 | // Package audience 受众分析相关API 2 | package audience 3 | -------------------------------------------------------------------------------- /marketing-api/api/servemarket/doc.go: -------------------------------------------------------------------------------- 1 | // Package servemarket 应用市场 相关API 2 | package servemarket 3 | -------------------------------------------------------------------------------- /marketing-api/api/sharedwallet/doc.go: -------------------------------------------------------------------------------- 1 | // Package sharedwallet 资金共享 2 | package sharedwallet 3 | -------------------------------------------------------------------------------- /marketing-api/api/subscribe/doc.go: -------------------------------------------------------------------------------- 1 | // Package subscribe RDS订阅adv_id增删查 2 | package subscribe 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/adconvert/doc.go: -------------------------------------------------------------------------------- 1 | // Package adconvert 转化目标管理 API 2 | package adconvert 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/adpreview/doc.go: -------------------------------------------------------------------------------- 1 | // Package adpreview 广告预览相关API 2 | package adpreview 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/diagnosis/doc.go: -------------------------------------------------------------------------------- 1 | // Package diagnosis 获取计划诊断信息 2 | package diagnosis 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/taskraise/doc.go: -------------------------------------------------------------------------------- 1 | // Package taskraise 账户优选起量 API 2 | package taskraise 3 | -------------------------------------------------------------------------------- /marketing-api/model/campaign/doc.go: -------------------------------------------------------------------------------- 1 | // Package campaign 广告计划相关API models 2 | package campaign 3 | -------------------------------------------------------------------------------- /marketing-api/model/creative/doc.go: -------------------------------------------------------------------------------- 1 | // Package creative 广告创意模块API models 2 | package creative 3 | -------------------------------------------------------------------------------- /marketing-api/model/enterprise/doc.go: -------------------------------------------------------------------------------- 1 | // Package enterprise 企业号相关 API 2 | package enterprise 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/promotion/doc.go: -------------------------------------------------------------------------------- 1 | // Package promotion 广告管理模块 2 | package promotion 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/campaign/doc.go: -------------------------------------------------------------------------------- 1 | // Package campaign 广告组管理 2 | package campaign 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/creative/doc.go: -------------------------------------------------------------------------------- 1 | // Package creative 广告创意 2 | package creative 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/finance/doc.go: -------------------------------------------------------------------------------- 1 | // Package finance 资金管理相关API 2 | package finance 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/material/doc.go: -------------------------------------------------------------------------------- 1 | // Package material 广告素材管理 2 | package material 3 | -------------------------------------------------------------------------------- /marketing-api/model/sharedwallet/doc.go: -------------------------------------------------------------------------------- 1 | // Package sharedwallet 资金共享 2 | package sharedwallet 3 | -------------------------------------------------------------------------------- /marketing-api/model/subscribe/doc.go: -------------------------------------------------------------------------------- 1 | // Package subscribe RDS订阅adv_id增删查 2 | package subscribe 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/adpreview/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package v3 广告升级版预览相关API models 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/clue/doc.go: -------------------------------------------------------------------------------- 1 | // Package clue 线索及建站工具API 相关models 2 | package clue 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/diagnosis/doc.go: -------------------------------------------------------------------------------- 1 | // Package diagnosis 获取计划诊断信息 2 | package diagnosis 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/log/doc.go: -------------------------------------------------------------------------------- 1 | // Package log 工具-查询工具-日志查询API models 2 | package log 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/microgame/doc.go: -------------------------------------------------------------------------------- 1 | // package microgame 字节小游戏 2 | package microgame 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/site/doc.go: -------------------------------------------------------------------------------- 1 | // Package site 橙子建站落地页管理 API models 2 | package site 3 | -------------------------------------------------------------------------------- /marketing-api/util/query/doc.go: -------------------------------------------------------------------------------- 1 | // Package query encode struct to url.Values 2 | package query 3 | -------------------------------------------------------------------------------- /marketing-api/api/clue/smartphone/doc.go: -------------------------------------------------------------------------------- 1 | // Package smartphone 智能电话组件 API 2 | package smartphone 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/advertiser/doc.go: -------------------------------------------------------------------------------- 1 | // Package advertiser 账户信息获取 2 | package advertiser 3 | -------------------------------------------------------------------------------- /marketing-api/api/report/asynctask/doc.go: -------------------------------------------------------------------------------- 1 | // Package asynctask 异步数据报表相关API 2 | package asynctask 3 | -------------------------------------------------------------------------------- /marketing-api/api/report/liveroom/doc.go: -------------------------------------------------------------------------------- 1 | // Package liveroom 电商直播间数据报表相关API 2 | package liveroom 3 | -------------------------------------------------------------------------------- /marketing-api/api/star/star-ad-unite-task/doc.go: -------------------------------------------------------------------------------- 1 | // Package task 获取星广联投(星图版)任务 2 | package task 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/nativeanchor/doc.go: -------------------------------------------------------------------------------- 1 | // Package nativeanchor 原生锚点 2 | package nativeanchor 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/thirdsite/doc.go: -------------------------------------------------------------------------------- 1 | // Package thirdsite 第三方落地页管理API 2 | package thirdsite 3 | -------------------------------------------------------------------------------- /marketing-api/model/advertiser/doc.go: -------------------------------------------------------------------------------- 1 | // Package advertiser 账号服务相关API models 2 | package advertiser 3 | -------------------------------------------------------------------------------- /marketing-api/model/clue/coupon/doc.go: -------------------------------------------------------------------------------- 1 | // Package coupon 线索通卡券组件管理 API models 2 | package coupon 3 | -------------------------------------------------------------------------------- /marketing-api/model/conversion/doc.go: -------------------------------------------------------------------------------- 1 | // Package conversion 新版转换回传API models 2 | package conversion 3 | -------------------------------------------------------------------------------- /marketing-api/model/majordomo/doc.go: -------------------------------------------------------------------------------- 1 | // Package majordomo 管家账号相关API models 2 | package majordomo 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/advertiser/doc.go: -------------------------------------------------------------------------------- 1 | // Package advertiser 账户信息获取 2 | package advertiser 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/aweme/doc.go: -------------------------------------------------------------------------------- 1 | // Package aweme 千川授权抖音号相关API models 2 | package aweme 3 | -------------------------------------------------------------------------------- /marketing-api/model/star/star-ad-unite-task/doc.go: -------------------------------------------------------------------------------- 1 | // Package task 获取星广联投(星图版)任务 2 | package task 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/nativeanchor/doc.go: -------------------------------------------------------------------------------- 1 | // Package nativeanchor 原生锚点 2 | package nativeanchor 3 | -------------------------------------------------------------------------------- /marketing-api/api/audiencepackage/doc.go: -------------------------------------------------------------------------------- 1 | // Package audiencepackage 定向包管理 2 | package audiencepackage 3 | -------------------------------------------------------------------------------- /marketing-api/api/eventmanager/doc.go: -------------------------------------------------------------------------------- 1 | // Package eventmanager 资产 - 事件管理 相关API 2 | package eventmanager 3 | -------------------------------------------------------------------------------- /marketing-api/api/local/customaudience/doc.go: -------------------------------------------------------------------------------- 1 | // Package customaudience 人群包相关 2 | package customaudience 3 | -------------------------------------------------------------------------------- /marketing-api/api/privativeword/doc.go: -------------------------------------------------------------------------------- 1 | // Package privativeword 否定词管理相关API 2 | package privativeword 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/product/analyse/doc.go: -------------------------------------------------------------------------------- 1 | // Package analyse 商品竞争分析相关API 2 | package analyse 3 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/uni_promotion/doc.go: -------------------------------------------------------------------------------- 1 | // Package unipromotion 全域推广 2 | package unipromotion 3 | -------------------------------------------------------------------------------- /marketing-api/api/report/asynctask/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package asynctask 升级版异步数据报表相关API Models 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/creativeword/doc.go: -------------------------------------------------------------------------------- 1 | // Package creativeword 动态创意词包管理 2 | package creativeword 3 | -------------------------------------------------------------------------------- /marketing-api/model/audiencepackage/doc.go: -------------------------------------------------------------------------------- 1 | // Package audiencepackage 定向包管理 2 | package audiencepackage 3 | -------------------------------------------------------------------------------- /marketing-api/model/dmp/datasource/doc.go: -------------------------------------------------------------------------------- 1 | // Package datasource 数据源相关API models 2 | package datasource 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/product/analyse/doc.go: -------------------------------------------------------------------------------- 1 | // Package analyse 商品竞争分析相关API 2 | package analyse 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/product/doc.go: -------------------------------------------------------------------------------- 1 | // Package product 千川商品相关API models 2 | package product 3 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/uni_promotion/doc.go: -------------------------------------------------------------------------------- 1 | // Package unipromotion 全域推广 2 | package unipromotion 3 | -------------------------------------------------------------------------------- /marketing-api/model/report/asynctask/v3/doc.go: -------------------------------------------------------------------------------- 1 | // Package asynctask 升级版异步数据报表相关API Models 2 | package v3 3 | -------------------------------------------------------------------------------- /marketing-api/model/report/audience/doc.go: -------------------------------------------------------------------------------- 1 | // Package audience 受众分析数据报表 API models 2 | package audience 3 | -------------------------------------------------------------------------------- /marketing-api/model/report/liveroom/doc.go: -------------------------------------------------------------------------------- 1 | // Package liveroom 直播分析数据报表 API models 2 | package liveroom 3 | -------------------------------------------------------------------------------- /marketing-api/model/servemarket/doc.go: -------------------------------------------------------------------------------- 1 | // Package servemarket 应用市场 相关 API Models 2 | package servemarket 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/adconvert/doc.go: -------------------------------------------------------------------------------- 1 | // Package adconvert 转化目标管理 API Models 2 | package adconvert 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/adpreview/doc.go: -------------------------------------------------------------------------------- 1 | // Package adpreview 广告预览相关API models 2 | package adpreview 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/creativeword/doc.go: -------------------------------------------------------------------------------- 1 | // Package creativeword 动态创意词包管理 2 | package creativeword 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/taskraise/doc.go: -------------------------------------------------------------------------------- 1 | // Package taskraise 账户优选起量 API models 2 | package taskraise 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/thirdsite/doc.go: -------------------------------------------------------------------------------- 1 | // Package thirdsite 第三方落地页管理API models 2 | package thirdsite 3 | -------------------------------------------------------------------------------- /marketing-api/model/v3/promotion/doc.go: -------------------------------------------------------------------------------- 1 | // Package promotion 广告管理模块相关API models 2 | package promotion 3 | -------------------------------------------------------------------------------- /marketing-api/api/businessplatform/doc.go: -------------------------------------------------------------------------------- 1 | // Package businessplatform 纵横组织相关A PI 2 | package businessplatform 3 | -------------------------------------------------------------------------------- /marketing-api/api/customercenter/doc.go: -------------------------------------------------------------------------------- 1 | // Package customercenter 管家账号相关API models 2 | package customercenter 3 | -------------------------------------------------------------------------------- /marketing-api/api/dmp/customaudience/doc.go: -------------------------------------------------------------------------------- 1 | // Package customaudience 人群包相关API 2 | package customaudience 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/appmanagement/doc.go: -------------------------------------------------------------------------------- 1 | // Package appmanagement 应用管理相关API 2 | package appmanagement 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/interestaction/doc.go: -------------------------------------------------------------------------------- 1 | // Package interestaction 行为兴趣关键词管理 2 | package interestaction 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/landinggroup/doc.go: -------------------------------------------------------------------------------- 1 | // Package landinggroup 程序化落地页管理 API 2 | package landinggroup 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/rejectmaterial/doc.go: -------------------------------------------------------------------------------- 1 | // Package rejectmaterial 修复素材工具API 2 | package rejectmaterial 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/sitetemplate/doc.go: -------------------------------------------------------------------------------- 1 | // Package sitetemplate 橙子建站模版管理 API 2 | package sitetemplate 3 | -------------------------------------------------------------------------------- /marketing-api/model/clue/smartphone/doc.go: -------------------------------------------------------------------------------- 1 | // Package smartphone 智能电话组件 API models 2 | package smartphone 3 | -------------------------------------------------------------------------------- /marketing-api/model/local/customaudience/doc.go: -------------------------------------------------------------------------------- 1 | // Package customaudience 人群包相关 2 | package customaudience 3 | -------------------------------------------------------------------------------- /marketing-api/model/privativeword/doc.go: -------------------------------------------------------------------------------- 1 | // Package privativeword 包含否定词相关API models 2 | package privativeword 3 | -------------------------------------------------------------------------------- /marketing-api/model/report/asynctask/doc.go: -------------------------------------------------------------------------------- 1 | // Package asynctask 异步数据报表相关API Models 2 | package asynctask 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/appmanagement/doc.go: -------------------------------------------------------------------------------- 1 | // Package appmanagement 应用管理相关API 2 | package appmanagement 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/hotmaterialderive/doc.go: -------------------------------------------------------------------------------- 1 | // Package hotmaterialderive 爆款裂变 2 | package hotmaterialderive 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/keywordsbidratio/doc.go: -------------------------------------------------------------------------------- 1 | // Package keywordsbidratio 账户优词提量 2 | package keywordsbidratio 3 | -------------------------------------------------------------------------------- /marketing-api/model/businessplatform/doc.go: -------------------------------------------------------------------------------- 1 | // Package businessplatform 纵横组织相关 API 2 | package businessplatform 3 | -------------------------------------------------------------------------------- /marketing-api/model/dmp/customaudience/doc.go: -------------------------------------------------------------------------------- 1 | // Package customaudience 人群包相关API models 2 | package customaudience 3 | -------------------------------------------------------------------------------- /marketing-api/model/eventmanager/doc.go: -------------------------------------------------------------------------------- 1 | // Package eventmanager 资产 - 事件管理 相关API models 2 | package eventmanager 3 | -------------------------------------------------------------------------------- /marketing-api/model/report/v3/stat.go: -------------------------------------------------------------------------------- 1 | package v3 2 | 3 | type Stat struct { 4 | Dimensions 5 | Metrics 6 | } 7 | -------------------------------------------------------------------------------- /marketing-api/model/tools/hotmaterialderive/doc.go: -------------------------------------------------------------------------------- 1 | // Package hotmaterialderive 爆款裂变 2 | package hotmaterialderive 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/interestaction/doc.go: -------------------------------------------------------------------------------- 1 | // Package interestaction 行为兴趣关键词管理 2 | package interestaction 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/keywordsbidratio/doc.go: -------------------------------------------------------------------------------- 1 | // Package keywordsbidratio 账户优词提量 2 | package keywordsbidratio 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/landinggroup/doc.go: -------------------------------------------------------------------------------- 1 | // Package landinggroup 程序化落地页管理 API models 2 | package landinggroup 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/rejectmaterial/doc.go: -------------------------------------------------------------------------------- 1 | // Package rejectmaterial 修复素材工具API 2 | package rejectmaterial 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/sitetemplate/doc.go: -------------------------------------------------------------------------------- 1 | // Package sitetemplate 橙子建站模版管理 API models 2 | package sitetemplate 3 | -------------------------------------------------------------------------------- /marketing-api/api/assets/creativecomponent/doc.go: -------------------------------------------------------------------------------- 1 | // Package creativecomponent 创意组件相关API 2 | package creativecomponent 3 | -------------------------------------------------------------------------------- /marketing-api/model/customercenter/doc.go: -------------------------------------------------------------------------------- 1 | // Package customercenter 管家账号(工作台)相关API models 2 | package customercenter 3 | -------------------------------------------------------------------------------- /marketing-api/api/tools/quickappmanagement/doc.go: -------------------------------------------------------------------------------- 1 | // Package quickappmanagement 快应用管理 API 2 | package quickappmanagement 3 | -------------------------------------------------------------------------------- /marketing-api/model/tools/quickappmanagement/doc.go: -------------------------------------------------------------------------------- 1 | // Package quickappmanagement 快应用管理相关 API 2 | package quickappmanagement 3 | -------------------------------------------------------------------------------- /marketing-api/model/assets/creativecomponent/doc.go: -------------------------------------------------------------------------------- 1 | // Package creativecomponent 创意组件相关API models 2 | package creativecomponent 3 | -------------------------------------------------------------------------------- /marketing-api/enum/yesno.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | type YesNo string 4 | 5 | const ( 6 | Yes YesNo = "YES" 7 | No YesNo = "NO" 8 | ) 9 | -------------------------------------------------------------------------------- /marketing-api/model/float_range.go: -------------------------------------------------------------------------------- 1 | package model 2 | 3 | // FloatRange 通用浮点数字范围 4 | type FloatRange struct { 5 | Min float64 6 | Max float64 7 | } 8 | -------------------------------------------------------------------------------- /marketing-api/core/ratelimiter.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "time" 5 | ) 6 | 7 | type RateLimiter interface { 8 | Take() time.Duration 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/deep_bid_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // DeepBidType 深度出价方式,允许值:MIN 4 | type DeepBidType string 5 | 6 | const ( 7 | DeepBidType_MIN DeepBidType = "MIN" 8 | ) 9 | -------------------------------------------------------------------------------- /marketing-api/model/eventmanager/auth/const.go: -------------------------------------------------------------------------------- 1 | package auth 2 | 3 | const ( 4 | // RSA_BITS 1024 bits 5 | RSA_BITS = 1024 6 | // RSA_SIGN_SRC RSA 签名数据 7 | RSA_SIGN_SRC = "BYTEDANCE" 8 | ) 9 | -------------------------------------------------------------------------------- /marketing-api/model/time_range.go: -------------------------------------------------------------------------------- 1 | package model 2 | 3 | // DateRange 日期范围 4 | type DateRange struct { 5 | StartTime string `json:"start_time,omitempty"` 6 | EndTime string `json:"end_time,omitempty"` 7 | } 8 | -------------------------------------------------------------------------------- /marketing-api/model/conversion/response.go: -------------------------------------------------------------------------------- 1 | package conversion 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/model" 4 | 5 | // Response 转化回传API返回数据 6 | type Response struct { 7 | model.BaseResponse 8 | } 9 | -------------------------------------------------------------------------------- /marketing-api/enum/order_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // OrderType 排序方式 4 | type OrderType string 5 | 6 | const ( 7 | // DESC 反向排序 8 | DESC OrderType = "DESC" 9 | // ASC 正向排序 10 | ASC OrderType = "ASC" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/company_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CompanyType 主体关系 4 | type CompanyType string 5 | 6 | const ( 7 | CompanyType_BP_OTHER CompanyType = "BP_OTHER" 8 | CompanyType_BP_OWN CompanyType = "BP_OWN" 9 | ) 10 | -------------------------------------------------------------------------------- /marketing-api/model/creative/interactive_material.go: -------------------------------------------------------------------------------- 1 | package creative 2 | 3 | // InteractiveMaterial 直出互动素材信息 4 | type InteractiveMaterial struct { 5 | // PlayableID 直出互动素材id 6 | PlayableID uint64 `json:"playable_id,omitempty"` 7 | } 8 | -------------------------------------------------------------------------------- /marketing-api/model/spi/challenge_response.go: -------------------------------------------------------------------------------- 1 | package spi 2 | 3 | // ChallengeResponse . 4 | type ChallengeResponse struct { 5 | BaseResp BaseResponse `json:"BaseResp"` 6 | // 回传challenge数据 7 | Challenge int64 `json:"challenge"` 8 | } 9 | -------------------------------------------------------------------------------- /marketing-api/model/creative/error.go: -------------------------------------------------------------------------------- 1 | package creative 2 | 3 | // Error 错误信息 4 | type Error struct { 5 | // Code 返回码 6 | Code int `json:"code,omitempty"` 7 | // Message 返回信息 8 | Message string `json:"message,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/model/dpa/behaviour.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | // Behaviour 行为 4 | type Behaviour struct { 5 | // CodeID 行为id 6 | CodeID uint64 `json:"code_id,omitempty"` 7 | // Name 行为名称 8 | Name string `json:"name,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/aweme/interest_keyword.go: -------------------------------------------------------------------------------- 1 | package aweme 2 | 3 | type InterestKeyword struct { 4 | // ID 兴趣ID,详见【附录-随心推兴趣标签】 5 | ID uint64 `json:"id,omitempty"` 6 | // Name 兴趣名称 7 | Name string `json:"name,omitempty"` 8 | } 9 | -------------------------------------------------------------------------------- /marketing-api/enum/attachment_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AttachmentType 附件类型 4 | type AttachmentType string 5 | 6 | const ( 7 | // DELIVERY_ATTACHMENT 投放资质附件 8 | DELIVERY_ATTACHMENT AttachmentType = "DELIVERY_ATTACHMENT" 9 | ) 10 | -------------------------------------------------------------------------------- /marketing-api/enum/credential.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // Credential 密钥对label,枚举值:“primary”或“backup” 4 | type Credential string 5 | 6 | const ( 7 | Credential_PRIMARY Credential = "primary" 8 | Credential_BACKUP Credential = "backup" 9 | ) 10 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/carousel/audio.go: -------------------------------------------------------------------------------- 1 | package carousel 2 | 3 | // Audio 音频信息 4 | type Audio struct { 5 | // VideoID 音频id 6 | VideoID string `json:"video_id,omitempty"` 7 | // URL 音频URL 8 | URL string `json:"url,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/model/tools/abtest/object.go: -------------------------------------------------------------------------------- 1 | package abtest 2 | 3 | // AbTestObject 实验对象 4 | type AbTestObject struct { 5 | // ObjectID 实验对象ID,当test_type为CAMPAIGN时,传入广告组ID,当test_type为AD时,传入广告计划ID。 6 | ObjectID uint64 `json:"object_id,omitempty"` 7 | } 8 | -------------------------------------------------------------------------------- /marketing-api/util/json.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | // JSONMarshal encode json without html escape 8 | func JSONMarshal(req interface{}) []byte { 9 | bs, _ := json.Marshal(req) 10 | return bs 11 | } 12 | -------------------------------------------------------------------------------- /marketing-api/api/conversion/doc.go: -------------------------------------------------------------------------------- 1 | // Package conversion 数据回传管理相关API 2 | // [事件管理操作手册](https://event-manager.oceanengine.com/docs/8650/event_manager_docs/) 3 | // [手机号实时回传](https://bytedance.feishu.cn/docs/doccn1FK7atw7SNldIRW6Ju3SUb#) 4 | package conversion 5 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/carousel_source.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // CarouselSource 图文素材来源 4 | type CarouselSource string 5 | 6 | const ( 7 | // CarouselSource_JICHAUNG 即创 8 | CarouselSource_JICHAUNG CarouselSource = "JICHAUNG" 9 | ) 10 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/shop/shop.go: -------------------------------------------------------------------------------- 1 | package shop 2 | 3 | // Shop shop账号 4 | type Shop struct { 5 | // ShopID 店铺id 6 | ShopID uint64 `json:"shop_id,omitempty"` 7 | // ShopName 店铺名称 8 | ShopName string `json:"shop_name,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/bid_speed.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // BidSpeed 投放速度 4 | type BidSpeed string 5 | 6 | const ( 7 | // BidSpeed_BALANCE 匀速 8 | BidSpeed_BALANCE BidSpeed = "BALANCE" 9 | // BidSpeed_FAST 加速 10 | BidSpeed_FAST BidSpeed = "FAST" 11 | ) 12 | -------------------------------------------------------------------------------- /.github/workflows/goreportcard.yml: -------------------------------------------------------------------------------- 1 | name: GoReportCard 2 | on: [push, pull_request] 3 | jobs: 4 | build: 5 | name: GoReportCard 6 | runs-on: ubuntu-latest 7 | steps: 8 | - name: GoReportCard 9 | uses: creekorful/goreportcard-action@v1.0 10 | -------------------------------------------------------------------------------- /marketing-api/model/majordomo/advertiser.go: -------------------------------------------------------------------------------- 1 | package majordomo 2 | 3 | // Advertiser 广告主 4 | type Advertiser struct { 5 | // ID 广告主id 6 | ID uint64 `json:"advertiser_id,omitempty"` 7 | // Name 广告主名称 8 | Name string `json:"advertiser_name,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/model/local/poi/multi_poi.go: -------------------------------------------------------------------------------- 1 | package poi 2 | 3 | // MultiPoi 多门店信息 4 | type MultiPoi struct { 5 | // MultiPoiID 多门店id 6 | MultiPoiID uint64 `json:"multi_poi_id,omitempty"` 7 | // PoiIDs 门店id列表 8 | PoiIDs []uint64 `json:"poi_ids,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/enterprise/item_type.go: -------------------------------------------------------------------------------- 1 | package enterprise 2 | 3 | // ItemType 视频类型 4 | type ItemType string 5 | 6 | const ( 7 | // ITEM_AD 广告视频 8 | ITEM_AD ItemType = "ITEM_AD" 9 | // ITEM_CONTENT 非广告视频(抖音视频) 10 | ITEM_CONTENT ItemType = "ITEM_CONTENT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/rta_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // RtaStatus 目标状态 4 | type RtaStatus string 5 | 6 | const ( 7 | // RtaStatus_ENABLE 启用 8 | RtaStatus_ENABLE RtaStatus = "ENABLE" 9 | // RtaStatus_DISABLE 停用 10 | RtaStatus_DISABLE RtaStatus = "DISABLE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/transaction_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // TransactionType 流水类型 4 | type TransactionType string 5 | 6 | const ( 7 | // RECHARGE 充值 8 | RECHARGE TransactionType = "RECHARGE" 9 | // TRANSFER 转账 10 | TRANSFER TransactionType = "TRANSFER" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/abtest_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AbTestType 实验类型,,。 4 | type AbTestType string 5 | 6 | const ( 7 | // AbTestType_CAMPAIGN 广告组 8 | AbTestType_CAMPAIGN AbTestType = "CAMPAIGN" 9 | // AbTestType_AD 广告计划 10 | AbTestType_AD AbTestType = "AD" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/mini_program_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MiniProgramType 小程序类型 4 | type MiniProgramType string 5 | 6 | const ( 7 | // BYTE_GAME 小游戏 8 | BYTE_GAME MiniProgramType = "BYTE_GAME" 9 | // BYTE_APP 小程序 10 | BYTE_APP MiniProgramType = "BYTE_APP" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/opt_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // OptStatus 目标操作 4 | type OptStatus string 5 | 6 | const ( 7 | // OptStatus_ENABLE 启用项目 8 | OptStatus_ENABLE OptStatus = "ENABLE" 9 | // OptStatus_DISABLE暂停项目 10 | OptStatus_DISABLE OptStatus = "DISABLE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/stamp_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // StampType 是否电子签章 4 | type StampType string 5 | 6 | const ( 7 | // StampType_ONLINE 电子签章 8 | StampType_ONLINE StampType = "ONLINE" 9 | // StampType_DEFAULT 线下签章 10 | StampType_DEFAULT StampType = "DEFAULT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/clue/smartphone/time_range.go: -------------------------------------------------------------------------------- 1 | package smartphone 2 | 3 | // TimeRange 时间范围 4 | type TimeRange struct { 5 | // StartTime 开始时间 6 | StartTime string `json:"start_time,omitempty"` 7 | // EndTIme 结束时间 8 | EndTime string `json:"end_time,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/delivery_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DeliveryMode 投放模式,允许值:MANUAL手动投放 (默认值),PROCEDURAL自动投放 4 | type DeliveryMode string 5 | 6 | const ( 7 | DeliveryMode_MANUAL DeliveryMode = "MANUAL" 8 | DeliveryMode_PROCEDURAL DeliveryMode = "PROCEDURAL" 9 | ) 10 | -------------------------------------------------------------------------------- /marketing-api/enum/interest_action_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // InterestActionType 行为兴趣类型 4 | type InterestActionType string 5 | 6 | const ( 7 | // ACTION 行为 8 | ACTION InterestActionType = "ACTION" 9 | // INTEREST 兴趣 10 | INTEREST InterestActionType = "INTEREST" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/pay_status.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // PayStatus 支付属性 4 | type PayStatus string 5 | 6 | const ( 7 | // PayStatus_PAID 已支付 8 | PayStatus_PAID PayStatus = "PAID" 9 | // PayStatus_UNPAID 未支付 10 | PayStatus_UNPAID PayStatus = "UNPAID" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/pay_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // PayType 订单类型 4 | type PayType string 5 | 6 | const ( 7 | // PayType_DIRECT 直接转换订单 8 | PayType_DIRECT PayType = "DIRECT" 9 | // PayType_INDIRECT 间接转化订单 10 | PayType_INDIRECT PayType = "INDIRECT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/dpa_adtype.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DpaAdType DPA广告类型 4 | type DpaAdType string 5 | 6 | const ( 7 | // DpaAdType_DPA_LINK 落地页 8 | DpaAdType_DPA_LINK DpaAdType = "DPA_LINK" 9 | // DpaAdType_DPA_APP 应用下载 10 | DpaAdType_DPA_APP DpaAdType = "DPA_APP" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/enterprise/comment_level.go: -------------------------------------------------------------------------------- 1 | package enterprise 2 | 3 | // CommentLevel 评论层级 4 | type CommentLevel string 5 | 6 | const ( 7 | // LEVEL_ONE 一级评论 8 | LEVEL_ONE CommentLevel = "LEVEL_ONE" 9 | // LEVEL_TWO 二级评论,即回复 10 | LEVEL_TWO CommentLevel = "LEVEL_TWO" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/bid_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // BidType 出价类型 4 | type BidType string 5 | 6 | const ( 7 | // BidType_AUTO_BID 自动出价 8 | BidType_AUTO_BID BidType = "AUTO_BID" 9 | // BidType_MANUAL_BID 手动出价 10 | BidType_MANUAL_BID BidType = "MANUAL_BID" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/qcpx_model.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // QcpxMode 是否开启智能优惠券 4 | type QcpxMode string 5 | 6 | const ( 7 | // QCPX_MODE_ON 启用 8 | QCPX_MODE_ON QcpxMode = "QCPX_MODE_ON" 9 | // QCPX_MODE_OFF 不启用 10 | QCPX_MODE_OFF QcpxMode = "QCPX_MODE_OFF" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/upload_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // UploadType 上传方式 4 | type UploadType string 5 | 6 | const ( 7 | // UPLOAD_BY_FILE 上传文件 8 | UPLOAD_BY_FILE UploadType = "UPLOAD_BY_FILE" 9 | // UPLOAD_BY_URL 通过链接上传 10 | UPLOAD_BY_URL UploadType = "UPLOAD_BY_URL" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/lab_ad_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AdLabType 托管计划类型 4 | type AdLabType string 5 | 6 | const ( 7 | // AdLabType_NOT_LAB_AD 非托管计划 8 | AdLabType_NOT_LAB_AD AdLabType = "NOT_LAB_AD" 9 | // AdLabType_LAB_AD 托管计划 10 | AdLabType_LAB_AD AdLabType = "LAB_AD" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/enterprise/enterprise.go: -------------------------------------------------------------------------------- 1 | package enterprise 2 | 3 | // Enterprise 企业号信息 4 | type Enterprise struct { 5 | // EDouyinID 企业号ID 6 | EDouyinID string `json:"e_douyin_id,omitempty"` 7 | // EDouyinName 企业号名称 8 | EDouyinName string `json:"e_douyin_name,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/aweme/coupon.go: -------------------------------------------------------------------------------- 1 | package aweme 2 | 3 | // Coupon 优惠券信息 4 | type Coupon struct { 5 | // CouponAmount 券的总金额 6 | CouponAmount float64 `json:"coupon_amount,omitempty"` 7 | // CouponType 券类型。1表示满减券;4表示满赠券 8 | CouponType int `json:"coupon_type,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/local/clue_flow_type.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // ClueFlowType 流量类型 4 | type ClueFlowType string 5 | 6 | const ( 7 | // ClueFlowType_NATURE 自然流量 8 | ClueFlowType_NATURE ClueFlowType = "NATURE" 9 | // ClueFlowType_AD 广告流量 10 | ClueFlowType_AD ClueFlowType = "AD" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/delivery_goal.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // DeliveryGoal 投放内容 4 | type DeliveryGoal string 5 | 6 | const ( 7 | // DeliveryGoal_POI 门店 8 | DeliveryGoal_POI DeliveryGoal = "POI" 9 | // DeliveryGoal_PRODUCT 商品 10 | DeliveryGoal_PRODUCT DeliveryGoal = "PRODUCT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/word_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // WordType 词类型 4 | type WordType string 5 | 6 | const ( 7 | // WordType_SEARCH_WORD 搜索词 8 | WordType_SEARCH_WORD WordType = "SEARCH_WORD" 9 | // WordType_KEY_WORD 关键词 10 | WordType_KEY_WORD WordType = "KEY_WORD" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/track_os.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // TrackOS 转化追踪客户端系统 4 | type TrackOS = int 5 | 6 | const ( 7 | // Track_ANDROID Android 8 | Track_ANDROID TrackOS = 0 9 | // Track_IOS iOS 10 | Track_IOS TrackOS = 1 11 | // Track_UNKNOWN 未知设备系统 12 | Track_UNKNOWN TrackOS = 3 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/report/stat.go: -------------------------------------------------------------------------------- 1 | package report 2 | 3 | // Stat 统计数据 4 | type Stat struct { 5 | Dimension 6 | Metrics 7 | // Fields 指标数据 8 | Fields *Metrics `json:"metrics,omitempty"` 9 | // AnalysisType 素材建议 10 | AnalysisType []string `json:"analysis_type,omitempty"` 11 | } 12 | -------------------------------------------------------------------------------- /marketing-api/enum/audit_platform.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AuditPlatform 审核来源类型 4 | type AuditPlatform string 5 | 6 | const ( 7 | // AuditPlatform_AD 广告审核 8 | AuditPlatform_AD AuditPlatform = "AD" 9 | // AuditPlatform_CONTENT 内容审核 10 | AuditPlatform_CONTENT AuditPlatform = "CONTENT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/send_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // SendType 数据发送方式 4 | type SendType string 5 | 6 | const ( 7 | // SendType_SERVER_SEND 服务器端上传 8 | SendType_SERVER_SEND SendType = "SERVER_SEND" 9 | // SendType_CLIENT_SEND 客户端上传 10 | SendType_CLIENT_SEND SendType = "CLIENT_SEND" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/clue/coupon/limit_setting.go: -------------------------------------------------------------------------------- 1 | package coupon 2 | 3 | // LimitSetting 限制设置 4 | type LimitSetting struct { 5 | // DayLimit 每日投放的总库存,不填或0表示不限制 6 | DayLimit *int `json:"day_limit,omitempty"` 7 | // TotalLimit 总投放库存限制,不填或0表示不限制 8 | TotalLimit *int `json:"total_limit,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/account_soruce.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AccountSource 账户类型 4 | type AccountSource string 5 | 6 | const ( 7 | // NORMAL_ADVERTISER 普通广告主 8 | NORMAL_ADVERTISER AccountSource = "NORMAL_ADVERTISER" 9 | // LUBAN_ACCOUNT 鲁班广告主 10 | LUBAN_ACCOUNT AccountSource = "LUBAN_ACCOUNT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/budget_mode.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // BudgetMode 预算类型 4 | type BudgetMode string 5 | 6 | const ( 7 | // BudgetMode_INFINITE 不限 8 | BudgetMode_INFINITE BudgetMode = "INFINITE" 9 | // BudgetMode_SPECIFIED 日预算 10 | BudgetMode_SPECIFIED BudgetMode = "SPECIFIED" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/task_raise_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // TaskRaiseMode 起量模式 4 | type TaskRaiseMode string 5 | 6 | const ( 7 | // TaskRaiseMode_CUSTOM 常规起量 8 | TaskRaiseMode_CUSTOM TaskRaiseMode = "CUSTOM" 9 | // TaskRaiseMode_STRONG 强劲起量 10 | TaskRaiseMode_STRONG TaskRaiseMode = "STRONG" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/transfer_direction.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // TransferDirection 转账方向,以目标账户视角确定 4 | type TransferDirection string 5 | 6 | const ( 7 | // TRANSFER_IN 转入 8 | TRANSFER_IN TransferDirection = "TRANSFER_IN" 9 | // TRANSFER_OUT 转出 10 | TRANSFER_OUT TransferDirection = "TRANSFER_OUT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/clue/coupon/gift.go: -------------------------------------------------------------------------------- 1 | package coupon 2 | 3 | // Gift 游戏礼包 4 | type Gift struct { 5 | // Count 礼品数量 6 | Count int `json:"count,omitempty"` 7 | // IconURL 礼品icon地址 8 | IconURL string `json:"icon_url,omitempty"` 9 | // Name 礼品名称,不超过12字 10 | Name string `json:"name,omitempty"` 11 | } 12 | -------------------------------------------------------------------------------- /marketing-api/model/spi/response.go: -------------------------------------------------------------------------------- 1 | package spi 2 | 3 | // BaseResponse 返回信息基类 4 | type BaseResponse struct { 5 | // StatusCode 执行状态码,200表示成功,4xx 业务异常不重试,5xx 系统异常重试 6 | StatusCode int `json:"StatusCode,omitempty"` 7 | // StatusMessage 执行结果 8 | StatusMessage string `json:"StatusMessage,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/model/tools/wechat/types.go: -------------------------------------------------------------------------------- 1 | package wechat 2 | 3 | // ListTimeRange 按创建时间查询的时间范围 4 | type ListTimeRange struct { 5 | // StartTime 创建起始时间,格式:%Y-%m-%d 6 | StartTime string `json:"start_time,omitempty"` 7 | // EndTime 创建结束时间,格式:%Y-%m-%d 8 | EndTime string `json:"end_time,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/aweme_user_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AwemeUserType 4 | type AwemeUserType string 5 | 6 | const ( 7 | // AwemeUserType_ENTERPRISE 企业机构号 8 | AwemeUserType_ENTERPRISE AwemeUserType = "ENTERPRISE" 9 | // AwemeUserType_SINGLE 个人号 10 | AwemeUserType_SINGLE AwemeUserType = "SINGLE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/carrier.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // Carrier 电信运营商 4 | type Carrier string 5 | 6 | const ( 7 | // Carrier_MOBILE 移动 8 | Carrier_MOBILE Carrier = "MOBILE" 9 | // Carrier_UNICOM 联通 10 | Carrier_UNICOM Carrier = "UNICOM" 11 | // Carrier_TELCOM 电信 12 | Carrier_TELCOM Carrier = "TELCOM" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/enterprise/time_dimension.go: -------------------------------------------------------------------------------- 1 | package enterprise 2 | 3 | // TimeDimension 是否需要分天数据 4 | type TimeDimension string 5 | 6 | const ( 7 | // TimeDimension_SUM 合计数据 8 | TimeDimension_SUM TimeDimension = "SUM" 9 | // TimeDimension_DAILY 分天数据 10 | TimeDimension_DAILY TimeDimension = "DAILY" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/industry_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // IndustryStatus 行业状态 4 | type IndustryStatus string 5 | 6 | const ( 7 | // IndystryStatus_NONVALID 禁投 8 | IndystryStatus_NONVALID IndustryStatus = "NONVALID" 9 | // IndustryStatus_VALID 生效 10 | IndustryStatus_VALID IndustryStatus = "VALID" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/bid_type.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // BidType 出价方式 4 | type BidType string 5 | 6 | const ( 7 | // BidType_ALL 不限 8 | BidType_ALL BidType = "ALL" 9 | // BidType_MANUAL 手动出价 10 | BidType_MANUAL BidType = "MANUAL" 11 | // BidType_SMART 智能出价 12 | BidType_SMART BidType = "SMART" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/bid_mode.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // BidMode 出价模式 4 | type BidMode string 5 | 6 | const ( 7 | // BidMode_PRICING_ACTION 按优化目标出价 8 | BidMode_PRICING_ACTION BidMode = "PRICING_ACTION" 9 | // BidMode_PRICING_PLAY 按播放量出价 10 | BidMode_PRICING_PLAY BidMode = "PRICING_PLAY" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/tools/appmanagement/types.go: -------------------------------------------------------------------------------- 1 | package appmanagement 2 | 3 | // TimeRange 时间范围 4 | type TimeRange struct { 5 | // StartTIme 创建起始时间,默认为空,格式:%Y-%m-%d 6 | StartTime string `json:"start_time,omitempty"` 7 | // EndTime 创建结束时间,默认为当天,格式:%Y-%m-%d 8 | EndTime string `json:"end_time,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/launch_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // LaunchType 调起方式 4 | type LaunchType string 5 | 6 | const ( 7 | // LaunchType_DIRECT_OPEN 直接调起 8 | LaunchType_DIRECT_OPEN LaunchType = "DIRECT_OPEN" 9 | // LaunchType_EXTERNAL_OPEN 落地页调起 10 | LaunchType_EXTERNAL_OPEN LaunchType = "EXTERNAL_OPEN" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/ad_type.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // AdType 广告类型 4 | type AdType string 5 | 6 | const ( 7 | // AdType_ALL 不限 8 | AdType_ALL AdType = "ALL" 9 | // AdType_GENERAL 通投广告 10 | AdType_GENERAL AdType = "GENERAL" 11 | // AdType_SEARCHING 搜索广告 12 | AdType_SEARCHING AdType = "SEARCHING" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/local/city_divide.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // CityDivide 城市划分类型 4 | type CityDivide string 5 | 6 | const ( 7 | // CityDivide_BY_LEVEL 按发展等级划分 8 | CityDivide_BY_LEVEL CityDivide = "BY_LEVEL" 9 | // CityDivide_BY_LOCATION 按地理划分(默认值) 10 | CityDivide_BY_LOCATION CityDivide = "BY_LOCATION" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/schedule_scene.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ScheduleScene 生效方式 4 | type ScheduleScene string 5 | 6 | const ( 7 | // ScheduleScene_NEXT_DAY 次日0点生效 8 | ScheduleScene_NEXT_DAY ScheduleScene = "NEXT_DAY" 9 | // ScheduleScene_REALTIME 立即生效 10 | ScheduleScene_REALTIME ScheduleScene = "REALTIME" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/image_mode.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // ImageMode 素材类型 4 | type ImageMode string 5 | 6 | const ( 7 | // IMAGE_MODE_VIDEO 横版视频 8 | IMAGE_MODE_VIDEO ImageMode = "IMAGE_MODE_VIDEO" 9 | // IMAGE_MODE_VIDEO_VERTICAL 竖版视频 10 | IMAGE_MODE_VIDEO_VERTICAL ImageMode = "IMAGE_MODE_VIDEO_VERTICAL" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/materials_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MaterialsType 素材类型,直播场景必填, 4 | type MaterialsType string 5 | 6 | const ( 7 | // LIVE_MATERIALS 直播素材 8 | LIVE_MATERIALS MaterialsType = "LIVE_MATERIALS" 9 | // PROMOTION_MATERIALS 广告素材 10 | PROMOTION_MATERIALS MaterialsType = "PROMOTION_MATERIALS" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/comment_permission.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CommentPermission 评论权限 4 | type CommentPermission string 5 | 6 | const ( 7 | // CommentPermission_READ 只读 8 | CommentPermission_READ CommentPermission = "READ" 9 | // CommentPermission_WRITE 可写 10 | CommentPermission_WRITE CommentPermission = "WRITE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/delivery_poi_model.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // DeliveryPoiMode 是否投放全部门店 4 | type DeliveryPoiMode string 5 | 6 | const ( 7 | // DeliveryPoiMode_ALL 投放全部门店 8 | DeliveryPoiMode_ALL DeliveryPoiMode = "ALL" 9 | // DeliveryPoiMode_PART 投放指定门店 10 | DeliveryPoiMode_PART DeliveryPoiMode = "PART" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/user_action_event.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // UserActionEvent 用户来源 4 | type UserActionEvent string 5 | 6 | const ( 7 | // UserActionEvent_ENTER 进入直播间 8 | UserActionEvent_ENTER UserActionEvent = "ENTER" 9 | // UserActionEvent_PAY 支付成功 10 | UserActionEvent_PAY UserActionEvent = "PAY" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/site_share_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // SiteShareType 站点来源 4 | type SiteShareType string 5 | 6 | const ( 7 | // SiteShareType_SHARE 共享站点 8 | SiteShareType_SHARE SiteShareType = "SHARE" 9 | // SiteShareType_MY_CREATIONS 账户创建站点 (默认) 10 | SiteShareType_MY_CREATIONS SiteShareType = "MY_CREATIONS" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/aweme/audit_record.go: -------------------------------------------------------------------------------- 1 | package aweme 2 | 3 | // AuditRecord 审核详细内容 4 | type AuditRecord struct { 5 | // DetailDescList 建议内容列表 6 | DetailDescList []string `json:"detail_desc_list,omitempty"` 7 | // StatusAttachDesp 订单状态附加描述 8 | StatusAttachDesp string `json:"status_attach_desp,omitempty"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/model/spi/challenge_request.go: -------------------------------------------------------------------------------- 1 | package spi 2 | 3 | // ChallengeRequest . 4 | type ChallengeRequest struct { 5 | // Challenge 随机数 6 | Challenge int64 `form:"challenge" json:"challenge" binding:"required"` 7 | // Event 固定值,传递verify_webhook 8 | Event string `form:"event" json:"event" binding:"required"` 9 | } 10 | -------------------------------------------------------------------------------- /marketing-api/enum/difference_invoice.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DifferenceInvoice 是否差额开 4 | type DifferenceInvoice string 5 | 6 | const ( 7 | // DifferenceInvoice_FULL 全额开票 8 | DifferenceInvoice_FULL DifferenceInvoice = "FULL" 9 | // DifferenceInvoice_DIFF 差额开票 10 | DifferenceInvoice_DIFF DifferenceInvoice = "DIFF" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/multi_delivery_medium.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MultiDeliveryMedium 多投放载体,仅当landing_type = LINK 销售线索推广目的下会返回 4 | type MultiDeliveryMedium string 5 | 6 | const ( 7 | // MultiDeliveryMedium_ORANGE_AND_AWEME 优选投放橙子落地页和抖音主页 8 | MultiDeliveryMedium_ORANGE_AND_AWEME MultiDeliveryMedium = "ORANGE_AND_AWEME" 9 | ) 10 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/brand/brand.go: -------------------------------------------------------------------------------- 1 | package brand 2 | 3 | // Brand 授权品牌 4 | type Brand struct { 5 | // BrandID 品牌ID 6 | BrandID uint64 `json:"brand_id,omitempty"` 7 | // BrandName 品牌名称 8 | BrandName string `json:"brand_name,omitempty"` 9 | // BrandLogo 品牌logo 10 | BrandLogo string `json:"brand_logo,omitempty"` 11 | } 12 | -------------------------------------------------------------------------------- /marketing-api/enum/retargeting_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // RetargetingType 定向人群包类型 4 | type RetargetingType string 5 | 6 | const ( 7 | RETARGETING_INCLUDE RetargetingType = "RETARGETING_INCLUDE" 8 | RETARGETING_EXCLUDE RetargetingType = "RETARGETING_EXCLUDE" 9 | RETARGETING_NONE RetargetingType = "RETARGETING_NONE" 10 | ) 11 | -------------------------------------------------------------------------------- /marketing-api/enum/video_update_status_code.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // VideoUpdateStatusCode 更新状态 4 | type VideoUpdateStatusCode string 5 | 6 | const ( 7 | // VideoUpdateStatusCode_SUCCESS 成功 8 | VideoUpdateStatusCode_SUCCESS = "SUCCESS" 9 | // VideoUpdateStatusCode_FAILURE 失败 10 | VideoUpdateStatusCode_FAILURE = "FAILURE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/tools/site/fail_message.go: -------------------------------------------------------------------------------- 1 | package site 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/model" 4 | 5 | // FailMessage 错误信息 6 | type FailMessage struct { 7 | // Message 错误信息 8 | Message string `json:"message,omitempty"` 9 | // SiteID 更新失败的site_id 10 | SiteID model.Uint64 `json:"site_id,omitempty"` 11 | } 12 | -------------------------------------------------------------------------------- /marketing-api/enum/flow_package_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // FlowPackageStatus 流量包状态 4 | type FlowPackageStatus string 5 | 6 | const ( 7 | // FLOW_PACKAGE_ENABLE已启用 8 | FLOW_PACKAGE_ENABLE FlowPackageStatus = "FLOW_PACKAGE_ENABLE" 9 | // FLOW_PACKAGE_DISABLE 已废弃 10 | FLOW_PACKAGE_DISABLE FlowPackageStatus = "FLOW_PACKAGE_DISABLE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/adraise_opt_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AdRaiseOptType 一键起量操作类型 4 | type AdRaiseOptType string 5 | 6 | const ( 7 | // AdRaiseOptType_CLICK_RAISE 启动一键起量 8 | AdRaiseOptType_CLICK_RAISE AdRaiseOptType = "CLICK_RAISE" 9 | // AdRaiseOptType_STOP_RAISE 关停一键起量 10 | AdRaiseOptType_STOP_RAISE AdRaiseOptType = "STOP_RAISE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/download_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DownloadMode 优先从系统应用商店下载(下载模式) 4 | type DownloadMode string 5 | 6 | const ( 7 | // DownloadMode_APP_STORE_DELIVERY 优先商店下载 8 | DownloadMode_APP_STORE_DELIVERY DownloadMode = "APP_STORE_DELIVERY" 9 | // DownloadMode_DEFAULT 默认下载 10 | DownloadMode_DEFAULT DownloadMode = "DEFAULT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/wechat_asset_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // WechatAssetStatus 资产状态 4 | type WechatAssetStatus string 5 | 6 | const ( 7 | // WechatAssetStatus_UPGRADED 升级版 8 | WechatAssetStatus_UPGRADED WechatAssetStatus = "UPGRADED" 9 | // WechatAssetStatus_ORIGINAL 原版 10 | WechatAssetStatus_ORIGINAL WechatAssetStatus = "ORIGINAL" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/dpa/dict.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | // Dict 词包 4 | type Dict struct { 5 | // ID 词包id 6 | ID uint64 `json:"id,omitempty"` 7 | // PdaID 商品库id 8 | PdaID uint64 `json:"pda_id,omitempty"` 9 | // DefaultWord 默认词 10 | DefaultWord string `json:"default_word,omitempty"` 11 | // Name 词包名称 12 | Name string `json:"name,omitempty"` 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/anchor_share_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AnchorShareType 锚点共享关系 4 | type AnchorShareType string 5 | 6 | const ( 7 | // AnchorShareType_OWN_ANCHOR 自有锚点 8 | AnchorShareType_OWN_ANCHOR AnchorShareType = "OWN_ANCHOR" 9 | // AnchorShareType_SHARE_ANCHOR 共享锚点 10 | AnchorShareType_SHARE_ANCHOR AnchorShareType = "SHARE_ANCHOR" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/gender.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // Gender 性别 4 | type Gender string 5 | 6 | const ( 7 | // Gender_UNKNOWN 未知 8 | Gender_UNKNOWN Gender = "UNKNOWN" 9 | // Gender_FEMALE 女 10 | Gender_FEMALE Gender = "FEMALE" 11 | // Gender_MALE 男 12 | Gender_MALE Gender = "MALE" 13 | // Gender_NONE 不限 14 | Gender_NONE Gender = "NONE" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/track_match_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // TrackMatchType 归因方式 4 | type TrackMatchType = int 5 | 6 | const ( 7 | // Track_CLICK 点击归因 8 | Track_CLICK TrackMatchType = 0 9 | // Track_IMPRESSION 展现归因 10 | Track_IMPRESSION TrackMatchType = 1 11 | // Track_VALID_IMPRESSION 有效展现归因 12 | Track_VALID_IMPRESSION TrackMatchType = 2 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/campaign_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CampaignType 广告组类型 4 | type CampaignType string 5 | 6 | const ( 7 | // CampaignType_FEED 信息流 8 | CampaignType_FEED CampaignType = "FEED" 9 | // CampaignType_SEARCH 搜索广告 10 | CampaignType_SEARCH CampaignType = "SEARCH" 11 | // CampaignType_ALL 12 | CampaignType_ALL CampaignType = "ALL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/local/leads_page.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // LeadsPage 留资页面 4 | type LeadsPage string 5 | 6 | const ( 7 | // LeadsPage_POI POI页 8 | LeadsPage_POI LeadsPage = "POI" 9 | // LeadsPage_PRODUCT_DETAIL 商详页 10 | LeadsPage_PRODUCT_DETAIL LeadsPage = "PRODUCT_DETAIL" 11 | // LeadsPage_OTHER 其他 12 | LeadsPage_OTHER LeadsPage = "OTHER" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/stamp_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // StampStatus 盖章状态 4 | type StampStatus string 5 | 6 | const ( 7 | // StampStatus_NO 未盖章 8 | StampStatus_NO StampStatus = "NO" 9 | // StampStatus_STAMPING 审批中 10 | StampStatus_STAMPING StampStatus = "STAMPING" 11 | // StampStatus_STAMPED 已盖章 12 | StampStatus_STAMPED StampStatus = "STAMPED" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/comment_stick_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CommentStickType 操作类型 4 | type CommentStickType string 5 | 6 | const ( 7 | // CommentStickType_CANCEL_STICK 取消置顶 8 | CommentStickType_CANCEL_STICK CommentStickType = "CANCEL_STICK" 9 | // CommentStickType_STICK_ON_TOP 置顶 10 | CommentStickType_STICK_ON_TOP CommentStickType = "STICK_ON_TOP" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/feed_delivery_search.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // FeedDeliverySearch 搜索快投关键词功能 4 | type FeedDeliverySearch string 5 | 6 | const ( 7 | // FeedDeliverySearch_HAS_OPEN 启用 8 | FeedDeliverySearch_HAS_OPEN FeedDeliverySearch = "HAS_OPEN" 9 | // FeedDeliverySearch_DISABLED 未启用 10 | FeedDeliverySearch_DISABLED FeedDeliverySearch = "DISABLED" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/live_room_heat_mode.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // LiveroomHeatMode 直播间加热方式 4 | type LiveroomHeatMode string 5 | 6 | const ( 7 | // LiveroomHeatMode_BY_ROOM 直接加热直播间 8 | LiveroomHeatMode_BY_ROOM LiveroomHeatMode = "BY_ROOM" 9 | // LiveroomHeatMode_BY_VIDEO 选择视频加热直播间 10 | LiveroomHeatMode_BY_VIDEO LiveroomHeatMode = "BY_VIDEO" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/creative/dynamic_word.go: -------------------------------------------------------------------------------- 1 | package creative 2 | 3 | // DynamicWord 动态词包对象 4 | type DynamicWord struct { 5 | // WordID 动态词包ID 6 | WordID uint64 `json:"word_id,omitempty"` 7 | // DictName 创意词包名称 8 | DictName string `json:"dict_name,omitempty"` 9 | // DefaultWord 创意词包默认词 10 | DefaultWord string `json:"default_word,omitempty"` 11 | } 12 | -------------------------------------------------------------------------------- /marketing-api/enum/comment_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CommentType 评论内容类型 4 | type CommentType string 5 | 6 | const ( 7 | // IMAGE_COMMENT 图片评论 8 | IMAGE_COMMENT CommentType = "IMAGE_COMMENT" 9 | // IMAGE_TEXT_COMMENT 图文评论 10 | IMAGE_TEXT_COMMENT CommentType = "IMAGE_TEXT_COMMENT" 11 | // TEXT_COMMENT 文字评论 12 | TEXT_COMMENT CommentType = "TEXT_COMMENT" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/site_function_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // SiteFunctionType 建站类别 4 | type SiteFunctionType string 5 | 6 | const ( 7 | // SITE_FUNC_TYPE_NEW_MODULAR 智能建站 8 | SITE_FUNC_TYPE_NEW_MODULAR SiteFunctionType = "SITE_FUNC_TYPE_NEW_MODULAR" 9 | // SITE_FUNC_TYPE_NORMAL 普通建站 10 | SITE_FUNC_TYPE_NORMAL SiteFunctionType = "SITE_FUNC_TYPE_NORMAL" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/task_raise_budget_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // TaskRaiseBudgetMode 优选起量任务预算设置 4 | type TaskRaiseBudgetMode string 5 | 6 | const ( 7 | // TaskRaiseBudgetMode_LIMIT 指定预算 8 | TaskRaiseBudgetMode_LIMIT TaskRaiseBudgetMode = "LIMIT" 9 | // TaskRaiseBudgetMode_NO_LIMIT 不限预算 10 | TaskRaiseBudgetMode_NO_LIMIT TaskRaiseBudgetMode = "NO_LIMIT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/invoice_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // InvoiceStatus 开票状态 4 | type InvoiceStatus string 5 | 6 | const ( 7 | // InvoiceStatus_NO 未开票 8 | InvoiceStatus_NO InvoiceStatus = "NO" 9 | // InvoiceStatus_PART 部分开票 10 | InvoiceStatus_PART InvoiceStatus = "PART" 11 | // InvoiceStatus_COMPLETE 已开票 12 | InvoiceStatus_COMPLETE InvoiceStatus = "COMPLETE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/audience_account_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // AudienceAccountType 推送账户 4 | type AudienceAccountType string 5 | 6 | const ( 7 | // AudienceAccountType_LOCAL 本账户 8 | AudienceAccountType_LOCAL AudienceAccountType = "LOCAL" 9 | // AudienceAccountType_NO_LOCAL 其他账户 10 | AudienceAccountType_NO_LOCAL AudienceAccountType = "NO_LOCAL" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/superior_popularity_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // SuperiorPopularityType 媒体定向类型 4 | type SuperiorPopularityType string 5 | 6 | const ( 7 | // SuperiorPopularityType_NONE 不限 8 | SuperiorPopularityType_NONE SuperiorPopularityType = "NONE" 9 | // SuperiorPopularityType_GAME 游戏优质媒体 10 | SuperiorPopularityType_GAME SuperiorPopularityType = "GAME" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/businessplatform/account.go: -------------------------------------------------------------------------------- 1 | package businessplatform 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/enum" 4 | 5 | // Account 账户 6 | type Account struct { 7 | // ID 账户id 8 | ID uint64 `json:"account_id,omitempty"` 9 | // Type 主体类型: 10 | // AD: 广告账户 11 | // QIANCHUAN:千川广告账户 12 | Type enum.AccountType `json:"account_type,omitempty"` 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/model/creative/decoration_material.go: -------------------------------------------------------------------------------- 1 | package creative 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/enum" 4 | 5 | // DecorationMaterial 家装卡券素材 6 | type DecorationMaterial struct { 7 | // ActivityID 活动ID 8 | ActivityID string `json:"activity_id,omitempty"` 9 | // ImageMode 素材类型 10 | ImageMode enum.ImageMode `json:"image_mode,omitempty"` 11 | } 12 | -------------------------------------------------------------------------------- /marketing-api/model/creative/update.go: -------------------------------------------------------------------------------- 1 | package creative 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // UpdateRequest 修改创意信息 API Request 8 | type UpdateRequest struct { 9 | CreativeDetail 10 | } 11 | 12 | // Encode implement PostRequest interface 13 | func (r UpdateRequest) Encode() []byte { 14 | return util.JSONMarshal(r) 15 | } 16 | -------------------------------------------------------------------------------- /marketing-api/enum/ad_convert_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AdConvertStatus 转化工具转化状态 4 | type AdConvertStatus string 5 | 6 | const ( 7 | // AD_CONVERT_STATUS_ACTIVE 活跃(激活) 8 | AD_CONVERT_STATUS_ACTIVE AdConvertStatus = "AD_CONVERT_STATUS_ACTIVE" 9 | // AD_CONVERT_STATUS_INACTIVE 不活跃(未激活) 10 | AD_CONVERT_STATUS_INACTIVE AdConvertStatus = "AD_CONVERT_STATUS_INACTIVE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/material_channel.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MaterialChannel 素材业务线 4 | type MaterialChannel string 5 | 6 | const ( 7 | // MaterialChannel_AD 8 | MaterialChannel_AD MaterialChannel = "AD" 9 | // MaterialChannel_DOU_PLUS 10 | MaterialChannel_DOU_PLUS MaterialChannel = "DOU_PLUS" 11 | // MaterialChannel_QC 12 | MaterialChannel_QC MaterialChannel = "QC" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/product_channel_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // ProductChannelType 渠道类型 4 | type ProductChannelType string 5 | 6 | const ( 7 | // ProductChannelType_SHOP_SELL 商家自卖 8 | ProductChannelType_SHOP_SELL ProductChannelType = "SHOP_SELL" 9 | // ProductChannelType_STAR_SELL 达人自播 10 | ProductChannelType_STAR_SELL ProductChannelType = "STAR_SELL" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/wechat_search_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // WechatSearchType 搜索类型 4 | type WechatSearchType string 5 | 6 | const ( 7 | 8 | // WechatSearchType_CREATE_ONLY 只查询该账户创建的应用(默认值) 9 | WechatSearchType_CREATE_ONLY WechatSearchType = "CREATE_ONLY" 10 | // WechatSearchType_SHARE_ONLY 只查询被共享的应用 11 | WechatSearchType_SHARE_ONLY WechatSearchType = "SHARE_ONLY" 12 | ) 13 | -------------------------------------------------------------------------------- /marketing-api/enum/budget_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // BudgetMode 预算类型 4 | type BudgetMode string 5 | 6 | const ( 7 | // BUDGET_MODE_INFINITE 不限 8 | BUDGET_MODE_INFINITE BudgetMode = "BUDGET_MODE_INFINITE" 9 | // BUDGET_MODE_DAY 日预算 10 | BUDGET_MODE_DAY BudgetMode = "BUDGET_MODE_DAY" 11 | // BUDGET_MODE_TOTAL 总预算 12 | BUDGET_MODE_TOTAL BudgetMode = "BUDGET_MODE_TOTAL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/conversion_bill_track_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ConversionBillTrackType 转化支付方式 4 | type ConversionBillTrackType = int 5 | 6 | const ( 7 | // ConversionBillTrackType_WECHAT 微信支付 8 | ConversionBillTrackType_WECHAT ConversionBillTrackType = 1 9 | // ConversionBillTrackType_ALIPAY 支付宝支付 10 | ConversionBillTrackType_ALIPAY ConversionBillTrackType = 2 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/audience_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // AudienceType 人群类型 4 | type AudienceType string 5 | 6 | const ( 7 | // AudienceType_BASIC 基础 8 | AudienceType_BASIC AudienceType = "BASIC" 9 | // AudienceType_EXTEND 扩展 10 | AudienceType_EXTEND AudienceType = "EXTEND" 11 | // AudienceType_UPLOAD 上传 12 | AudienceType_UPLOAD AudienceType = "UPLOAD" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/local/clue_allocation_status.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // ClueAllocationStatus 分配状态 4 | type ClueAllocationStatus string 5 | 6 | const ( 7 | // ClueAllocationStatus_NOT_ASSIGN 待分配 8 | ClueAllocationStatus_NOT_ASSIGN ClueAllocationStatus = "NOT_ASSIGN" 9 | // ClueAllocationStatus_ASSIGNED 已分配 10 | ClueAllocationStatus_ASSIGNED ClueAllocationStatus = "ASSIGNED" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/material_bind_fail_reason.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MaterialBindFailReason 推送失败原因 4 | type MaterialBindFailReason string 5 | 6 | const ( 7 | // VIDEO_BINDING_EXISTED 视频已存在 8 | VIDEO_BINDING_EXISTED MaterialBindFailReason = "VIDEO_BINDING_EXISTED" 9 | // IMAGE_BINDING_EXISTED 图片已存在 10 | IMAGE_BINDING_EXISTED MaterialBindFailReason = "IMAGE_BINDING_EXISTED" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/tools/site/link_event.go: -------------------------------------------------------------------------------- 1 | package site 2 | 3 | // LinkEvent LinkEvent事件行为描述 4 | type LinkEvent struct { 5 | BaseEvent 6 | // Link 链接信息(支持落地页链接和IOS下载链接,不支持安卓下载链接,仅DownloadEvent事件下的安卓URL参数下可填写安卓下载链接) 7 | Link *Link `json:"link,omitempty"` 8 | } 9 | 10 | // Type implement Event interface 11 | func (e LinkEvent) Type() EventType { 12 | return EventType_LinkEvent 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/model/tools/site/text_brick.go: -------------------------------------------------------------------------------- 1 | package site 2 | 3 | // TextBrick 文本组件 4 | type TextBrick struct { 5 | BaseBrick 6 | // Content 文本内容,长度至少为1 7 | Content string `json:"content,omitempty"` 8 | // Link 跳转链接信息 9 | Link *Link `json:"link,omitempty"` 10 | } 11 | 12 | // Type implement Brick interface 13 | func (b TextBrick) Type() BrickType { 14 | return XrSimpleText 15 | } 16 | -------------------------------------------------------------------------------- /marketing-api/api/track/wxa_active.go: -------------------------------------------------------------------------------- 1 | package track 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/track" 8 | ) 9 | 10 | // WxaActive 微信小程序转化回传 11 | func WxaActive(ctx context.Context, clt *core.SDKClient, req *track.WxaActiveRequest) error { 12 | return clt.TrackActive(ctx, req, nil) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/blue_flow_recommend_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // BlueFlowRecommendType 关键词推荐类别 4 | type BlueFlowRecommendType string 5 | 6 | const ( 7 | // BlueFlowRecommendType_ORDINARY 普通关键词 8 | BlueFlowRecommendType_ORDINARY BlueFlowRecommendType = "ORDINARY" 9 | // BlueFlowRecommendType_PREFERRED 优选关键词 10 | BlueFlowRecommendType_PREFERRED BlueFlowRecommendType = "PREFERRED" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/marketing_goal.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // MarketingGoal 营销场景 4 | type MarketingGoal string 5 | 6 | const ( 7 | // MarketingGoal_ALL 不限 8 | MarketingGoal_ALL MarketingGoal = "ALL" 9 | // MarketingGoal_LIVE 直播 10 | MarketingGoal_LIVE MarketingGoal = "LIVE" 11 | // MarketingGoal_VIDEO_IMAGE 短视频/图文 12 | MarketingGoal_VIDEO_IMAGE MarketingGoal = "VIDEO_IMAGE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/platform_version.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // PlatformVersion 巨量引擎平台版本 4 | type PlatformVersion string 5 | 6 | const ( 7 | // PlatformVersion_V1 原版 8 | PlatformVersion_V1 PlatformVersion = "V1" 9 | // PlatformVersion_V2 巨量引擎体验版 10 | PlatformVersion_V2 PlatformVersion = "V2" 11 | // PlatformVersion_ALL 原版+巨量引擎体验版(默认值) 12 | PlatformVersion_ALL PlatformVersion = "ALL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/material_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // MaterialType 素材类型 4 | type MaterialType = string 5 | 6 | const ( 7 | // MaterialType_Video 视频素材 8 | MaterialType_Video MaterialType = "video" 9 | // MaterialType_Image 图片素材 10 | MaterialType_Image MaterialType = "image" 11 | // MaterialType_Carousel 图文素材 12 | MaterialType_Carousel MaterialType = "carousel" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/stats_authority.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // StatsAuthority 需要查询的广告账户维度,直客账户支持查看官方抖音号下同主体全部广告账户的数据表现 4 | type StatsAuthority string 5 | 6 | const ( 7 | // StatsAuthority_QUALIFICATION 同主体账户, 仅直客账户支持 8 | StatsAuthority_QUALIFICATION StatsAuthority = "QUALIFICATION" 9 | // StatsAuthority_CURRENT 当前账户 10 | StatsAuthority_CURRENT StatsAuthority = "CURRENT" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/rta_target_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // RtaTargetType 生效维度 4 | type RtaTargetType string 5 | 6 | const ( 7 | // RtaTargetType_ADV 广告账户 8 | RtaTargetType_ADV RtaTargetType = "ADV" 9 | // RtaTargetType_CAMPAIGN 广告组 10 | RtaTargetType_CAMPAIGN RtaTargetType = "CAMPAIGN" 11 | // RtaTargetType_PROJECT 项目(体验版) 12 | RtaTargetType_PROJECT RtaTargetType = "PROJECT" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/action_scene.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ActionScene 行为场景 4 | type ActionScene string 5 | 6 | const ( 7 | // UNKNOWN_SCENE 未知场景 8 | UNKNOWN_SCENE ActionScene = "" 9 | // E_COMMERCE_SCENE 电商行为场景 10 | E_COMMERCE_SCENE ActionScene = "E-COMMERCE" 11 | // NEWS_SCENE 资讯行为场景 12 | NEWS_SCENE ActionScene = "NEWS" 13 | // APP_SCENE app行为场景 14 | APP_SCENE ActionScene = "APP" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/micro_app_search_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MicroAppSearchType 搜索类型,可选值: 4 | type MicroAppSearchType string 5 | 6 | const ( 7 | // MicroAppSearchType_CREATE_ONLY 只查询该账户创建的应用(默认值) 8 | MicroAppSearchType_CREATE_ONLY MicroAppSearchType = "CREATE_ONLY" 9 | // MicroAppSearchType_SHARE_ONLY 只查询被共享的应用 10 | MicroAppSearchType_SHARE_ONLY MicroAppSearchType = "SHARE_ONLY" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/component_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ComponentStatus 组件审核状态 4 | type ComponentStatus string 5 | 6 | const ( 7 | // ComponentStatus_PASS 通过 8 | ComponentStatus_PASS ComponentStatus = "PASS" 9 | // ComponentStatus_UNDER 审核中 10 | ComponentStatus_UNDER ComponentStatus = "UNDER" 11 | // ComponentStatus_REJECT 未通过 12 | ComponentStatus_REJECT ComponentStatus = "REJECT" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/dpa_rta_recommend_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DpaRtaRecommedType RTA推荐逻辑,ONLY仅RTA推荐商品,MORE基于RTA推荐更多商品,开启RTA重定向开关时必填 4 | type DpaRtaRecommendType string 5 | 6 | const ( 7 | // DpaRtaRecommendType_ONLY 仅RTA推荐商品 8 | DpaRtaRecommendType_ONLY DpaRtaRecommendType = "ONLY" 9 | // DpaRtaRecommendType_MORE 基于RTA推荐更多商品 10 | DpaRtaRecommendType_MORE DpaRtaRecommendType = "MORE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/ad_convert_opt_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AdConvertOptStatus 转化工具操作状态】 4 | type AdConvertOptStatus string 5 | 6 | const ( 7 | // AD_CONVERT_OPT_STATUS_ENABLE 启用 8 | AD_CONVERT_OPT_STATUS_ENABLE AdConvertOptStatus = "AD_CONVERT_OPT_STATUS_ENABLE" 9 | // AD_CONVERT_OPT_STATUS_DISABLE 删除 10 | AD_CONVERT_OPT_STATUS_DISABLE AdConvertOptStatus = "AD_CONVERT_OPT_STATUS_DISABLE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/promotion_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // PromotionType 投放内容,允许值:AWEME_HOME_PAGE:抖音主页(默认)LANDING_PAGE_LINK:落地页 4 | type PromotionType string 5 | 6 | const ( 7 | // PromotionType_AWEME_HOME_PAGE 抖音主页 8 | PromotionType_AWEME_HOME_PAGE PromotionType = "AWEME_HOME_PAGE" 9 | // PromotionType_LANDING_PAGE_LINK 落地页 10 | PromotionType_LANDING_PAGE_LINK PromotionType = "LANDING_PAGE_LINK" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/live_flow_source.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // LiveFlowSource 直播间流量来源 4 | type LiveFlowSource string 5 | 6 | const ( 7 | 8 | // LiveFlowSource_AllEcomFlowSource 广告大屏-流量来源 9 | LiveFlowSource_AllEcomFlowSource LiveFlowSource = "AllEcomFlowSource" 10 | // LiveFlowSource_AllEcomGmvSource 广告大屏-成交来源 11 | LiveFlowSource_AllEcomGmvSource LiveFlowSource = "AllEcomGmvSource" 12 | ) 13 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/title_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // TitleType 素材类型 4 | type TitleType string 5 | 6 | const ( 7 | // TitleType_CUSTOM 自定义标题 8 | TitleType_CUSTOM TitleType = "CUSTOM" 9 | // TitleType_COMMODITY_CARD 商品卡标题 10 | TitleType_COMMODITY_CARD TitleType = "COMMODITY_CARD" 11 | // TitleType_AWEME_CAROUSEL 抖音主页图集标题 12 | TitleType_AWEME_CAROUSEL TitleType = "AWEME_CAROUSEL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/archive_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ArchiveStatus 回收状态 4 | type ArchiveStatus string 5 | 6 | const ( 7 | // ArchiveStatus_NO_RETRIEVE 未回收 8 | ArchiveStatus_NO_RETRIEVE ArchiveStatus = "NO_RETRIEVE" 9 | // ArchiveStatus_RETRIEVED 已回收 10 | ArchiveStatus_RETRIEVED ArchiveStatus = "RETRIEVED" 11 | // ArchiveStatus_ARCHIVED 已归档 12 | ArchiveStatus_ARCHIVED ArchiveStatus = "ARCHIVED" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/creative_display_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CreativeDisplayMode 创意展现方式 4 | type CreativeDisplayMode string 5 | 6 | const ( 7 | // CREATIVE_DISPLAY_MODE_CTR 优选(优先投放预估点击率高的创意素材) 8 | CREATIVE_DISPLAY_MODE_CTR CreativeDisplayMode = "CREATIVE_DISPLAY_MODE_CTR" 9 | // CREATIVE_DISPLAY_MODE_RANDOM 轮播 10 | CREATIVE_DISPLAY_MODE_RANDOM CreativeDisplayMode = "CREATIVE_DISPLAY_MODE_RANDOM" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/group_flow_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // GroupFlowType 落地页组流量分配方式 4 | type GroupFlowType string 5 | 6 | const ( 7 | // FLOW_DISTRIBUTION_TYPE_INTELLIGENCE 智能分配 8 | FLOW_DISTRIBUTION_TYPE_INTELLIGENCE GroupFlowType = "FLOW_DISTRIBUTION_TYPE_INTELLIGENCE" 9 | // FLOW_DISTRIBUTION_TYPE_AVERAGE 平均分配 10 | FLOW_DISTRIBUTION_TYPE_AVERAGE GroupFlowType = "FLOW_DISTRIBUTION_TYPE_AVERAGE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/ecp_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // EcpType 账户类型 4 | type EcpType string 5 | 6 | const ( 7 | // EcpType_SHOP 商家 8 | EcpType_SHOP EcpType = "SHOP" 9 | // EcpType_SHOP_STAR 商家达人 10 | EcpType_SHOP_STAR EcpType = "SHOP_STAR" 11 | // EcpType_COMMON_STAR 普通达人 12 | EcpType_COMMON_STAR EcpType = "COMMON_STAR" 13 | // EcpType_AGENT 百应机构 14 | EcpType_AGENT EcpType = "AGENT" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/smart_bid_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // SmartBidType 智能出价类型 4 | type SmartBidType string 5 | 6 | const ( 7 | // SMART_BID_CUSTOM 手动出价,即不使用自动出价 8 | SMART_BID_CUSTOM SmartBidType = "SMART_BID_CUSTOM" 9 | // SMART_BID_CONSERVATIVE 自动出价 10 | SMART_BID_CONSERVATIVE SmartBidType = "SMART_BID_CONSERVATIVE" 11 | // SMART_BID_NO_BID 12 | SMART_BID_NO_BID SmartBidType = "SMART_BID_NO_BID" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/dpa_video_template_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DpaVideoTemplateType 商品库视频生成类型 4 | type DpaVideoTemplateType string 5 | 6 | const ( 7 | // DPA_VIDEO_TEMPLATE_SMART 优选商品库视频(自动根据商品库商品图片生成) 8 | DPA_VIDEO_TEMPLATE_SMART DpaVideoTemplateType = "DPA_VIDEO_TEMPLATE_SMART" 9 | // DPA_VIDEO_TEMPLATE_CUSTOM 自定义商品库视频 10 | DPA_VIDEO_TEMPLATE_CUSTOM DpaVideoTemplateType = "DPA_VIDEO_TEMPLATE_CUSTOM" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/event_track_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // EventTrackType 事件回传方式 4 | type EventTrackType string 5 | 6 | const ( 7 | // EventTrackType_JSSDK JS埋码 8 | EventTrackType_JSSDK EventTrackType = "JSSDK" 9 | // EventTrackType_EXTERNAL_API API回传 10 | EventTrackType_EXTERNAL_API EventTrackType = "EXTERNAL_API" 11 | // EventTrackType_XPATH XPath圈选 12 | EventTrackType_XPATH EventTrackType = "XPATH" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/landing_group_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // LandingGroupStatus 落地页组状态 4 | type LandingGroupStatus string 5 | 6 | const ( 7 | // LANDING_GROUP_STATUS_AVAILABLE 可用 8 | LANDING_GROUP_STATUS_AVAILABLE LandingGroupStatus = "LANDING_GROUP_STATUS_AVAILABLE" 9 | // LANDING_GROUP_STATUS_UNAVAILABLE 不可用 10 | LANDING_GROUP_STATUS_UNAVAILABLE LandingGroupStatus = "LANDING_GROUP_STATUS_UNAVAILABLE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/custom_audience_tags_type.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // CustomAudienceTagsType 人群包属性筛选 4 | type CustomAudienceTagsType string 5 | 6 | const ( 7 | // CustomAudienceTagsType_CUSTOM 自定义人群包 8 | CustomAudienceTagsType_CUSTOM CustomAudienceTagsType = "CUSTOM" 9 | // CustomAudienceTagsType_SYS_RECOMMEND 系统推荐人群包 10 | CustomAudienceTagsType_SYS_RECOMMEND CustomAudienceTagsType = "SYS_RECOMMEND" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/order_platform.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // OrderPlatform 下单平台 4 | type OrderPlatform string 5 | 6 | const ( 7 | // OrderPlatform_ALL 全部 8 | OrderPlatform_ALL OrderPlatform = "ALL" 9 | // OrderPlatform_QIANCHUAN 千川pc(默认) 10 | OrderPlatform_QIANCHUAN OrderPlatform = "QIANCHUAN" 11 | // OrderPlatform_ECP_AWEME 小店随心推 12 | OrderPlatform_ECP_AWEME OrderPlatform = "ECP_AWEME" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/security_score_illegal_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // SecurityScoreIllegalType 违规类型 4 | type SecurityScoreIllegalType string 5 | 6 | const ( 7 | // SecurityScoreIllegalType_GENERAL 一般违规(AD) 8 | SecurityScoreIllegalType_GENERAL SecurityScoreIllegalType = "GENERAL" 9 | // SecurityScoreIllegalType_SERIOUS 严重违规(AD) 10 | SecurityScoreIllegalType_SERIOUS SecurityScoreIllegalType = "SERIOUS" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/video_schedule_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // VideoScheduleType 短视频投放日期选择方式 4 | type VideoScheduleType string 5 | 6 | const ( 7 | //VideoScheduleType_SCHEDULE_FROM_NOW 从现在开始一直投放 8 | VideoScheduleType_SCHEDULE_FROM_NOW VideoScheduleType = "SCHEDULE_FROM_NOW" 9 | //VideoScheduleType_SCHEDULE_START_END 选择起始时间 10 | VideoScheduleType_SCHEDULE_START_END VideoScheduleType = "SCHEDULE_START_END" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/advertiser_copy_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AdvertiserCopyStatus 复制结果状态码 4 | type AdvertiserCopyStatus int 5 | 6 | const ( 7 | // AdvertiserCopySuccess 全部成功 8 | AdvertiserCopySuccess AdvertiserCopyStatus = 1 9 | // AdvertiserCopyPartSuccess 部分成功 10 | AdvertiserCopyPartSuccess AdvertiserCopyStatus = 2 11 | // AdvertiserCopyFailed 全部失败 12 | AdvertiserCopyFailed AdvertiserCopyStatus = 3 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/aweme_binding_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AwemeBindType 抖音号授权类型 4 | type AwemeBindType string 5 | 6 | const ( 7 | // AwemeBindType_OFFICIAL 官方 8 | AwemeBindType_OFFICIAL AwemeBindType = "OFFICIAL" 9 | // AwemeBindType_SELF 自运营 10 | AwemeBindType_SELF AwemeBindType = "SELF" 11 | // AwemeBindType_AWEME_COOPERATOR 合作达人 12 | AwemeBindType_AWEME_COOPERATOR AwemeBindType = "AWEME_COOPERATOR" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/comment_hide_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CommentHideStatus 隐藏状态 4 | type CommentHideStatus string 5 | 6 | const ( 7 | // CommentHideStatus_ALL 全部 8 | CommentHideStatus_ALL CommentHideStatus = "ALL" 9 | // CommentHideStatus_HIDE 已隐藏 10 | CommentHideStatus_HIDE CommentHideStatus = "HIDE" 11 | // CommentHideStatus_NOT_HIDE 未隐藏 12 | CommentHideStatus_NOT_HIDE CommentHideStatus = "NOT_HIDE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/delivery_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DeliveryType 投放类型 4 | type DeliveryType string 5 | 6 | const ( 7 | // DeliveryType_NORMAL 常规投放 8 | DeliveryType_NORMAL DeliveryType = "NORMAL" 9 | // DeliveryType_DURATION 周期稳投(目前仅支持搜索广告) 10 | DeliveryType_DURATION DeliveryType = "DURATION" 11 | // DeliveryType_UBX_INTELLIGENT UBA智能托管 12 | DeliveryType_UBX_INTELLIGENT DeliveryType = "UBX_INTELLIGENT" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/shop_platform.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ShopPlatform ROI系数所属平台 4 | type ShopPlatform string 5 | 6 | const ( 7 | // ShopPlatform_PDD 拼多多 8 | ShopPlatform_PDD ShopPlatform = "PDD" 9 | // ShopPlatform_TB 淘宝 10 | ShopPlatform_TB ShopPlatform = "TB" 11 | // ShopPlatform_JD 京东 12 | ShopPlatform_JD ShopPlatform = "JD" 13 | // ShopPlatform_OTHER 其他 14 | ShopPlatform_OTHER ShopPlatform = "OTHER" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/model/dpa/platform.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/enum" 4 | 5 | // Platform 商品库详情 6 | type Platform struct { 7 | // PlatformID 商品库ID 8 | PlatformID uint64 `json:"platform_id,omitempty"` 9 | // Name 商品库名称 10 | Name string `json:"name,omitempty"` 11 | // ProductIndustry 商品库行业类别 12 | ProductIndustry enum.ProductIndustry `json:"product_industry,omitempty"` 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/industry_config_rule_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // IndustryConfigRuleType 规则的资质组成类型 4 | type IndustryConfigRuleType string 5 | 6 | const ( 7 | // IndustryConfigRuleType_CHOICE 选择(资质规则内资质类型任选>1个类型填写提交) 8 | IndustryConfigRuleType_CHOICE IndustryConfigRuleType = "CHOICE" 9 | // IndustryConfigRuleType_COMPOSE 组合(资质规则内资质类型必须全部填写提交) 10 | IndustryConfigRuleType_COMPOSE IndustryConfigRuleType = "COMPOSE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/product_setting.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ProductSetting 商品库设置 4 | type ProductSetting string 5 | 6 | const ( 7 | // ProductSetting_SINGLE 启用SDPA 8 | ProductSetting_SINGLE ProductSetting = "SINGLE" 9 | // ProductSetting_NO_MAP 不启用 10 | ProductSetting_NO_MAP ProductSetting = "NO_MAP" 11 | // ProductSetting_MULTI_PRODUCTS 多品投放 12 | ProductSetting_MULTI_PRODUCTS ProductSetting = "MULTI_PRODUCTS" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/video_cover_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // VideoCoverStatus 封面生成的状态 4 | type VideoCoverStatus string 5 | 6 | const ( 7 | // VideoCoverStatus_RUNNING 生成中 8 | VideoCoverStatus_RUNNING VideoCoverStatus = "RUNNING" 9 | // VideoCoverStatus_SUCCESS 成功 10 | VideoCoverStatus_SUCCESS VideoCoverStatus = "SUCCESS" 11 | // VideoCoverStatus_FAILED 失败 12 | VideoCoverStatus_FAILED VideoCoverStatus = "FAILED" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/util/string.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | func StringsJoin(strs ...string) string { 4 | var n int 5 | for i := 0; i < len(strs); i++ { 6 | n += len(strs[i]) 7 | } 8 | if n <= 0 { 9 | return "" 10 | } 11 | builder := GetStringsBuilder() 12 | builder.Grow(n) 13 | for _, s := range strs { 14 | builder.WriteString(s) 15 | } 16 | ret := builder.String() 17 | PutStringsBuilder(builder) 18 | return ret 19 | } 20 | -------------------------------------------------------------------------------- /marketing-api/enum/ad_delivery_range.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AdDeliveryRange 广告投放范围 4 | type AdDeliveryRange string 5 | 6 | const ( 7 | // AdDeliveryRange_DEFAULT 默认 8 | AdDeliveryRange_DEFAULT AdDeliveryRange = "DEFAULT" 9 | // AdDeliveryRange_UNION 只投放到资讯联盟(穿山甲) 10 | AdDeliveryRange_UNION AdDeliveryRange = "UNION" 11 | // AdDeliveryRange_UNIVERSAL 通投智选 12 | AdDeliveryRange_UNIVERSAL AdDeliveryRange = "UNIVERSAL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/app_promotion_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AppPromotionType 子目标 4 | type AppPromotionType string 5 | 6 | const ( 7 | // AppPromotionType_DOWNLOAD 应用下载 8 | AppPromotionType_DOWNLOAD AppPromotionType = "DOWNLOAD" 9 | // AppPromotionType_LAUNCH 应用调用 10 | AppPromotionType_LAUNCH AppPromotionType = "LAUNCH" 11 | // AppPromotionType_RESERVE 预约下载 12 | AppPromotionType_RESERVE AppPromotionType = "RESERVE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/async_task_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AsyncTaskType 任务类型 4 | type AsyncTaskType string 5 | 6 | const ( 7 | // AsyncTaskType_REPORT 普通报表 8 | AsyncTaskType_REPORT AsyncTaskType = "REPORT" 9 | // AsyncTaskType_REPORT_DPA DPA 报表 10 | AsyncTaskType_REPORT_DPA AsyncTaskType = "REPORT_DPA" 11 | // AsyncTaskType_REPORT_BIDWORD 关键词/搜索词报表 12 | AsyncTaskType_REPORT_BIDWORD AsyncTaskType = "REPORT_BIDWORD" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/auto_generate_config_version.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AutoGenerateConfigVersion 版本 4 | type AutoGenerateConfigVersion string 5 | 6 | const ( 7 | // AutoGenerateConfigVersion_Strategy strategy版本 8 | AutoGenerateConfigVersion_Strategy AutoGenerateConfigVersion = "Strategy" 9 | // AutoGenerateConfigVersion_Template template版本 10 | AutoGenerateConfigVersion_Template AutoGenerateConfigVersion = "Template" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/local/clue_type.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // ClueType 留资组件 4 | type ClueType string 5 | 6 | const ( 7 | // ClueType_FORM 表单提交 8 | ClueType_FORM ClueType = "FORM" 9 | // ClueType_CONSULT 在线咨询 10 | ClueType_CONSULT ClueType = "CONSULT" 11 | // ClueType_SMARTPHONE 智能电话 12 | ClueType_SMARTPHONE ClueType = "SMARTPHONE" 13 | // ClueType_GROUP_BUYING 团购留资 14 | ClueType_GROUP_BUYING ClueType = "GROUP_BUYING" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/local/upload_task_status.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // UploadTaskStatus 任务处理状态 4 | type UploadTaskStatus string 5 | 6 | const ( 7 | // UploadTaskStatus_PROCESS 处理中 8 | UploadTaskStatus_PROCESS UploadTaskStatus = "PROCESS" 9 | // UploadTaskStatus_SUCCESS 成功 10 | UploadTaskStatus_SUCCESS UploadTaskStatus = "SUCCESS" 11 | // UploadTaskStatus_FAILED 失败 12 | UploadTaskStatus_FAILED UploadTaskStatus = "FAILED" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/aweme_auth_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AwemeAuthStatus 授权状态 4 | type AwemeAuthStatus string 5 | 6 | const ( 7 | // AwemeAuthStatus_AUTHRIZED 授权中 8 | AwemeAuthStatus_AUTHRIZED AwemeAuthStatus = "AUTHRIZED" 9 | // AwemeAuthStatus_AUTHRIZING 待授权确认 10 | AwemeAuthStatus_AUTHRIZING AwemeAuthStatus = "AUTHRIZING" 11 | // AwemeAuthStatus_INVALID 授权失效 12 | AwemeAuthStatus_INVALID AwemeAuthStatus = "INVALID" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/download_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DownloadType 下载方式 4 | type DownloadType string 5 | 6 | const ( 7 | // DownloadType_DOWNLOAD_URL 直接下载 8 | DownloadType_DOWNLOAD_URL DownloadType = "DOWNLOAD_URL" 9 | // DownloadType_EXTERNAL_URL 落地页下载 10 | DownloadType_EXTERNAL_URL DownloadType = "EXTERNAL_URL" 11 | // DownloadType_QUICK_APP_URL 快应用+下载链接 12 | DownloadType_QUICK_APP_URL DownloadType = "QUICK_APP_URL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/flow_package_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // FlowPackageType 按照流量包类型过滤,允许值: 4 | type FlowPackageType string 5 | 6 | const ( 7 | // FlowPackageType_CUSTOMIZE 自定义 8 | FlowPackageType_CUSTOMIZE FlowPackageType = "CUSTOMIZE" 9 | // FlowPackageType_FEATURED 运营推荐 10 | FlowPackageType_FEATURED FlowPackageType = "FEATURED" 11 | // FlowPackageType_SYSTEM 系统推荐 12 | FlowPackageType_SYSTEM FlowPackageType = "SYSTEM" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/local/schedule_type.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // ScheduleType 投放日期类型设置 4 | type ScheduleType string 5 | 6 | const ( 7 | // ScheduleType_FROM_NOW_ON 从今天起长期投放 8 | ScheduleType_FROM_NOW_ON ScheduleType = "FROM_NOW_ON" 9 | // ScheduleType_START_TO_END 设置开始结束时间 10 | ScheduleType_START_TO_END ScheduleType = "START_TO_END" 11 | // ScheduleType_FIXED_TIME 固定时长 12 | ScheduleType_FIXED_TIME ScheduleType = "FIXED_TIME" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/view_delivery_type.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // ViewDeliveryType 资金池类型,允许值: 4 | type ViewDeliveryType string 5 | 6 | const ( 7 | // ViewDeliveryType_ALL 全部(默认值) 8 | ViewDeliveryType_ALL ViewDeliveryType = "ALL" 9 | // ViewDeliveryType_DEFAULT 通用 10 | ViewDeliveryType_DEFAULT ViewDeliveryType = "DEFAULT" 11 | // ViewDeliveryType_BRAND 品牌 12 | ViewDeliveryType_BRAND ViewDeliveryType = "BRAND" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/video_pause_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // VideoPauseStatus 暂停结果 4 | type VideoPauseStatus string 5 | 6 | const ( 7 | // VideoPauseStatus_SUCCESS 成功 8 | VideoPauseStatus_SUCCESS VideoPauseStatus = "SUCCESS" 9 | // VideoPauseStatus_PART_SUCCESS 部分成功 10 | VideoPauseStatus_PART_SUCCESS VideoPauseStatus = "PART_SUCCESS" 11 | // VideoPauseStatus_FAIL 失败 12 | VideoPauseStatus_FAIL VideoPauseStatus = "FAIL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/asset_share_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AssetShareType 资产来源 4 | type AssetShareType string 5 | 6 | const ( 7 | // AssetShareType_MY_CREATIONS 我创建的 8 | AssetShareType_MY_CREATIONS AssetShareType = "MY_CREATIONS" 9 | // AssetShareType_SHARING 共享中 10 | AssetShareType_SHARING AssetShareType = "SHARING" 11 | // AssetShareType_SHATE_EXPIRED 共享失效 12 | AssetShareType_SHATE_EXPIRED AssetShareType = "SHATE_EXPIRED" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/launch_target_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // LaunchTargetType 投放类型 4 | type LaunchTargetType string 5 | 6 | const ( 7 | // LaunchTargetType_LIVE_CONVERT 直播间转化 8 | LaunchTargetType_LIVE_CONVERT LaunchTargetType = "LIVE_CONVERT" 9 | // LaunchTargetType_APP 应用下载 10 | LaunchTargetType_APP LaunchTargetType = "APP" 11 | // LaunchTargetType_EXTERNAL 线索收集 12 | LaunchTargetType_EXTERNAL LaunchTargetType = "EXTERNAL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/dpa/category.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/model" 4 | 5 | // Category DPA分类 6 | type Category struct { 7 | // Name 分类名称 8 | Name string `json:"name,omitempty"` 9 | // Subs 子级分类,嵌套递归 10 | Subs []Category `json:"subs,omitempty"` 11 | // ID 分类id 12 | ID model.Uint64 `json:"id,omitempty"` 13 | // Parent 父级分类id,没有父级则为-1 14 | Parent model.Uint64 `json:"parent,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /marketing-api/model/eventmanager/auth/enable.go: -------------------------------------------------------------------------------- 1 | package auth 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // EnableRequest 开启鉴权 API Request 8 | type EnableRequest struct { 9 | // AdvertiserID 广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | } 12 | 13 | // Encode implement PostRequest interface 14 | func (r EnableRequest) Encode() []byte { 15 | return util.JSONMarshal(r) 16 | } 17 | -------------------------------------------------------------------------------- /marketing-api/api/conversion/assist.go: -------------------------------------------------------------------------------- 1 | package conversion 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/conversion" 8 | ) 9 | 10 | // Assist 客户回传其巨量引擎助攻的转化 11 | func Assist(ctx context.Context, clt *core.SDKClient, req *conversion.Request) error { 12 | var resp conversion.Response 13 | return clt.AnalyticsPost(ctx, "assist", req, &resp) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/dpa/product_delete.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/dpa" 8 | ) 9 | 10 | // ProductDelete 删除DPA商品 11 | func ProductDelete(ctx context.Context, clt *core.SDKClient, accessToken string, req *dpa.ProductDeleteRequest) error { 12 | return clt.Post(ctx, "2/dpa/product/delete/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/keyword_match_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // KeywordMatchType 关键词匹配类型 4 | type KeywordMatchType string 5 | 6 | const ( 7 | // KeywordMatchType_PHRASE 短语匹配 8 | KeywordMatchType_PHRASE KeywordMatchType = "PHRASE" 9 | // KeywordMatchType_EXTENSIVE 广泛匹配 10 | KeywordMatchType_EXTENSIVE KeywordMatchType = "EXTENSIVE" 11 | // KeywordMatchType_PRECISION 精准匹配 12 | KeywordMatchType_PRECISION KeywordMatchType = "PRECISION" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/marketing_scene.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MarketingScene 游戏预约场景 4 | type MarketingScene string 5 | 6 | const ( 7 | // MarketingScene_GAME_PROMOTION 游戏大推 8 | MarketingScene_GAME_PROMOTION MarketingScene = "GAME_PROMOTION" 9 | // MarketingScene_GAME_SUBSCRIBE 游戏预约 10 | MarketingScene_GAME_SUBSCRIBE MarketingScene = "GAME_SUBSCRIBE" 11 | // MarketingScene_NORMAL 普通场景 12 | MarketingScene_NORMAL MarketingScene = "NORMAL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/shared_wallet_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // SharedWalletType 共享钱包类型 4 | type SharedWalletType string 5 | 6 | const ( 7 | // MAIN_WALLET 共享钱包 即大钱包 8 | MAIN_WALLET SharedWalletType = "MAIN_WALLET" 9 | // SUB_CONSUME_WALLET 投放子钱包,可以挂多个广告主,可以投放 10 | SUB_CONSUME_WALLET SharedWalletType = "SUB_CONSUME_WALLET" 11 | // SUB_MANAGE_WALLET 管理子钱包,只能挂一个广告主(如代理商),不能投放 12 | SUB_MANAGE_WALLET SharedWalletType = "SUB_MANAGE_WALLET" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/eventmanager/auth/disable.go: -------------------------------------------------------------------------------- 1 | package auth 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // DisableRequest 关闭鉴权 API Request 8 | type DisableRequest struct { 9 | // AdvertiserID 广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | } 12 | 13 | // Encode implement PostRequest interface 14 | func (r DisableRequest) Encode() []byte { 15 | return util.JSONMarshal(r) 16 | } 17 | -------------------------------------------------------------------------------- /marketing-api/api/tools/adraise/v3/stop.go: -------------------------------------------------------------------------------- 1 | package v3 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | v3 "github.com/bububa/oceanengine/marketing-api/model/tools/adraise/v3" 8 | ) 9 | 10 | // Stop 关停一键起量 11 | func Stop(ctx context.Context, clt *core.SDKClient, accessToken string, req *v3.StopRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/tools/promotion_raise/stop/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/comment_level_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CommentLevelType 评论等级 4 | type CommentLevelType string 5 | 6 | const ( 7 | // CommentLevelType_LEVEL_ALL 所有等级 8 | CommentLevelType_LEVEL_ALL CommentLevelType = "LEVEL_ALL" 9 | // CommentLevelType_LEVEL_ONE 一级评论 10 | CommentLevelType_LEVEL_ONE CommentLevelType = "LEVEL_ONE" 11 | // CommentLevelType_LEVEL_TWO 二级评论 12 | CommentLevelType_LEVEL_TWO CommentLevelType = "LEVEL_TWO" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/dmp_push_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DmpPushStatus 人群包推送状态 4 | type DmpPushStatus int 5 | 6 | const ( 7 | // DmpPushStatus_NOT_START 未推送 8 | DmpPushStatus_NOT_START DmpPushStatus = 0 9 | // DmpPushStatus_PUSHING 推送中 10 | DmpPushStatus_PUSHING DmpPushStatus = 1 11 | // DmpPushStatus_PUSHED 已推送 12 | DmpPushStatus_PUSHED DmpPushStatus = 2 13 | // DmpPushStatus_FAILED 推送失败 14 | DmpPushStatus_FAILED DmpPushStatus = 3 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/creative_opt_status.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // CreativeOptStatus 广告创意操作状态 4 | type CreativeOptStatus string 5 | 6 | const ( 7 | // CreativeOptStatus_ENABLE 启用 8 | CreativeOptStatus_ENABLE CreativeOptStatus = "ENABLE" 9 | // CreativeOptStatus_DISABLE 暂停 10 | CreativeOptStatus_DISABLE CreativeOptStatus = "DISABLE" 11 | // CreativeOptStatus_DELETE 删除 12 | CreativeOptStatus_DELETE CreativeOptStatus = "DELETE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/clue/coupon/activity_type.go: -------------------------------------------------------------------------------- 1 | package coupon 2 | 3 | // ActivityType 卡券类型 4 | type ActivityType string 5 | 6 | const ( 7 | // ActivityType_DIRECT_NEED_PHONE 直接发券,收集手机号,need_phone须为true 8 | ActivityType_DIRECT_NEED_PHONE ActivityType = "DIRECT_NEED_PHONE" 9 | // ActivityType_DIRECT_NOT_NEED_PHONE 直接发券,不收集手机号,need_phone须为false 并且 BindFormId会被忽略 10 | ActivityType_DIRECT_NOT_NEED_PHONE ActivityType = "DIRECT_NOT_NEED_PHONE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/uni_promotion/auth_init.go: -------------------------------------------------------------------------------- 1 | package unipromotion 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/util" 4 | 5 | // AuthInitRequest 全域授权初始化 API Request 6 | type AuthInitRequest struct { 7 | // AdvertiserID 广告主id 8 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 9 | } 10 | 11 | // Encode implements PostRequest interface 12 | func (r AuthInitRequest) Encode() []byte { 13 | return util.JSONMarshal(r) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/model/tools/interestaction/object.go: -------------------------------------------------------------------------------- 1 | package interestaction 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/model" 4 | 5 | // Object 类目/关键词对象 6 | type Object struct { 7 | // ID 类目/关键词IID 8 | ID model.Uint64 `json:"id,omitempty"` 9 | // Name 名称 10 | Name string `json:"name,omitempty"` 11 | // Num 覆盖人数 12 | Num string `json:"num,omitempty"` 13 | // Children 子类目 14 | Children []Object `json:"children,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /marketing-api/model/tools/sitetemplate/template.go: -------------------------------------------------------------------------------- 1 | package sitetemplate 2 | 3 | // Template 模板 4 | type Template struct { 5 | // TemplateID 模板ID 6 | TemplateID uint64 `json:"template_id,omitempty"` 7 | // SiteID 站点ID,可通过【橙子建站】平台或【获取橙子建站站点列表】接口获取 8 | SiteID uint64 `json:"site_id,omitempty"` 9 | // TemplateName 模板名称 10 | TemplateName string `json:"template_name,omitempty"` 11 | // Bricks 组件列表 12 | Bricks []Brick `json:"bricks,omitempty"` 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/audience_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AudienceMode 人群定向模式 4 | type AudienceMode string 5 | 6 | const ( 7 | // AudienceMode_AUTO 智能推荐 8 | AudienceMode_AUTO AudienceMode = "AUTO" 9 | // AudienceMode_CUSTOM 自定义 10 | AudienceMode_CUSTOM AudienceMode = "CUSTOM" 11 | // AudienceMode_FANS 达人相似粉丝 12 | AudienceMode_FANS AudienceMode = "FANS" 13 | // AudienceMode_LIVEFANS 达人相似观众 14 | AudienceMode_LIVEFANS AudienceMode = "LIVEFANS" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/rebate_operator_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // RebateOperatorTag 运营标签 4 | type RebateOperatorTag string 5 | 6 | const ( 7 | // RebateOperatorTag_SHOULIANG 收量 8 | RebateOperatorTag_SHOULIANG RebateOperatorTag = "SHOULIANG" 9 | // RebateOperatorTag_ZOULIANG 走量 10 | RebateOperatorTag_ZOULIANG RebateOperatorTag = "ZOULIANG" 11 | // RebateOperatorTag_ZIYUNYING 自运营 12 | RebateOperatorTag_ZIYUNYING RebateOperatorTag = "ZIYUNYING" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/api/clue/smartphone/delete.go: -------------------------------------------------------------------------------- 1 | package smartphone 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/clue/smartphone" 8 | ) 9 | 10 | // Delete 删除智能电话 11 | func Delete(ctx context.Context, clt *core.SDKClient, accessToken string, req *smartphone.DeleteRequest) error { 12 | return clt.Post(ctx, "2/clue/smartphone/delete/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/conversion/attribution.go: -------------------------------------------------------------------------------- 1 | package conversion 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/conversion" 8 | ) 9 | 10 | // Attribution 电话转化回传 11 | func Attribution(ctx context.Context, clt *core.SDKClient, req *conversion.Request) error { 12 | var resp conversion.Response 13 | return clt.AnalyticsV1Post(ctx, "attribution", req, &resp) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/tools/adraise/v3/set.go: -------------------------------------------------------------------------------- 1 | package v3 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | v3 "github.com/bububa/oceanengine/marketing-api/model/tools/adraise/v3" 8 | ) 9 | 10 | // Set 设置一键起量: 用来启动或关停一键起量服务 11 | func Set(ctx context.Context, clt *core.SDKClient, accessToken string, req *v3.SetRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/tools/promotion_raise/set/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/comment_emotion_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CommentEmotionType 评论情感 4 | type CommentEmotionType string 5 | 6 | const ( 7 | // CommentEmotionType_NEGATIVE 负向评论 8 | CommentEmotionType_NEGATIVE CommentEmotionType = "NEGATIVE" 9 | // CommentEmotionType_NEUTRAL 中性评论 10 | CommentEmotionType_NEUTRAL CommentEmotionType = "NEUTRAL" 11 | // CommentEmotionType_POSITIVE: 正向评论 12 | CommentEmotionType_POSITIVE CommentEmotionType = "POSITIVE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/interest_action_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // InterestActionMode 行为兴趣 4 | type InterestActionMode string 5 | 6 | const ( 7 | // InterestActionMode_UNLIMITED 不限 8 | InterestActionMode_UNLIMITED InterestActionMode = "UNLIMITED" 9 | // InterestActionMode_CUSTOM 自定义 10 | InterestActionMode_CUSTOM InterestActionMode = "CUSTOM" 11 | // InterestActionMode_RECOMMEND 系统推荐 12 | InterestActionMode_RECOMMEND InterestActionMode = "RECOMMEND" 13 | ) 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | 26 | .DS_Store 27 | */.DS_Store 28 | test 29 | config.toml 30 | .vim 31 | .idea 32 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/bububa/oceanengine 2 | 3 | go 1.23.0 4 | 5 | require ( 6 | github.com/google/go-cmp v0.7.0 7 | go.opentelemetry.io/otel v1.36.0 8 | go.opentelemetry.io/otel/metric v1.36.0 9 | go.opentelemetry.io/otel/trace v1.36.0 10 | google.golang.org/protobuf v1.36.6 11 | ) 12 | 13 | require ( 14 | github.com/go-logr/logr v1.4.2 // indirect 15 | github.com/go-logr/stdr v1.2.2 // indirect 16 | go.opentelemetry.io/auto/sdk v1.1.0 // indirect 17 | ) 18 | -------------------------------------------------------------------------------- /marketing-api/api/clue/coupon/code_consume.go: -------------------------------------------------------------------------------- 1 | package coupon 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/clue/coupon" 8 | ) 9 | 10 | // CodeConsume 核销券码 11 | func CodeConsume(ctx context.Context, clt *core.SDKClient, accessToken string, req *coupon.CodeConsumeRequest) error { 12 | return clt.Post(ctx, "2/clue/coupon/code/consume/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/advanced_dc_setting.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AdvancedDcSetting 动态创意高级设置 4 | type AdvancedDcSetting string 5 | 6 | const ( 7 | // AdvancedDcSetting_OPTIMIZE_SEARCH_RESULTS_PAGE 优化视频、图片、标题等搜索结果页内容 8 | AdvancedDcSetting_OPTIMIZE_SEARCH_RESULTS_PAGE AdvancedDcSetting = "OPTIMIZE_SEARCH_RESULTS_PAGE" 9 | // AdvancedDcSetting_OPTIMIZE_LANDING_PAGE 优化落地页 10 | AdvancedDcSetting_OPTIMIZE_LANDING_PAGE AdvancedDcSetting = "OPTIMIZE_LANDING_PAGE" 11 | ) 12 | -------------------------------------------------------------------------------- /marketing-api/enum/conversion_ad_match_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ConversionAdMatchType 归因方式 4 | type ConversionAdMatchType = int 5 | 6 | const ( 7 | // ConversionAdMatchType_CLICK 点击归因 8 | ConversionAdMatchType_CLICK ConversionAdMatchType = 0 9 | // ConversionAdMatchType_IMPRESSION 展示归因 10 | ConversionAdMatchType_IMPRESSION ConversionAdMatchType = 1 11 | // ConversionAdMatchType_PLAY 有效播放归因 12 | ConversionAdMatchType_PLAY ConversionAdMatchType = 2 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/external_action_belong.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ExternalActionBelong 线索通来源 4 | type ExternalActionBelong string 5 | 6 | const ( 7 | // BELONG_ADVANCED_CREATIVE 附加创意 8 | BELONG_ADVANCED_CREATIVE ExternalActionBelong = "BELONG_ADVANCED_CREATIVE" 9 | // BELONG_EXTERNAL_URL 落地页 10 | BELONG_EXTERNAL_URL ExternalActionBelong = "BELONG_EXTERNAL_URL" 11 | // BELONG_MICRO_APP 小程序 12 | BELONG_MICRO_APP ExternalActionBelong = "BELONG_MICRO_APP" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/location_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // LocationType 位置类型 4 | type LocationType string 5 | 6 | const ( 7 | // LocationType_CURRENT 正在该地区的用户 8 | LocationType_CURRENT LocationType = "CURRENT" 9 | // LocationType_HOME 居住在该地区的用户 10 | LocationType_HOME LocationType = "HOME" 11 | // LocationType_TRAVEL 到该地区旅行的用户 12 | LocationType_TRAVEL LocationType = "TRAVEL" 13 | // LocationType_ALL 该地区内的所有用户 14 | LocationType_ALL LocationType = "ALL" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/model/tools/abtest/errors.go: -------------------------------------------------------------------------------- 1 | package abtest 2 | 3 | import ( 4 | "strconv" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/util" 7 | ) 8 | 9 | type Error struct { 10 | // TestID 关停失败的实验列表 11 | TestID uint64 `json:"test_ids,omitempty"` 12 | // Message 失败原因 13 | Message string `json:"message,omitempty"` 14 | } 15 | 16 | func (e Error) Error() string { 17 | return util.StringsJoin(e.Message, "(", strconv.FormatUint(e.TestID, 10), ")") 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/model/tools/diagnosis/v3/suggest.go: -------------------------------------------------------------------------------- 1 | package v3 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/model" 5 | "github.com/bububa/oceanengine/marketing-api/model/tools/diagnosis" 6 | ) 7 | 8 | // AdSuggestion 诊断建议 9 | type AdSuggestion struct { 10 | // PromotionID 计划id 11 | PromotionID model.Uint64 `json:"promotion_id,omitempty"` 12 | // SceneList 计划对应的场景列表 13 | SceneList []diagnosis.SuggestScene `json:"scene_list,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/local/clue/life_callback.go: -------------------------------------------------------------------------------- 1 | package clue 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/local/clue" 8 | ) 9 | 10 | // LifeCallback 本地推线索回传 11 | func LifeCallback(ctx context.Context, clt *core.SDKClient, accessToken string, req *clue.LifeCallbackRequest) error { 12 | return clt.PostAPI(ctx, "2/tools/clue/life/callback/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/enterprise/operation_type.go: -------------------------------------------------------------------------------- 1 | package enterprise 2 | 3 | // OperationType 企业号推广操作类型 4 | type OperationType string 5 | 6 | const ( 7 | // OperationType_LIVE 直播开始 8 | OperationType_LIVE OperationType = "LIVE" 9 | // OperationType_VIDEO 发布视频 10 | OperationType_VIDEO OperationType = "VIDEO" 11 | // OperationType_DOU 开启DOU+推广 12 | OperationType_DOU OperationType = "DOU" 13 | // OperationType_AD 开启广告投放 14 | OperationType_AD OperationType = "AD" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/union_video_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // UnionVideoType 穿山甲视频创意类型 4 | type UnionVideoType string 5 | 6 | const ( 7 | // UnionVideoType_ORIGINAL_VIDEO 原生视频 8 | UnionVideoType_ORIGINAL_VIDEO UnionVideoType = "ORIGINAL_VIDEO" 9 | // UnionVideoType_REWARDED_VIDEO 激励视频 10 | UnionVideoType_REWARDED_VIDEO UnionVideoType = "REWARDED_VIDEO" 11 | // UnionVideoType_SPLASH_VIDEO 穿山甲开屏 12 | UnionVideoType_SPLASH_VIDEO UnionVideoType = "SPLASH_VIDEO" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/privativeword/v3/word.go: -------------------------------------------------------------------------------- 1 | package v3 2 | 3 | // Word 否定词 4 | type Word struct { 5 | // ProjectID 项目id 6 | ProjectID uint64 `json:"project_id,omitempty"` 7 | // PhraseWords 短语否定词,否定词列表不能超过100个否定词,单个否定词长度不能超过30个汉字(或60个英文字符),不能包含emoji,不能为空字符串。 8 | PhraseWords []string `json:"phrase_words,omitempty"` 9 | // PreciseWords 精确否定词,否定词列表不能超过100个否定词,单个否定词长度不能超过30个汉字(或60个英文字符),不能包含emoji,不能为空字符串。 10 | PreciseWords []string `json:"precise_words,omitempty"` 11 | } 12 | -------------------------------------------------------------------------------- /marketing-api/api/conversion/valuable.go: -------------------------------------------------------------------------------- 1 | package conversion 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/conversion" 8 | ) 9 | 10 | // Valuable 客户回传其他渠道全部转化事件,由巨量引擎判定是否属于可应用的助攻事件 11 | func Valuable(ctx context.Context, clt *core.SDKClient, req *conversion.Request) error { 12 | var resp conversion.Response 13 | return clt.AnalyticsPost(ctx, "valuable", req, &resp) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/subscribe/accounts_add.go: -------------------------------------------------------------------------------- 1 | package subscribe 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/subscribe" 8 | ) 9 | 10 | // AccountsAdd 新增 Adv 订阅 11 | func AccountsAdd(ctx context.Context, clt *core.SDKClient, accessToken string, req *subscribe.AccountsAddRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/subscribe/accounts/add/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/comment/stick_on_top.go: -------------------------------------------------------------------------------- 1 | package comment 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/comment" 8 | ) 9 | 10 | // StickOnTop 置顶评论 11 | func StickOnTop(ctx context.Context, clt *core.SDKClient, accessToken string, req *comment.StickOnTopRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/tools/comment/stick_on_top/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/nativeanchor/delete.go: -------------------------------------------------------------------------------- 1 | package nativeanchor 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/nativeanchor" 8 | ) 9 | 10 | // Delete 删除原生锚点 11 | func Delete(ctx context.Context, clt *core.SDKClient, accessToken string, req *nativeanchor.DeleteRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/native_anchor/delete/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/ad_opt_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AdOptStatus 广告计划操作类型 4 | type AdOptStatus string 5 | 6 | const ( 7 | // AdOptStatus_ENABLE 启用 8 | AdOptStatus_ENABLE AdOptStatus = "AD_STATUS_ENABLE" 9 | // AdOptStatus_DISABLE 暂停 10 | AdOptStatus_DISABLE AdOptStatus = "AD_STATUS_DISABLE" 11 | // AdOptStatus_DISABLE_BY_QUOTA 当前账户的在投广告配额达限、因此系统暂停该广告 (若您账户下查询不到该状态的计划,表明您账户下的计划未受影响) 12 | AdOptStatus_DISABLE_BY_QUOTA AdOptStatus = "AD_STATUS_DISABLE_BY_QUOTA" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/tools/aweme/category.go: -------------------------------------------------------------------------------- 1 | package aweme 2 | 3 | // Category 抖音类目信息 4 | type Category struct { 5 | // ID 抖音类目分类 6 | ID uint64 `json:"id,omitempty"` 7 | // CoverNumStr 覆盖人群数 8 | CoverNumStr string `json:"cover_num_str,omitempty"` 9 | // FansNumStr 粉丝数 10 | FansNumStr string `json:"fans_num_str,omitempty"` 11 | // Value 抖音类目名称 12 | Value string `json:"value,omitempty"` 13 | // Children 次级分类信息 14 | Children []Category `json:"children,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /marketing-api/api/clue/coupon/employee_delete.go: -------------------------------------------------------------------------------- 1 | package coupon 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/clue/coupon" 8 | ) 9 | 10 | // EmployeeDelete 删除核销员 11 | func EmployeeDelete(ctx context.Context, clt *core.SDKClient, accessToken string, req *coupon.EmployeeDeleteRequest) error { 12 | return clt.Post(ctx, "2/clue/coupon/employee/delete/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/taskraise/status_stop.go: -------------------------------------------------------------------------------- 1 | package taskraise 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/taskraise" 8 | ) 9 | 10 | // StatusStop 关闭优选起量任务 11 | func StatusStop(ctx context.Context, clt *core.SDKClient, accessToken string, req *taskraise.StatusStopRequest) error { 12 | return clt.Post(ctx, "2/tools/task_raise/status/stop/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/local/follow_life_account_type.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // FollowLifeAccountType 跟进账户类型 4 | type FollowLifeAccountType string 5 | 6 | const ( 7 | // FollowLifeAccountType_HEAD 总部 8 | FollowLifeAccountType_HEAD FollowLifeAccountType = "HEAD" 9 | // FollowLifeAccountType_REGION 区域 10 | FollowLifeAccountType_REGION FollowLifeAccountType = "REGION" 11 | // FollowLifeAccountType_SINGLE 门店 12 | FollowLifeAccountType_SINGLE FollowLifeAccountType = "SINGLE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/local/location_type.go: -------------------------------------------------------------------------------- 1 | package local 2 | 3 | // LocationType 区域内人群定向设置 4 | type LocationType string 5 | 6 | const ( 7 | // LocationType_ALL 该地区的所有用户 8 | LocationType_ALL LocationType = "ALL" 9 | // LocationType_CURRENT 正在该地区的用户(默认值) 10 | LocationType_CURRENT LocationType = "CURRENT" 11 | // LocationType_HOME 居住在该地区的用户 12 | LocationType_HOME LocationType = "HOME" 13 | // LocationType_TRAVEL 到该地区旅行的用户 14 | LocationType_TRAVEL LocationType = "TRAVEL" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/tools/shop_auth.go: -------------------------------------------------------------------------------- 1 | package tools 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/qianchuan/tools" 8 | ) 9 | 10 | // ShopAuth 店铺新客定向授权 11 | // 店铺新客定向授权 12 | func ShopAuth(ctx context.Context, clt *core.SDKClient, accessToken string, req *tools.ShopAuthRequest) error { 13 | return clt.PostAPI(ctx, "v1.0/qianchuan/tools/shop_auth/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/report/asynctask/v3/download.go: -------------------------------------------------------------------------------- 1 | package v3 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | v3 "github.com/bububa/oceanengine/marketing-api/model/report/asynctask/v3" 8 | ) 9 | 10 | // Download 下载任务结果 11 | func Download(ctx context.Context, clt *core.SDKClient, accessToken string, req *v3.DownloadRequest) ([]byte, error) { 12 | return clt.GetBytes(ctx, "v3.0/report/custom/async_task/download/", req, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/rta/status_update.go: -------------------------------------------------------------------------------- 1 | package rta 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/rta" 8 | ) 9 | 10 | // StatusUpdate 批量启停账户下RTA策略 11 | // 修改RTA策略状态 12 | func StatusUpdate(ctx context.Context, clt *core.SDKClient, accessToken string, req *rta.StatusUpdateRequest) error { 13 | return clt.Post(ctx, "2/tools/rta/status_update/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/enum/creative_op_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CreativeOptStatus 创意操作状态 4 | type CreativeOptStatus string 5 | 6 | const ( 7 | // CREATIVE_OP_STATUS_ENABLE 启用 8 | CREATIVE_OP_STATUS_ENABLE CreativeOptStatus = "CREATIVE_STATUS_ENABLE" 9 | // CREATIVE_OP_STATUS_DISABLE 暂停 10 | CREATIVE_OP_STATUS_DISABLE CreativeOptStatus = "CREATIVE_STATUS_DISABLE" 11 | // CREATIVE_OP_STATUS_DELETE 删除 12 | CREATIVE_OP_STATUS_DELETE CreativeOptStatus = "CREATIVE_STATUS_DELETE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/live_platform_tag.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // LivePlatformTag 直播带货平台精选人群包 4 | type LivePlatformTag string 5 | 6 | const ( 7 | // LivePlatformTag_LARGE_FANSCOUNT 高关注人群 8 | LivePlatformTag_LARGE_FANSCOUNT LivePlatformTag = "LARGE_FANSCOUNT" 9 | // LivePlatformTag_ABNORMAL_ACTIVE 高活跃人群 10 | LivePlatformTag_ABNORMAL_ACTIVE LivePlatformTag = "ABNORMAL_ACTIVE" 11 | // LivePlatformTag_AWEME_FANS 抖音号粉丝 12 | LivePlatformTag_AWEME_FANS LivePlatformTag = "AWEME_FANS" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/ad_opt_status.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // AdOptStatus 广告计划操作状态 4 | type AdOptStatus string 5 | 6 | const ( 7 | // AdOptStatus_ENABLE 启用 8 | AdOptStatus_ENABLE AdOptStatus = "ENABLE" 9 | // AdOptStatus_DISABLE 暂停 10 | AdOptStatus_DISABLE AdOptStatus = "DISABLE" 11 | // AdOptStatus_DELETE 删除 12 | AdOptStatus_DELETE AdOptStatus = "DELETE" 13 | // AdOptStatus_SYSTEM_DISABLE 系统暂停 14 | AdOptStatus_SYSTEM_DISABLE AdOptStatus = "SYSTEM_DISABLE" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/weekday.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // Weekday 自然周 4 | type Weekday string 5 | 6 | const ( 7 | // MONDAY 周一 8 | MONDAY Weekday = "MONDAY" 9 | // TUESDAY 周二 10 | TUESDAY Weekday = "TUESDAY" 11 | // WEDNESDAY 周三 12 | WEDNESDAY Weekday = "WEDNESDAY" 13 | // THURSDAY 周四 14 | THURSDAY Weekday = "THURSDAY" 15 | // FRIDAY 周五 16 | FRIDAY Weekday = "FRIDAY" 17 | // SATURDAY 周六 18 | SATURDAY Weekday = "SATURDAY" 19 | // SUNDAY 周日 20 | SUNDAY Weekday = "SUNDAY" 21 | ) 22 | -------------------------------------------------------------------------------- /marketing-api/api/subscribe/accounts_remove.go: -------------------------------------------------------------------------------- 1 | package subscribe 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/subscribe" 8 | ) 9 | 10 | // AccountsRemove 删除 Adv 订阅 11 | func AccountsRemove(ctx context.Context, clt *core.SDKClient, accessToken string, req *subscribe.AccountsRemoveRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/subscribe/accounts/remove/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/wechat_audit_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // WechatAuditStatus 微信小程序审核状态 4 | type WechatAuditStatus string 5 | 6 | const ( 7 | // WechatAuditStatus_AUDIT_ACCEPTED 审核通过 8 | WechatAuditStatus_AUDIT_ACCEPTED WechatAuditStatus = "AUDIT_ACCEPTED" 9 | // WechatAuditStatus_AUDITING 审核中 10 | WechatAuditStatus_AUDITING WechatAuditStatus = "AUDITING" 11 | // WechatAuditStatus_AUDIT_REJECTED 审核拒绝 12 | WechatAuditStatus_AUDIT_REJECTED WechatAuditStatus = "AUDIT_REJECTED" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/dpa/meta.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | // Meta 商品库元信息 4 | type Meta struct { 5 | // Status 元信息状态 6 | Status int `json:"status,omitempty"` 7 | // Name 元信息名称 8 | Name string `json:"name,omitempty"` 9 | // Title 元信息头 10 | Title string `json:"title,omitempty"` 11 | // MediaType 元信息媒体类型 12 | MediaType int `json:"media_type,omitempty"` 13 | // FieldGroup 分组 14 | FieldGroup string `json:"field_group,omitempty"` 15 | // Type 字段类型 16 | Type string `json:"type,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/model/tools/appmanagement/upload_task.go: -------------------------------------------------------------------------------- 1 | package appmanagement 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/enum" 4 | 5 | // UploadTask 异步上传任务 6 | type UploadTask struct { 7 | // UploadID 上传文件id 8 | UploadID uint64 `json:"upload_id,omitempty"` 9 | // Status 任务状态,枚举值: 10 | // FAILED 失败、RUNNING 执行中 、SUCCESS 成功、WAITING 待执行 11 | Status enum.AppUploadTaskStatus `json:"status,omitempty"` 12 | // Message 任务信息 13 | Message string `json:"message,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/enum/audience_gender.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AudienceGender 定向性别 4 | type AudienceGender string 5 | 6 | const ( 7 | // AudienceGender_NONE 不限 8 | AudienceGender_NONE AudienceGender = "NONE" 9 | // AudienceGender_UNLIMITED 不限 10 | AudienceGender_UNLIMITED AudienceGender = "GENDER_UNLIMITED" 11 | // AudienceGender_MALE 男 12 | AudienceGender_MALE AudienceGender = "GENDER_MALE" 13 | // AudienceGender_FEMALE 女 14 | AudienceGender_FEMALE AudienceGender = "GENDER_FEMALE" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/datasource_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // DataSourceStatus 人群数据更新状态 4 | type DataSourceStatus int 5 | 6 | const ( 7 | // DataSourceStatus_CREATED 新建 8 | DataSourceStatus_CREATED DataSourceStatus = 0 9 | // DataSourceStatus_PARSING 处理中 10 | DataSourceStatus_PARSING DataSourceStatus = 1 11 | // DataSourceStatus_COMPLETED 生效 12 | DataSourceStatus_COMPLETED DataSourceStatus = 2 13 | // DataSourceStatus_FAILED 失败 14 | DataSourceStatus_FAILED DataSourceStatus = 3 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/ad/keywords_update.go: -------------------------------------------------------------------------------- 1 | package ad 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/qianchuan/ad" 8 | ) 9 | 10 | // KeywordsUpdate 更新关键词 11 | // 用于更新搜索计划关键词 12 | func KeywordsUpdate(ctx context.Context, clt *core.SDKClient, accessToken string, req *ad.KeywordsUpdateRequest) error { 13 | return clt.Post(ctx, "v1.0/qianchuan/ad/keywords/update/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/enum/abtest_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AbTestStatus 根据实验状态过滤,允许值:,,,"FAILED":不满足实验条件。 4 | type AbTestStatus string 5 | 6 | const ( 7 | // AbTestStatus_CREATED 排期中 8 | AbTestStatus_CREATED AbTestStatus = "CREATED" 9 | // AbTestStatus_PROCESSING 进行中 10 | AbTestStatus_PROCESSING AbTestStatus = "PROCESSING" 11 | // AbTestStatus_FINISH 结束 12 | AbTestStatus_FINISH AbTestStatus = "FINISH" 13 | // AbTestStatus_FAILED 不满足实验条件 14 | AbTestStatus_FAILED AbTestStatus = "FAILED" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/activate_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ActivateType 新用户使用时间 4 | type ActivateType string 5 | 6 | const ( 7 | // ActivateType_WITH_IN_A_MONTH 一个月以内 8 | ActivateType_WITH_IN_A_MONTH ActivateType = "WITH_IN_A_MONTH" 9 | // ActivateType_ONE_MONTH_2_THREE_MONTH 一个月到三个月 10 | ActivateType_ONE_MONTH_2_THREE_MONTH ActivateType = "ONE_MONTH_2_THREE_MONTH" 11 | // ActivateType_THREE_MONTH_EAILIER 三个月或更早 12 | ActivateType_THREE_MONTH_EAILIER ActivateType = "THREE_MONTH_EAILIER" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/api/eventmanager/track_url_create.go: -------------------------------------------------------------------------------- 1 | package eventmanager 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/eventmanager" 8 | ) 9 | 10 | // TrackURLCreate 事件资产下创建监测链接组 11 | func TrackURLCreate(ctx context.Context, clt *core.SDKClient, accessToken string, req *eventmanager.TrackURLCreateRequest) error { 12 | return clt.Post(ctx, "2/event_manager/track_url/create/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/eventmanager/track_url_update.go: -------------------------------------------------------------------------------- 1 | package eventmanager 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/eventmanager" 8 | ) 9 | 10 | // TrackURLUpdate 事件资产下更新监测链接组 11 | func TrackURLUpdate(ctx context.Context, clt *core.SDKClient, accessToken string, req *eventmanager.TrackURLUpdateRequest) error { 12 | return clt.Post(ctx, "2/event_manager/track_url/update/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/keywordsbidratio/create.go: -------------------------------------------------------------------------------- 1 | package keywordsbidratio 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/keywordsbidratio" 8 | ) 9 | 10 | // Create 设置优词提量系数和生效维度 11 | func Create(ctx context.Context, clt *core.SDKClient, accessToken string, req *keywordsbidratio.CreateRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/tools/keywords_bid_ratio/create/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/keywordsbidratio/delete.go: -------------------------------------------------------------------------------- 1 | package keywordsbidratio 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/keywordsbidratio" 8 | ) 9 | 10 | // Delete 删除优词提量系数和生效维度 11 | func Delete(ctx context.Context, clt *core.SDKClient, accessToken string, req *keywordsbidratio.DeleteRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/tools/keywords_bid_ratio/delete/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/keywordsbidratio/update.go: -------------------------------------------------------------------------------- 1 | package keywordsbidratio 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/keywordsbidratio" 8 | ) 9 | 10 | // Update 更新优词提量系数和生效维度 11 | func Update(ctx context.Context, clt *core.SDKClient, accessToken string, req *keywordsbidratio.UpdateRequest) error { 12 | return clt.PostAPI(ctx, "v3.0/tools/keywords_bid_ratio/update/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/aweme_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AwemeStatus 抖音号带货状态 4 | type AwemeStatus string 5 | 6 | const ( 7 | // AwemeStatus_NORMAL 可以正常投放 8 | AwemeStatus_NORMAL AwemeStatus = "NORMAL" 9 | // AwemeStatus_ANCHOR_FORBID 带货口碑分过低,暂时无法创建计划 10 | AwemeStatus_ANCHOR_FORBID AwemeStatus = "ANCHOR_FORBID" 11 | // AwemeStatus_ANCHOR_REACH_UPPER_LIMIT_TODAY 带货分过低或暂无带货分,可以创建计划,但无法产生消耗,带货分恢复正常后可正常消耗 12 | AwemeStatus_ANCHOR_REACH_UPPER_LIMIT_TODAY AwemeStatus = "ANCHOR_REACH_UPPER_LIMIT_TODAY" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/flow_control_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // FlowControlMode 竞价策略 4 | type FlowControlMode string 5 | 6 | const ( 7 | // FLOW_CONTROL_MODE_FAST 优先跑量(对应CPC的加速投放 8 | FLOW_CONTROL_MODE_FAST FlowControlMode = "FLOW_CONTROL_MODE_FAST" 9 | // FLOW_CONTROL_MODE_SMOOTH 优先低成本(对应CPC的标准投放) 10 | FLOW_CONTROL_MODE_SMOOTH FlowControlMode = "FLOW_CONTROL_MODE_SMOOTH" 11 | // FLOW_CONTROL_MODE_BALANCE 均衡投放(新增字段) 12 | FLOW_CONTROL_MODE_BALANCE FlowControlMode = "FLOW_CONTROL_MODE_BALANCE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/marketing_scene.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // MarketingScene 营销场景 4 | type MarketingScene string 5 | 6 | const ( 7 | // MarketingScene_ALL 全部 8 | MarketingScene_ALL MarketingScene = "ALL" 9 | // MarketingScene_FEED 通投广告 10 | MarketingScene_FEED MarketingScene = "FEED" 11 | // MarketingScene_SEARCH 搜索广告 12 | MarketingScene_SEARCH MarketingScene = "SEARCH" 13 | // MarketingScene_SHOPPING_MALL 商城广告 14 | MarketingScene_SHOPPING_MALL MarketingScene = "SHOPPING_MALL" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/material/ad_material_delete.go: -------------------------------------------------------------------------------- 1 | package material 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/qianchuan/material" 8 | ) 9 | 10 | // AdMaterialDelete 删除广告创意 11 | func AdMaterialDelete(ctx context.Context, clt *core.SDKClient, accessToken string, req *material.AdMaterialDeleteRequest) error { 12 | return clt.Post(ctx, "v1.0/qianchuan/ad/material/delete/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/rta/set_scope.go: -------------------------------------------------------------------------------- 1 | package rta 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/rta" 8 | ) 9 | 10 | // SetScope 设置账户下RTA策略生效范围 11 | // 设置广告账户下某个RTA策略的生效范围,设置一个新的RTA策略时,默认为停用状态,需要继续调用修改RTA策略状态 12 | func SetScope(ctx context.Context, clt *core.SDKClient, accessToken string, req *rta.SetScopeRequest) error { 13 | return clt.Post(ctx, "2/tools/rta/set_scope/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/enum/campaign_dpa.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // CampaignDPA 广告组商品类型 4 | type CampaignDPA string 5 | 6 | const ( 7 | // CAMPAIGN_DPA_DEFAULT_NOT 非 DPA 推广目的 8 | CAMPAIGN_DPA_DEFAULT_NOT CampaignDPA = "CAMPAIGN_DPA_DEFAULT_NOT" 9 | // CAMPAIGN_DPA_SINGLE_DELIVERY DPA 推广目的,SDPA 单商品推广 10 | CAMPAIGN_DPA_SINGLE_DELIVERY CampaignDPA = "CAMPAIGN_DPA_SINGLE_DELIVERY" 11 | // CAMPAIGN_DPA_MULTI_DELIVERY DPA 推广目的,DPA 商品推广 12 | CAMPAIGN_DPA_MULTI_DELIVERY CampaignDPA = "CAMPAIGN_DPA_MULTI_DELIVERY" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/explain_status.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // ExplainStatus 商品状态 4 | type ExplainStatus string 5 | 6 | const ( 7 | // ExplainStatus_ALL 全部 8 | ExplainStatus_ALL ExplainStatus = "ALL" 9 | // ExplainStatus_BEINGEXPLAIN 讲解中 10 | ExplainStatus_BEINGEXPLAIN ExplainStatus = "BEINGEXPLAIN" 11 | // ExplainStatus_HASEXPLAIN 已讲解 12 | ExplainStatus_HASEXPLAIN ExplainStatus = "HASEXPLAIN" 13 | // ExplainStatus_UNEXPLAIN 未讲解 14 | ExplainStatus_UNEXPLAIN ExplainStatus = "UNEXPLAIN" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/model/tools/taskraise/status_stop.go: -------------------------------------------------------------------------------- 1 | package taskraise 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | // StatusStopRequest 关闭优选起量任务 8 | type StatusStopRequest struct { 9 | // AdvertiserID 广告主id 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // ReportID 任务id 12 | ReportID uint64 `json:"report_id,omitempty"` 13 | } 14 | 15 | // Encode implement PostRequest interface 16 | func (r StatusStopRequest) Encode() []byte { 17 | data, _ := json.Marshal(r) 18 | return data 19 | } 20 | -------------------------------------------------------------------------------- /marketing-api/api/advertiser/qualification_create.go: -------------------------------------------------------------------------------- 1 | package advertiser 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/advertiser" 8 | ) 9 | 10 | // QualificationCreate 批量上传投放资质 11 | func QualificationCreate(ctx context.Context, clt *core.SDKClient, accessToken string, req *advertiser.QualificationCreateRequest) error { 12 | return clt.Post(ctx, "2/advertiser/qualification/create_v2/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/enum/enterprise/comment_source.go: -------------------------------------------------------------------------------- 1 | package enterprise 2 | 3 | // CommentSource 流量来源 4 | type CommentSource string 5 | 6 | const ( 7 | // FROM_NATURAL 自然流量 8 | FROM_NATURAL CommentSource = "FROM_NATURAL" 9 | // FROM_DOUPLUS Dou+ 10 | FROM_DOUPLUS CommentSource = "FROM_DOUPLUS" 11 | // FROM_PERFORM 竞价广告 12 | FROM_PERFORM CommentSource = "FROM_PERFORM" 13 | // FROM_BRAND 品牌广告 14 | FROM_BRAND CommentSource = "FROM_BRAND" 15 | // FROM_OTHER 其他流量 16 | FROM_OTHER CommentSource = "FROM_OTHER" 17 | ) 18 | -------------------------------------------------------------------------------- /marketing-api/api/track/active.go: -------------------------------------------------------------------------------- 1 | package track 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/track" 8 | ) 9 | 10 | // Active API上报数据(new) 11 | func Active(ctx context.Context, clt *core.SDKClient, req *track.ActiveRequest) (int, error) { 12 | var resp track.Response 13 | if err := clt.TrackActive(ctx, req, &resp); err != nil && resp.Code != 128 { 14 | return resp.Code, err 15 | } 16 | return resp.Code, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/enum/schedule_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ScheduleType 计划投放时间类型 4 | type ScheduleType string 5 | 6 | const ( 7 | // SCHEDULE_7_DAYS 7日稳投 【新增】 8 | SCHEDULE_7_DAYS ScheduleType = "SCHEDULE_7_DAYS" 9 | // SCHEDULE_FROM_NOW 从现在开始一直投放 10 | SCHEDULE_FROM_NOW ScheduleType = "SCHEDULE_FROM_NOW" 11 | // SCHEDULE_START_END 选择起始时间 12 | SCHEDULE_START_END ScheduleType = "SCHEDULE_START_END" 13 | // SCHEDULE_TIME_FIXEDRANGE 固定时长 14 | SCHEDULE_TIME_FIXEDRANGE ScheduleType = "SCHEDULE_TIME_FIXEDRANGE" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/model/tools/adraise/v3/stop.go: -------------------------------------------------------------------------------- 1 | package v3 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // StopRequest 关停一键起量 API Request 8 | type StopRequest struct { 9 | // AdvertiserID 广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // PromotionIDs 广告id 12 | PromotionIDs []uint64 `json:"promotion_ids,omitempty"` 13 | } 14 | 15 | // Encode implement PostRequest interface 16 | func (r StopRequest) Encode() []byte { 17 | return util.JSONMarshal(r) 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/enum/play_material_image_mode.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // PlayMaterialImageMode 素材类型 4 | type PlayMaterialImageMode string 5 | 6 | const ( 7 | // IMAGE_MODE_TRIAL_PLAY 横屏试玩素材 8 | IMAGE_MODE_TRIAL_PLAY PlayMaterialImageMode = "IMAGE_MODE_TRIAL_PLAY" 9 | // IMAGE_MODE_TRIAL_PLAY_VERTICAL 竖屏试玩素材 10 | IMAGE_MODE_TRIAL_PLAY_VERTICAL PlayMaterialImageMode = "IMAGE_MODE_TRIAL_PLAY_VERTICAL" 11 | // IMAGE_MODE_INSTANT_PLAY 直玩素材 12 | IMAGE_MODE_INSTANT_PLAY PlayMaterialImageMode = "IMAGE_MODE_INSTANT_PLAY" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/api/advertiser/avatar_submit.go: -------------------------------------------------------------------------------- 1 | package advertiser 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/advertiser" 8 | ) 9 | 10 | // AvatarSubmit 更新广告主账户头像 11 | func AvatarSubmit(ctx context.Context, clt *core.SDKClient, accessToken string, req *advertiser.AvatarSubmitRequest) error { 12 | // var resp advertiser.AvatarSubmitResponse 13 | return clt.Post(ctx, "2/advertiser/avatar/submit/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/local/promotion/update.go: -------------------------------------------------------------------------------- 1 | package promotion 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/local/promotion" 8 | ) 9 | 10 | // Update 更新广告 11 | // 本接口为全量更新,每次更新会对所有参数进行调整,若希望进行局部更新,请先通过获取广告列表接口前置获取广告的详情信息再进行更新 12 | func Update(ctx context.Context, clt *core.SDKClient, accessToken string, req *promotion.UpdateRequest) error { 13 | return clt.PostAPI(ctx, "v3.0/local/promotion/update/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/aweme/order_budget_add.go: -------------------------------------------------------------------------------- 1 | package aweme 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/qianchuan/aweme" 8 | ) 9 | 10 | // OrderBudgetAdd 追加随心推订单预算 11 | // 可以使用该接口进行投放中订单的续费和续期操作 12 | func OrderBudgetAdd(ctx context.Context, clt *core.SDKClient, accessToken string, req *aweme.OrderBudgetAddRequest) error { 13 | return clt.Post(ctx, "v1.0/qianchuan/aweme/order/budget/add/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/model/clue/smartphone/delete.go: -------------------------------------------------------------------------------- 1 | package smartphone 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // DeleteRequest 删除智能电话 API Request 8 | type DeleteRequest struct { 9 | // AdvertiserID 广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // InstanceID 智能电话ID 12 | InstanceID uint64 `json:"instance_id,omitempty"` 13 | } 14 | 15 | // Encode implenent PostRequest interface 16 | func (r DeleteRequest) Encode() []byte { 17 | return util.JSONMarshal(r) 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/model/qianchuan/ad/channel_product.go: -------------------------------------------------------------------------------- 1 | package ad 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/enum/qianchuan" 4 | 5 | // ChannelProduct 渠道品信息 6 | type ChannelProduct struct { 7 | // ProductID 商品id,需要与product_ids保持一致 8 | ProductID uint64 `json:"product_id,omitempty"` 9 | // ChannelID 渠道ID 10 | ChannelID uint64 `json:"channel_id,omitempty"` 11 | // ChannelType 渠道类型 12 | // 达人自播 STAR_SELL 13 | // 商家自卖 SHOP_SELL 14 | ChannelType qianchuan.ProductChannelType `json:"channel_type,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /marketing-api/api/agent/info.go: -------------------------------------------------------------------------------- 1 | package agent 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/agent" 8 | ) 9 | 10 | // Info 获取代理商信息 11 | func Info(ctx context.Context, clt *core.SDKClient, accessToken string, req *agent.InfoRequest) ([]agent.Info, error) { 12 | var resp agent.InfoResponse 13 | if err := clt.Get(ctx, "2/agent/info/", req, &resp, accessToken); err != nil { 14 | return nil, err 15 | } 16 | return resp.Data, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/api/dmp/customaudience/delete.go: -------------------------------------------------------------------------------- 1 | package customaudience 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/dmp/customaudience" 8 | ) 9 | 10 | // Delete 删除人群包 11 | // 通过此接口可做人群包删除操作。已经在计划中使用的人群包不能被删除,只有该计划被删除后,人群包才可以删除。 12 | func Delete(ctx context.Context, clt *core.SDKClient, accessToken string, req *customaudience.DeleteRequest) error { 13 | return clt.Post(ctx, "2/dmp/custom_audience/delete/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/enum/bid_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // BidType 竞价策略 4 | type BidType string 5 | 6 | const ( 7 | // BidType_CUSTOM 稳定成本 8 | BidType_CUSTOM BidType = "CUSTOM" 9 | // BidType_NO_BID 最大转化投放 10 | BidType_NO_BID BidType = "BidType_NO_BID" 11 | // BidType_UPPER_CONTROL 控制成本上限 12 | BidType_UPPER_CONTROL BidType = "UPPER_CONTROL" 13 | // BidType_CONSERVATIVE 放量投放 14 | BidType_CONSERVATIVE BidType = "CONSERVATIVE" 15 | // BidType_EXPLORE_UPGRADE 稳定成本-升级版 16 | BidType_EXPLORE_UPGRADE BidType = "EXPLORE_UPGRADE" 17 | ) 18 | -------------------------------------------------------------------------------- /marketing-api/enum/qianchuan/learing_status.go: -------------------------------------------------------------------------------- 1 | package qianchuan 2 | 3 | // LearningStatus 学习期状态 4 | type LearningStatus string 5 | 6 | const ( 7 | // LearningStatus_LEARNING 学习期 8 | LearningStatus_LEARNING LearningStatus = "LEARNING" 9 | // LearningStatus_LEARNED 学习期结束 10 | LearningStatus_LEARNED LearningStatus = "LEARNING" 11 | // LearningStatus_LEARN_FAILED 学习期失败 12 | LearningStatus_LEARN_FAILED LearningStatus = "LEARN_FAILED" 13 | // LearningStatus_DEFAULT 无学习期状态 14 | LearningStatus_DEFAULT LearningStatus = "DEFAULT" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/rebate_calc_policy_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // RebateCalcPolicyType 政策类型 4 | type RebateCalcPolicyType string 5 | 6 | const ( 7 | // RebateCalcPolicyType_NORMAL_POLICY 综代政策 8 | RebateCalcPolicyType_NORMAL_POLICY RebateCalcPolicyType = "NORMAL_POLICY" 9 | // RebateCalcPolicyType_EXCLUSIVE_POLICY 优代政策 10 | RebateCalcPolicyType_EXCLUSIVE_POLICY RebateCalcPolicyType = "EXCLUSIVE_POLICY" 11 | // RebateCalcPolicyType_CAR_POLICY 汽车政策 12 | RebateCalcPolicyType_CAR_POLICY RebateCalcPolicyType = "CAR_POLICY" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/region_level.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // RegionLevel 地域层级 4 | type RegionLevel string 5 | 6 | const ( 7 | // REGION_LEVEL_PROVINCE 省级 8 | REGION_LEVEL_PROVINCE RegionLevel = "REGION_LEVEL_PROVINCE" 9 | // REGION_LEVEL_CITY 市级 10 | REGION_LEVEL_CITY RegionLevel = "REGION_LEVEL_CITY" 11 | // REGION_LEVEL_DISTRICT 区县级 12 | REGION_LEVEL_DISTRICT RegionLevel = "REGION_LEVEL_DISTRICT" 13 | // REGION_LEVEL_BUSINESS_DISTRICT 商业区级 14 | REGION_LEVEL_BUSINESS_DISTRICT RegionLevel = "REGION_LEVEL_BUSINESS_DISTRICT" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/model/clue/coupon/employee_delete.go: -------------------------------------------------------------------------------- 1 | package coupon 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // EmployeeDeleteRequest 删除核销员 API Request 8 | type EmployeeDeleteRequest struct { 9 | // AdvertiserID 广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // List 核销员列表 12 | List []Employee `json:"list,omitempty"` 13 | } 14 | 15 | // Encode implement PostRequest interface 16 | func (r EmployeeDeleteRequest) Encode() []byte { 17 | return util.JSONMarshal(r) 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/model/keyword/response.go: -------------------------------------------------------------------------------- 1 | package keyword 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/model" 4 | 5 | // Response 关键词 API Response 6 | type Response struct { 7 | model.BaseResponse 8 | // Data json返回值 9 | Data *ResponseData `json:"data,omitempty"` 10 | } 11 | 12 | // ResponseData json返回值 13 | type ResponseData struct { 14 | // ErrorList 添加失败的搜索关键词列表 15 | ErrorList []Keyword `json:"error_list,omitempty"` 16 | // SuccessList 添加成功的搜索关键词列表 17 | SuccessList []Keyword `json:"success_list,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/model/keyword/v3/delete.go: -------------------------------------------------------------------------------- 1 | package v3 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // DeleteRequest 删除关键词 API Request 8 | type DeleteRequest struct { 9 | // AdvertiserID 广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // KeywordIDs 待删除的关键词id列表,一次最多批量删除100个关键词 12 | KeywordIDs []uint64 `json:"keyword_ids,omitempty"` 13 | } 14 | 15 | // Encode implement PostRequest interface 16 | func (r DeleteRequest) Encode() []byte { 17 | return util.JSONMarshal(r) 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/model/v3/project/delete.go: -------------------------------------------------------------------------------- 1 | package project 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // DeleteRequest 批量删除项目 API Request 8 | type DeleteRequest struct { 9 | // AdvertiserID 广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // ProjectIDs 项目ID集合,list长度限制1~10 12 | ProjectIDs []uint64 `json:"project_ids,omitempty"` 13 | } 14 | 15 | // Encode implement PostRequest interface 16 | func (r DeleteRequest) Encode() []byte { 17 | return util.JSONMarshal(r) 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/api/dmp/customaudience/copy.go: -------------------------------------------------------------------------------- 1 | package customaudience 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/dmp/customaudience" 8 | ) 9 | 10 | // Copy 推送dmp人群包到云图账户 11 | // 通过此接口,将DMP人群包复制一个,并推送至对应的云图账号内,可在人群模块自定义分析查看和应用(该人群不支持再次推送) 12 | func Copy(ctx context.Context, clt *core.SDKClient, accessToken string, req *customaudience.CopyRequest) error { 13 | return clt.Post(ctx, "2/dmp/custom_audience/copy/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/enum/ai_repair_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AIRepairStatus 采纳状态 4 | type AIRepairStatus string 5 | 6 | const ( 7 | // AIRepairStatus_SUCCESS 采纳成功 8 | AIRepairStatus_SUCCESS AIRepairStatus = "SUCCESS" 9 | // AIRepairStatus_FAILED 采纳失败 10 | AIRepairStatus_FAILED AIRepairStatus = "FAILED" 11 | // AIRepairStatus_PROCESSING 采纳中 12 | AIRepairStatus_PROCESSING AIRepairStatus = "PROCESSING" 13 | // AIRepairStatus_NO_TASK 采纳任务不存在,可能为未创建采纳任务/已过期/广告已删除/广告下素材已删除 14 | AIRepairStatus_NO_TASK AIRepairStatus = "NO_TASK" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/audience_level.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AudienceLevel 类目词级别/抖音达人级别 4 | type AudienceLevel string 5 | 6 | const ( 7 | //FIRST_LEVEL 一级类目词/一级达人分类 8 | FIRST_LEVEL AudienceLevel = "FIRST_LEVEL" 9 | // SECOND_LEVEL 二级类目词/二级达人分类 10 | SECOND_LEVEL AudienceLevel = "SECOND_LEVEL" 11 | // THIRD_LEVEL 三级类目词/三级达人分类 12 | THIRD_LEVEL AudienceLevel = "THIRD_LEVEL" 13 | // FOURTH_LEVEL 四级类目词 14 | FOURTH_LEVEL AudienceLevel = "FOURTH_LEVEL" 15 | // KEYWORD_AWEME 关键词/抖音达人 16 | KEYWORD_AWEME AudienceLevel = "KEYWORD_AWEME" 17 | ) 18 | -------------------------------------------------------------------------------- /marketing-api/enum/material_policy_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MaterialPolicyType 素材政策类型 4 | type MaterialPolicyType string 5 | 6 | const ( 7 | // VALID_ORIGINAL_MATERIAL_RATE 有效首投占比 8 | VALID_ORIGINAL_MATERIAL_RATE MaterialPolicyType = "VALID_ORIGINAL_MATERIAL_RATE" 9 | // VALID_FIRST_EFFECTIVE_MATERIAL 有效首发素材 10 | VALID_FIRST_EFFECTIVE_MATERIAL MaterialPolicyType = "VALID_FIRST_EFFECTIVE_MATERIAL" 11 | // VALID_HIGH_QUALITY_MATERIAL 有效优质素材 12 | VALID_HIGH_QUALITY_MATERIAL MaterialPolicyType = "VALID_HIGH_QUALITY_MATERIAL" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/businessplatform/partner_organization.go: -------------------------------------------------------------------------------- 1 | package businessplatform 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/enum" 4 | 5 | // PartnerOrganization 发起合作组织请求的组织 6 | type PartnerOrganization struct { 7 | // ID 发起合作组织请求的组织id 8 | ID uint64 `json:"partner_organization_id,omitempty"` 9 | // Status 合作状态 10 | // 枚举值:BOUND(已绑定)、BINDING(绑定中)、INVALID(失效)、DELETED(删除) 11 | Status enum.PartnerOrganizationStatus `json:"status,omitempty"` 12 | // Remark 备注,合作组织备注信息 13 | Remark string `json:"remark,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/uni_promotion/ad_name_update.go: -------------------------------------------------------------------------------- 1 | package unipromotion 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | unipromotion "github.com/bububa/oceanengine/marketing-api/model/qianchuan/uni_promotion" 8 | ) 9 | 10 | // AdNameUpdate 更新商品全域推广计划名称 11 | func AdNameUpdate(ctx context.Context, clt *core.SDKClient, accessToken string, req *unipromotion.AdNameUpdateRequest) error { 12 | return clt.Post(ctx, "v1.0/qianchuan/uni_promotion/ad/name/update/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/rta/get.go: -------------------------------------------------------------------------------- 1 | package rta 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/rta" 8 | ) 9 | 10 | // Get 获取可用的RTA策略 11 | func Get(ctx context.Context, clt *core.SDKClient, accessToken string, req *rta.GetRequest) ([]rta.RtaInfo, error) { 12 | var resp rta.GetResponse 13 | if err := clt.Get(ctx, "2/tools/rta/get/", req, &resp, accessToken); err != nil { 14 | return nil, err 15 | } 16 | return resp.Data.List, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/enum/marketing_purpose.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // MarketingPurpose 营销目的 4 | type MarketingPurpose string 5 | 6 | const ( 7 | // MarketingPurpose_UNLIMITED 不限 8 | MarketingPurpose_UNLIMITED = "UNLIMITED" 9 | // MarketingPurpose_CONVERSION 行动转化 10 | MarketingPurpose_CONVERSION MarketingPurpose = "CONVERSION" 11 | // MarketingPurpose_INTENTION 用户意向 12 | MarketingPurpose_INTENTION MarketingPurpose = "INTENTION" 13 | // MarketingPurpose_ACKNOWLEDGE 品牌认知 14 | MarketingPurpose_ACKNOWLEDGE MarketingPurpose = "ACKNOWLEDGE" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/playable_orientation.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // PlayableOrientation 试玩素材方向 4 | type PlayableOrientation string 5 | 6 | const ( 7 | // ORIENTATION_BOTH 横竖屏均适配 8 | ORIENTATION_BOTH PlayableOrientation = "BOTH" 9 | // ORIENTATION_PORTRAIT 只适配竖屏 10 | ORIENTATION_PORTRAIT PlayableOrientation = "PORTRAIT" 11 | // ORIENTATION_VALIDATE_SUCCESS 校验通过 12 | ORIENTATION_VALIDATE_SUCCESS PlayableOrientation = "VALIDATE_SUCCESS" 13 | // ORIENTATION_LANDSCAPE 只适配横屏 14 | ORIENTATION_LANDSCAPE PlayableOrientation = "LANDSCAPE" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/model/dmp/customaudience/delete.go: -------------------------------------------------------------------------------- 1 | package customaudience 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // DeleteRequest 删除人群包 8 | type DeleteRequest struct { 9 | // AdvertiserID 人群包所属广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // CustomAudienceID 人群包ID 12 | CustomAudienceID uint64 `json:"custom_audience_id,omitempty"` 13 | } 14 | 15 | // Encode implement PostRequest interface 16 | func (r DeleteRequest) Encode() []byte { 17 | return util.JSONMarshal(r) 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/model/v3/promotion/delete.go: -------------------------------------------------------------------------------- 1 | package promotion 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // DeleteRequest 批量删除广告 API Request 8 | type DeleteRequest struct { 9 | // AdvertiserID 广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // PromotionIDs 广告ID集合,list长度限制1~10 12 | PromotionIDs []uint64 `json:"promotion_ids,omitempty"` 13 | } 14 | 15 | // Encode implement PostRequest interface 16 | func (r DeleteRequest) Encode() []byte { 17 | return util.JSONMarshal(r) 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/api/dpa/dict_get.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/dpa" 8 | ) 9 | 10 | // DictGet 获取DPA词包 11 | func DictGet(ctx context.Context, clt *core.SDKClient, accessToken string, req *dpa.DictGetRequest) ([]dpa.Dict, error) { 12 | var resp dpa.DictGetResponse 13 | if err := clt.Get(ctx, "2/dpa/dict/get/", req, &resp, accessToken); err != nil { 14 | return nil, err 15 | } 16 | return resp.Data.List, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/enum/aweme_auth_share_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AwemeAuthShareType 授权共享类型 4 | type AwemeAuthShareType = string 5 | 6 | const ( 7 | // AwemeAuthShareType_SHARE_BY_ONESELF 广告账户自主授权 8 | AwemeAuthShareType_SHARE_BY_ONESELF AwemeAuthShareType = "SHARE_BY_ONESELF" 9 | // AwemeAuthShareType_SHARE_BY_SAME_ENTITY 客户共享授权 10 | AwemeAuthShareType_SHARE_BY_SAME_ENTITY AwemeAuthShareType = "SHARE_BY_SAME_ENTITY" 11 | // AwemeAuthShareType_SHARE_FROM_BP 组织共享授权 12 | AwemeAuthShareType_SHARE_FROM_BP AwemeAuthShareType = "SHARE_FROM_BP" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/aweme_auth_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AwemeAuthType 授权类型 4 | type AwemeAuthType string 5 | 6 | const ( 7 | // AwemeAuthType_AWEME_ACCOUNT 抖音号授权 8 | AwemeAuthType_AWEME_ACCOUNT AwemeAuthType = "AWEME_ACCOUNT" 9 | // AwemeAuthType_VIDEO_ITEM 单视频授权 10 | AwemeAuthType_VIDEO_ITEM AwemeAuthType = "VIDEO_ITEM" 11 | // AwemeAuthType_LIVE_ACCOUNT 直播授权 12 | AwemeAuthType_LIVE_ACCOUNT AwemeAuthType = "LIVE_ACCOUNT" 13 | // AwemeAuthType_AWEME_HOMEPAGE 主页作品授权 14 | AwemeAuthType_AWEME_HOMEPAGE AwemeAuthType = "AWEME_HOMEPAGE" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/behavior.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // Behavior 抖音用户行为类型 4 | type Behavior string 5 | 6 | const ( 7 | // BEHAVIOR_ALL全部 8 | BEHAVIOR_ALL Behavior = "ALL" 9 | // FOLLOWED_USER 已关注用户 10 | FOLLOWED_USER Behavior = "FOLLOWED_USER" 11 | // COMMENTED_USER 视频互动-已评论用户 12 | COMMENTED_USER Behavior = "COMMENTED_USER" 13 | // LIKED_USER 视频互动-已点赞用户 14 | LIKED_USER Behavior = "LIKED_USER" 15 | // SHARED_USER 视频互动-已分享用户 16 | SHARED_USER Behavior = "SHARED_USER" 17 | // GOODS_SHARE 下单过商品 18 | GOODS_SHARE Behavior = "GOODS_SHARE" 19 | ) 20 | -------------------------------------------------------------------------------- /marketing-api/enum/external_action_source.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ExternalActionSource 转化目标创建来源 4 | type ExternalActionSource string 5 | 6 | const ( 7 | // ExternalActionSource_SOURCE_TETRIS 建站 - 预定义 8 | ExternalActionSource_SOURCE_TETRIS ExternalActionSource = "SOURCE_TETRIS" 9 | // ExternalActionSource_SOURCE_METEOR 转化跟踪 - 自定义 10 | ExternalActionSource_SOURCE_METEOR ExternalActionSource = "SOURCE_METEOR" 11 | // ExternalActionSource_SOURCE_CONFIG 配置固定返回 12 | ExternalActionSource_SOURCE_CONFIG ExternalActionSource = "SOURCE_CONFIG" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/rebate_approval_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // RebateApprovalStatus 返点核算单审批状态 4 | type RebateApprovalStatus string 5 | 6 | const ( 7 | // RebateApprovalStatus_AGENT_APPROVING 待代理商审批 8 | RebateApprovalStatus_AGENT_APPROVING RebateApprovalStatus = "AGENT_APPROVING" 9 | // RebateApprovalStatus_BUSINESS_APPROVING 待平台复核终审 10 | RebateApprovalStatus_BUSINESS_APPROVING RebateApprovalStatus = "BUSINESS_APPROVING" 11 | // RebateApprovalStatus_APPROVED 审批完成 12 | RebateApprovalStatus_APPROVED RebateApprovalStatus = "APPROVED" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/dmp/customaudience/publish.go: -------------------------------------------------------------------------------- 1 | package customaudience 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/util" 5 | ) 6 | 7 | // PublishRequest 发布人群包 8 | type PublishRequest struct { 9 | // AdvertiserID 人群包所属广告主ID 10 | AdvertiserID uint64 `json:"advertiser_id,omitempty"` 11 | // CustomAudienceID 人群包ID 12 | CustomAudienceID uint64 `json:"custom_audience_id,omitempty"` 13 | } 14 | 15 | // Encode implement PostRequest interface 16 | func (r PublishRequest) Encode() []byte { 17 | return util.JSONMarshal(r) 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/api/dpa/meta_get.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/dpa" 8 | ) 9 | 10 | // MetaGet 获取商品库元信息 11 | func MetaGet(ctx context.Context, clt *core.SDKClient, accessToken string, req *dpa.MetaGetRequest) ([]dpa.Meta, error) { 12 | var resp dpa.MetaGetResponse 13 | err := clt.Get(ctx, "2/dpa/meta/get/", req, &resp, accessToken) 14 | if err != nil { 15 | return nil, err 16 | } 17 | return resp.Data.List, nil 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/uni_promotion/material_delete.go: -------------------------------------------------------------------------------- 1 | package unipromotion 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | unipromotion "github.com/bububa/oceanengine/marketing-api/model/qianchuan/uni_promotion" 8 | ) 9 | 10 | // MaterialDelete 删除全域推广计划下素材 11 | func MaterialDelete(ctx context.Context, clt *core.SDKClient, accessToken string, req *unipromotion.MaterialDeleteRequest) error { 12 | return clt.Post(ctx, "v1.0/qianchuan/uni_promotion/ad/material/delete/", req, nil, accessToken) 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/tools/clue/callback.go: -------------------------------------------------------------------------------- 1 | package clue 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/clue" 8 | ) 9 | 10 | // Callback 回传有效线索 11 | // 回传广告主的线索信息。为保证接口使用的安全性避免操作他人的线索信息,该接口只可用于操作自己广告主下的线索信息,即需查询的广告主账号的主体需与APPID对应开发者的主体保持一致,才可操作线索的信息,否则会报错! 12 | func Callback(ctx context.Context, clt *core.SDKClient, accessToken string, req *clue.CallbackRequest) error { 13 | return clt.Post(ctx, "2/tools/clue/callback/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/enum/district.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // District 地域类型 4 | type District string 5 | 6 | const ( 7 | // District_CITY 省市 8 | District_CITY District = "CITY" 9 | // District_COUNTY 区县 10 | District_COUNTY District = "COUNTY" 11 | // District_REGION 行政区域 12 | District_REGION District = "REGION" 13 | // District_OVERSEA 海外区域 14 | District_OVERSEA District = "OVERSEA" 15 | // District_BUSINESS_DISTRICT 商圈 16 | District_BUSINESS_DISTRICT District = "BUSINESS_DISTRICT" 17 | // District_NONE 不限 18 | District_NONE District = "NONE" 19 | ) 20 | -------------------------------------------------------------------------------- /marketing-api/enum/promotion_way.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // PromotionWay 计划投放速度类型 4 | type PromotionWay string 5 | 6 | const ( 7 | // PromotionWay_FLOW_CONTROL_MODE_FAST 尽快投放 8 | PromotionWay_FLOW_CONTROL_MODE_FAST PromotionWay = "FLOW_CONTROL_MODE_FAST" 9 | // PromotionWay_FLOW_CONTROL_MODE_SMOOTH 均匀投放 10 | PromotionWay_FLOW_CONTROL_MODE_SMOOTH PromotionWay = "FLOW_CONTROL_MODE_SMOOTH" 11 | // PromotionWay_FLOW_CONTROL_MODE_BALANCE 优先低成本,对应千川后台「严格控制成本上限」勾选项 12 | PromotionWay_FLOW_CONTROL_MODE_BALANCE PromotionWay = "FLOW_CONTROL_MODE_BALANCE" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/model/creative/get_response.go: -------------------------------------------------------------------------------- 1 | package creative 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/model" 5 | ) 6 | 7 | // GetResponse 获取创意列表 API Response 8 | type GetResponse struct { 9 | model.BaseResponse 10 | // Data json返回值 11 | Data *GetResponseData `json:"data,omitempty"` 12 | } 13 | 14 | // GetResponseData json返回值 15 | type GetResponseData struct { 16 | // List Creative数组 17 | List []Creative `json:"list,omitempty"` 18 | // PageInfo 分页信息 19 | PageInfo *model.PageInfo `json:"page_info,omitempty"` 20 | } 21 | 22 | -------------------------------------------------------------------------------- /marketing-api/model/privativeword/ad_word.go: -------------------------------------------------------------------------------- 1 | package privativeword 2 | 3 | // AdWord 否定词 4 | type AdWord struct { 5 | // AdID 广告计划id 6 | AdID uint64 `json:"ad_id,omitempty"` 7 | // CampaignID 广告组id 8 | CampaignID uint64 `json:"campaign_id,omitempty"` 9 | // PhraseWords 短语否定词,否定词列表不能超过100个否定词,单个否定词长度不能超过30个汉字(或60个英文字符),不能包含emoji,不能为空字符串。 10 | PhraseWords []string `json:"phrase_words,omitempty"` 11 | // PreciseWords 精确否定词,否定词列表不能超过100个否定词,单个否定词长度不能超过30个汉字(或60个英文字符),不能包含emoji,不能为空字符串。 12 | PreciseWords []string `json:"precise_words,omitempty"` 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/model/tools/adconvert/optimize_target.go: -------------------------------------------------------------------------------- 1 | package adconvert 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/enum" 4 | 5 | // OptimizeTarget 转化数据 6 | type OptimizeTarget struct { 7 | // MarketingPurpose 营销目的,允许值:UNLIMITED不限,CONVERSION行动转化, INTENTION用户意向,ACKNOWLEDGE品牌认知 8 | MarketingPurpose enum.MarketingPurpose `json:"marketing_purpose,omitempty"` 9 | // Disabled 是否禁用, true 表示已经禁用,false 表示可用 10 | Disabled bool `json:"disabled,omitempty"` 11 | // Converts 优化来源下的转化目标列表 12 | Converts []AdConvert `json:"converts,omitempty"` 13 | } 14 | -------------------------------------------------------------------------------- /marketing-api/api/clue/coupon/get.go: -------------------------------------------------------------------------------- 1 | package coupon 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/clue/coupon" 8 | ) 9 | 10 | // Get 获取卡券列表 11 | func Get(ctx context.Context, clt *core.SDKClient, accessToken string, req *coupon.GetRequest) (*coupon.GetResponseData, error) { 12 | var resp coupon.GetResponse 13 | if err := clt.Get(ctx, "2/clue/coupon/get/", req, &resp, accessToken); err != nil { 14 | return nil, err 15 | } 16 | return resp.Data, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/api/conversion/conversion.go: -------------------------------------------------------------------------------- 1 | package conversion 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/conversion" 8 | ) 9 | 10 | // Conversion 新版转化回传 11 | func Conversion(ctx context.Context, clt *core.SDKClient, req *conversion.Request) (int, error) { 12 | var resp conversion.Response 13 | if err := clt.AnalyticsPost(ctx, "conversion", req, &resp); err != nil && resp.Code != 128 { 14 | return resp.Code, err 15 | } 16 | return resp.Code, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/api/star/info.go: -------------------------------------------------------------------------------- 1 | package star 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/star" 8 | ) 9 | 10 | // Info 获取星图账户信息 11 | // 获取星图账户全量信息 12 | func Info(ctx context.Context, clt *core.SDKClient, accessToken string, req *star.InfoRequest) ([]star.Info, error) { 13 | var resp star.InfoResponse 14 | if err := clt.Get(ctx, "2/star/info/", req, &resp, accessToken); err != nil { 15 | return nil, err 16 | } 17 | return resp.Data.InfoList, nil 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/enum/product_audit_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // ProductAuditStatus 商品审核状态 4 | type ProductAuditStatus string 5 | 6 | const ( 7 | // ProductAuditStatus_AUDIT_STATUS_APPROVE 审核通过 8 | ProductAuditStatus_AUDIT_STATUS_APPROVE ProductAuditStatus = "AUDIT_STATUS_APPROVE" 9 | // ProductAuditStatus_AUDIT_STATUS_INIT 审核中 10 | ProductAuditStatus_AUDIT_STATUS_INIT ProductAuditStatus = "AUDIT_STATUS_INIT" 11 | // ProductAuditStatus_AUDIT_STATUS_REJECT 审核未通过 12 | ProductAuditStatus_AUDIT_STATUS_REJECT ProductAuditStatus = "AUDIT_STATUS_REJECT" 13 | ) 14 | -------------------------------------------------------------------------------- /marketing-api/enum/subscribe_adv_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // SubscribeAdvStatus RDS订阅状态 4 | type SubscribeAdvStatus string 5 | 6 | const ( 7 | // SubscribeAdvStatus_OK 推送中 8 | SubscribeAdvStatus_OK SubscribeAdvStatus = "OK" 9 | // SubscribeAdvStatus_PENDING 新增状态 10 | SubscribeAdvStatus_PENDING SubscribeAdvStatus = "PENDING" 11 | // SubscribeAdvStatus_UNAUTHORIZED 无权限 12 | SubscribeAdvStatus_UNAUTHORIZED SubscribeAdvStatus = "UNAUTHORIZED" 13 | // SubscribeAdvStatus_UNKNOWN 未知 14 | SubscribeAdvStatus_UNKNOWN SubscribeAdvStatus = "UNKNOWN" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/model/creative/component_material.go: -------------------------------------------------------------------------------- 1 | package creative 2 | 3 | import ( 4 | "github.com/bububa/oceanengine/marketing-api/enum" 5 | "github.com/bububa/oceanengine/marketing-api/model" 6 | ) 7 | 8 | // ComponentMaterial 组件信息 9 | type ComponentMaterial struct { 10 | // ComponentID 组件id,通过【查询组件列表】接口获取 11 | ComponentID model.Uint64 `json:"component_id,omitempty"` 12 | // ComponentType 组件类型 13 | ComponentType enum.ComponentType `json:"component_type,omitempty"` 14 | // MaterialID 15 | MaterialID model.Uint64 `json:"material_id,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /marketing-api/model/local/customaudience/custom_audience.go: -------------------------------------------------------------------------------- 1 | package customaudience 2 | 3 | import "github.com/bububa/oceanengine/marketing-api/enum/local" 4 | 5 | // CustomAudience 人群包 6 | type CustomAudience struct { 7 | // CustomAudienceID 人群包ID 8 | CustomAudienceID uint64 `json:"custom_audience_id,omitempty"` 9 | // Name 人群包名称 10 | Name string `json:"name,omitempty"` 11 | // TagsType 人群包属性 12 | TagsType local.CustomAudienceTagsType `json:"tags_type,omitempty"` 13 | // CreateTime 人群包创建时间 14 | CreateTime string `json:"create_time,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /marketing-api/api/creative/get.go: -------------------------------------------------------------------------------- 1 | package creative 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/creative" 8 | ) 9 | 10 | // Get 获取创意列表 11 | func Get(ctx context.Context, clt *core.SDKClient, accessToken string, req *creative.GetRequest) (*creative.GetResponseData, error) { 12 | var resp creative.GetResponse 13 | err := clt.Get(ctx, "2/creative/get/", req, &resp, accessToken) 14 | if err != nil { 15 | return nil, err 16 | } 17 | return resp.Data, nil 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/advertiser/account_budget_update.go: -------------------------------------------------------------------------------- 1 | package advertiser 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/qianchuan/advertiser" 8 | ) 9 | 10 | // AccountBudgetUpdate 更新账户日预算 11 | // 更新账户日预算,一天最多修改20次。 12 | func AccountBudgetUpdate(ctx context.Context, clt *core.SDKClient, accessToken string, req *advertiser.AccountBudgetUpdateRequest) error { 13 | return clt.Post(ctx, "v1.0/qianchuan/account/budget/update/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/enum/app_upload_task_status.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // AppUploadTaskStatus 任务状态 4 | type AppUploadTaskStatus string 5 | 6 | const ( 7 | // AppUploadTaskStatus_FAILED 失败 8 | AppUploadTaskStatus_FAILED AppUploadTaskStatus = "FAILED" 9 | // AppUploadTaskStatus_RUNNING 执行中 10 | AppUploadTaskStatus_RUNNING AppUploadTaskStatus = "RUNNING" 11 | // AppUploadTaskStatus_SUCCESS 成功 12 | AppUploadTaskStatus_SUCCESS AppUploadTaskStatus = "SUCCESS" 13 | // AppUploadTaskStatus_WAITING 待执行 14 | AppUploadTaskStatus_WAITING AppUploadTaskStatus = "WAITING" 15 | ) 16 | -------------------------------------------------------------------------------- /marketing-api/enum/rebate_use_type.go: -------------------------------------------------------------------------------- 1 | package enum 2 | 3 | // RebateUseType 使用类型 4 | type RebateUseType string 5 | 6 | const ( 7 | // RebateUseType_CASH 现金 8 | RebateUseType_CASH RebateUseType = "CASH" 9 | // RebateUseType_CHARGE 充值 10 | RebateUseType_CHARGE RebateUseType = "CHARGE" 11 | // RebateUseType_HEDGING 抵扣 12 | RebateUseType_HEDGING RebateUseType = "HEDGING" 13 | // RebateUseType_NONPAYMENT 无需支付 14 | RebateUseType_NONPAYMENT RebateUseType = "NONPAYMENT" 15 | // RebateUseType_REVERT 负数冲抵 16 | RebateUseType_REVERT RebateUseType = "REVERT" 17 | ) 18 | -------------------------------------------------------------------------------- /marketing-api/model/tools/wechat/consts.go: -------------------------------------------------------------------------------- 1 | package wechat 2 | 3 | // ShareMode 共享类型 可选值: 4 | type ShareMode string 5 | 6 | const ( 7 | // BP_ALL_ACCOUNTS 组织内所有账户共享 8 | BP_ALL_ACCOUNTS ShareMode = "BP_ALL_ACCOUNTS" 9 | // COMPANY_ALL_ACCOUNTS 公司主体内所有账户共享 10 | COMPANY_ALL_ACCOUNTS ShareMode = "COMPANY_ALL_ACCOUNTS" 11 | // PART 指定账户共享 12 | PART ShareMode = "PART" 13 | ) 14 | 15 | // ShareType 可选值: 16 | type ShareType string 17 | 18 | const ( 19 | // ACCOUNT 共享给账户 20 | ACCOUNT ShareType = "ACCOUNT" 21 | // GROUP 共享给组织 22 | GROUP ShareType = "GROUP" 23 | ) 24 | -------------------------------------------------------------------------------- /marketing-api/api/advertiser/qualification_submit.go: -------------------------------------------------------------------------------- 1 | package advertiser 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/advertiser" 8 | ) 9 | 10 | // QualificationSubmit 提交广告主资质(新版) 11 | // 提交广告主资质信息为全量接口。更新的时候需要全量先获取所有资质,然后更新相应资质。 12 | func QualificationSubmit(ctx context.Context, clt *core.SDKClient, accessToken string, req *advertiser.QualificationSubmitRequest) error { 13 | return clt.PostAPI(ctx, "v3.0/advertiser/qualification/submit/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/clue/coupon/update.go: -------------------------------------------------------------------------------- 1 | package coupon 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/clue/coupon" 8 | ) 9 | 10 | // Update 编辑卡券 11 | // 编辑卡券接口。 只有deliver_start、deliver_end、global_limit、user_limit允许编辑。 卡券开始后,所有的数据都不允许修改。 status字段控制卡券的上下线,只支持:NORMAL:上线,OFFLINE:下线 12 | func Update(ctx context.Context, clt *core.SDKClient, accessToken string, req *coupon.UpdateRequest) error { 13 | return clt.Post(ctx, "2/clue/coupon/update/", req, nil, accessToken) 14 | } 15 | -------------------------------------------------------------------------------- /marketing-api/api/dpa/detail_get.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/dpa" 8 | ) 9 | 10 | // DetailGet 获取商品列表 11 | func DetailGet(ctx context.Context, clt *core.SDKClient, accessToken string, req *dpa.DetailGetRequest) (*dpa.DetailGetResponseData, error) { 12 | var resp dpa.DetailGetResponse 13 | if err := clt.Get(ctx, "2/dpa/detail/get/", req, &resp, accessToken); err != nil { 14 | return nil, err 15 | } 16 | return resp.Data, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/api/dpa/video_get.go: -------------------------------------------------------------------------------- 1 | package dpa 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/dpa" 8 | ) 9 | 10 | // VideoGet 获取 DPA 商品库视频模板 11 | func VideoGet(ctx context.Context, clt *core.SDKClient, accessToken string, req *dpa.VideoGetRequest) (*dpa.VideoGetResponseData, error) { 12 | var resp dpa.VideoGetResponse 13 | if err := clt.Get(ctx, "2/dpa/video/get/", req, &resp, accessToken); err != nil { 14 | return nil, err 15 | } 16 | return resp.Data, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/api/file/audio_ad.go: -------------------------------------------------------------------------------- 1 | package file 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/file" 8 | ) 9 | 10 | // AudioAd 上传图文内的音频素材 11 | func AudioAd(ctx context.Context, clt *core.SDKClient, accessToken string, req *file.AudioAdRequest) (*file.Audio, error) { 12 | var resp file.AudioAdResponse 13 | err := clt.Upload(ctx, "2/file/audio/ad/", req, &resp, accessToken) 14 | if err != nil { 15 | return nil, err 16 | } 17 | return resp.Data.AudioInfo, nil 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/api/qianchuan/shop/get.go: -------------------------------------------------------------------------------- 1 | package shop 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/qianchuan/shop" 8 | ) 9 | 10 | // Get 获取店铺账户信息 11 | func Get(ctx context.Context, clt *core.SDKClient, accessToken string, req *shop.GetRequest) ([]shop.Shop, error) { 12 | var resp shop.GetResponse 13 | err := clt.Get(ctx, "v1.0/qianchuan/shop/get/", req, &resp, accessToken) 14 | if err != nil { 15 | return nil, err 16 | } 17 | return resp.Data.List, nil 18 | } 19 | -------------------------------------------------------------------------------- /marketing-api/api/tools/abtest/update.go: -------------------------------------------------------------------------------- 1 | package abtest 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/abtest" 8 | ) 9 | 10 | // Update 更改实验 11 | func Update(ctx context.Context, clt *core.SDKClient, accessToken string, req *abtest.UpdateRequest) (uint64, error) { 12 | var resp abtest.UpdateResponse 13 | if err := clt.Post(ctx, "2/tools/ab_test/update/", req, &resp, accessToken); err != nil { 14 | return 0, err 15 | } 16 | return resp.Data.TestID, nil 17 | } 18 | -------------------------------------------------------------------------------- /marketing-api/api/tools/appmanagement/update_authorization.go: -------------------------------------------------------------------------------- 1 | package appmanagement 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/bububa/oceanengine/marketing-api/core" 7 | "github.com/bububa/oceanengine/marketing-api/model/tools/appmanagement" 8 | ) 9 | 10 | // UpdateAuthorization 更新应用共享关系 11 | // 增加和删除应用资产的共享关系 12 | func UpdateAuthorization(ctx context.Context, clt *core.SDKClient, accessToken string, req *appmanagement.UpdateAuthorizationRequest) error { 13 | return clt.Post(ctx, "2/tools/app_management/update/authorization/", req, nil, accessToken) 14 | } 15 | --------------------------------------------------------------------------------