Campaign management
Manage your ad campaigns using Tapjoy's Reporting API to review and update ad set configurations, bid amounts, event settings, and app‑specific settings so you can optimize campaign performance.
Read time 4 minutesLast updated 14 days ago
Use the Reporting API can to manage your campaigns and review the configuration details of your events and ad sets.
Prerequisites
You must authenticate with the API, following the steps here.
- For information on retrieving reporting data through the Reporting API, refer to Reporting API - Advertiser.
- For information on error handling and limitations with the Reporting API, refer to Reporting API Best Practices.
Manage your ad sets
Review the details of your ad set configuration, such as bid amounts, targeting data, and campaign status.
References: Advertiser#adSets field, AdSet type
The following query returns up to 50 ad sets with their IDs, bid amounts, and campaign objectives.
query { advertiser { adSets(first: 50) { edges { node { id bidding { amount } campaign { objective } } } pageInfo { endCursor hasNextPage } } }}
Change the bid of an ad set
References: AdSetBiddingUpdateInput type
The following mutation updates the bid amount for a specific ad set. Specify the ad set ID and the new bid amount in micros.
mutation { updateAdSetBidding(input: { id: "00000000-0000-0000-0000-000000000000", bidding: {amount: 1000000} }) { bidding { amount } }}
Manage your multi-reward events
Refer to event level information for your Multi-Reward offers, including bid amounts, event names, and event linearity.
References: MultiRewardEngagementEvent type
The following query returns all events configured for a specific ad set, including event names, values, and bid amounts.
{ adSet(id: "00000000-0000-0000-0000-000000000000") { multiRewardEngagementSettings { events { eventName eventValue amount } } }}
Create and delete multi-reward events
References: AdSetBiddingUpdateInput type, MultiRewardEngagementEventInput type
The following mutation creates, updates, or disables multi-reward engagement events for a specific ad set in a single operation.
mutation { updateAdSetBidding( input:{ id: "00000000-0000-0000-0000-000000000000" bidding: { multiRewardEngagementEvents: [ { eventName:"TUTORIAL_COMPLETE", eventValue: "", amount: 2200000 }, { eventName:"LEVEL_ONE", eventValue: "", amount: 12200000 }, { eventName:"LEVEL_TWO", eventValue: "", disable: true } ] } } ) { bidding { multiRewardEngagementEvents { eventName eventValue amount } } }}
Manage your app specific configuration
Refer to event level information for Multi-Reward offers with publisher app specific bidding enabled. This will return event information such as bid amounts, event names, and event linearity, separated out by publisher app.
References: MultiRewardEngagementEvent type, AppReference type
The following query returns multi-reward event configurations for a specific ad set, grouped by publisher app. Events not tied to a specific app are listed under a null app entry.
{ adSet(id: "00000000-0000-0000-0000-000000000000") { multiRewardEngagementSettings { app { bundleId } events { eventName eventValue amount } } }}
Create and delete per-app event configurations
To disable an event or per-app-bid group, add to the object. Disabling a per-app-bid group automatically disables its children events. You must use and when disabling events to prevent accidental deletions.
disable: trueeventNameeventValueReferences: AdSetBiddingUpdateInput type, AppBiddingGroupInput type, MultiRewardEngagementEventInput type, AppReference type
The following mutation creates, updates, or disables per-app bid groups and their associated multi-reward events for a specific ad set in a single operation.
mutation { updateAdSetBidding( input:{ id: "00000000-0000-0000-0000-000000000000" bidding: { perAppBidGroups: [{ pubAppId:"<example_publisher_app_id>" multiRewardEngagementEvents: [ { eventName:"TUTORIAL_COMPLETE", eventValue: "", amount: 5500000 }, { eventName:"LEVEL_ONE", eventValue: "", disable: true, } ] }, { pubAppId:"<example_publisher_app_id_2>", disable: true }], multiRewardEngagementEvents: [ { eventName:"TUTORIAL_COMPLETE", eventValue: "", amount: 2200000 }, { eventName:"LEVEL_ONE", eventValue: "", amount: 12200000 }, { eventName:"LEVEL_TWO", eventValue: "", disable: true } ] } } ) { bidding { multiRewardEngagementEvents { eventName eventValue amount } perAppBidGroups { pubApp { id name } } multiRewardEngagementEvents { eventName eventValue amount } } }}