Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pocketmath integration #58

Open
ngulamai opened this issue Oct 14, 2018 · 10 comments
Open

Pocketmath integration #58

ngulamai opened this issue Oct 14, 2018 · 10 comments

Comments

@ngulamai
Copy link
Contributor

Hi Danil
Your assumptions are correct. Please proceed with integration and let us know when ready to test
Thanks
Hello Adrian,

Example for order id : 214140. I understand about:

  • CampaignId is "campaign_id" in pocketmath (153934)
  • Campaign is "name" in pocketmath (PRP1_320x50_Android\u003e5.0.x_APPs_ANY_Flat CPM:0.25_Smartphone+Tablet_BID:Y_DID:Y_IAB:A_AUD:A_GEN:A_CAP:1)
  • adCost is "spend" in pocketmath
  • Impressions is "impressions"
  • adClick is "clicks"
@dchubiryaev
Copy link
Contributor

dchubiryaev commented Oct 14, 2018

Hello Adrian,

I want to ask you which fields from pocketmath coincide with (dsp (cd12), model(cd98), source(cs), medium(cm), keyword(ck), adContent(cc)). To avoid misunderstandings.

{
"name":"PRP1_320x50_Android\u003e5.0.x_APPs_ANY_Flat CPM:0.25_Smartphone+Tablet_BID:Y_DID:Y_IAB:A_AUD:A_GEN:A_CAP:1",
"total_budget":"100.0",
"daily_bu dget":"25.0",
"hourly_budget":null,
"created_at":"2017-03-24T17:29:32.000Z",
"updated_at":"2017-03-27T11:10:11.000Z",
"country_code":"AU",
"terminated_at":null,
"start_at":"2017-03-24T17:29:00.000Z",
"end_at":"2017-03-30T22:00:00.000Z",
"campaign_id":153934,
"os_versions":{
"3":[
5.0,
999.9
]
},
"deals":null,
"gend er":"all",
"impressions_cap":null,
"app_targeting":"app",
"bidding_strategy":"eager",
"blacklisted_isp_ids":[
],
"blacklisted_carrier_codes":[
],
"whitelisted carrier_codes":[
],
"carrier_codes":[
],
"categories":[
"IAB9-30"
],
"blacklisted_city_ids":[
],
"whitelisted_city_ids":[
],
"city_ids":[
],
"clicks":30,
"conversi ons":0,
"cpm":"0.25",
"created_by":"Adrian Janon",
"deals_enabled":null,
"device_category":"smartphones",
"device_identifier_blacklist_ids":[
38063,
38065,
38 066,
38067,
38068
],
"device_identifier_frequency_cap":60,
"device_id_clicks_cap":null,
"device_id_impressions_cap":60,
"device_id_impressions_cap_daily":1,
" device_id_impressions_cap_weekly":null,
"device_id_impressions_cap_monthly":null,
"device_identifier_types":[
"DPID",
"GAID"
],
"device_identifier_whitelist ids":[
],
"device_models_blacklist":[
],
"device_models_whitelist":[
],
"device_platforms":[
"android"
],
"ecpm":"0.192642",
"exchanges":[
"Smaato",
"Axonix",
"Oa th (Nexage)",
"Flurry",
"Inneractive",
"MoPub",
"Tapsense",
"AdColony",
"MobFox",
"OpenX",
"Rubicon",
"Amobee",
"StartMeApp",
"GumGum",
"LiveIntent",
"MADS",
"AerSe rv",
"Facebook Audience Network / LiveRail",
"Geniee",
"Smart",
"United",
"Somo",
"Vdopia",
"Gameloft",
"PulsePoint",
"LKQD",
"Polymorph (AdsNative)"
],
"with_bun dle_id_only":true,
"gps_only":false,
"gps_point_radius":null,
"gps_whitelist_ids":[
],
"postal_code_whitelist_ids":[
],
"status":"expired",
"impressions":9711,
"isp_ids":[
],
"metrocodes":null,
"notifications":[
{
"destination":"[email protected]",
"low_budget":true,
"non_spending":true
}
],
"pricing_target ing":null,
"publisher_blacklist_ids":[
],
"publisher_whitelist_ids":[
],
"bundle_identifier_blacklist_ids":[
],
"bundle_identifier_whitelist_ids":[
],
"schedul es":[
{
"start_at":"2017-03-24T17:29:00.000Z",
"end_at":"2017-03-30T22:00:00.000Z"
}
],
"daily_time_ranges":null,
"weekly_time_ranges":null,
"spend":"1.870743 75",
"region_codes":[
],
"tags":[
],
"blacklisted_categories":[
],
"target_categories":[
],
"ip_range_list_blacklist_ids":[
],
"ip_range_list_whitelist_ids":[
],
" wifi_targeting":null,
"win_rate":"242775/29221",
"domain_list_blacklist_ids":[
],
"domain_list_whitelist_ids":[
],
"creative":{
"name":"PRP1_320x50_Android\u 003e5.0.x_APPs_ANY_Flat CPM:0.25_Smartphone+Tablet_BID:Y_DID:Y_IAB:A_AUD:A_GEN:A_CAP:1",
"landing_page_url":"http://n38adshostnet.com/ads?key=b32f421dd 8d4d8c1ac710a94a0c93c7b\u0026ch=%7Bbundle_id%7D\u0026width=320\u0026height=50\u0026cp.postal_code=%22%24%7Bpostal_code%7D%22\u0026cp.ad_size=%22%24%7B ad_size%7D%22\u0026cp.os_version=%22%24%7Bos_version%7D%22\u0026cp.sha1_dpid=%22%24%7Bsha1_dpid%7D%22\u0026cp.sha1_aid=%22%24%7Bsha1_aid%7D%22\u0026cp .device_model=%22%24%7Bdevice_model%7D%22\u0026cp.ifa=%22%24%7Bifa%7D%22\u0026cp.datetime=%22%24%7Bdatetime%7D%22\u0026cp.sha1_did=%22%24%7Bsha1_did%7 D%22\u0026cp.sha1_udid=%22%24%7Bsha1_udid%7D%22\u0026cp.creative_type=%22%24%7Bcreative_type%7D%22\u0026cp.pageurl=%22%24%7Bpage_url%7D%22\u0026cp.gps =%22%24%7Bgps%7D%22\u0026cp.dnt=%22%24%7Bdnt%7D%22\u0026cp.googleadid=%22%24%7Bgaid%7D%22\u0026cp.source_name=%22%24%7Bsource_id%7D%22\u0026cp.campaig n_id=%22%24%7Bcampaign_id%7D%22\u0026cp.rtg_id=%22%24%7Bsha1_dpid%7D%22\u0026cp.os=%22%24%7Bdevice_os%7D%22\u0026cp.app_or_web=%22%24%7Bapp_or_web%7D% 22\u0026cp.timestamp=%22%24%7Btimestamp%7D%22\u0026cp.lat=%22%24%7Blat%7D%22\u0026cp.ip=%22%24%7Bip_add%7D%22\u0026cp.carrier=%22%24%7Bdevice_isp%7D%2 2\u0026cp.referrer_url=%22%24%7Breferrer_url%7D%22\u0026cp.device_identifier=%22%24%7Bdevice_identifier%7D%22\u0026cp.device_identifier_type=%22%24%7B device_identifier_type%7D%22\u0026cp.bundle_id=%22%24%7Bbundle_id%7D%22\u0026cp.click_ID=%22%24%7Bimp_id%7D%22\u0026cp.user_agent=%22%24%7Buser_agent% 7D%22\u0026cp.lon=%22%24%7Blon%7D%22\u0026cp.device_category=%22%24%7Bdevice_category%7D%22\u0026cp.src_id=%22bundle_id%2C%24%7Bbundle_id%7D%2Cexchang e_mobile
%24%7Bapp_or_web%7D_sourceid%2C%24%7Bexchange%7D_mobile_app
%24%7Bbundle_id%7D%2Cifa%2C%24%7Bgaid%7D%24%7Bifa%7D%2Csha1_did%2C%24%7Bsha1_did% 7D%2Csha1_dpid%2C%24%7Bsha1_dpid%7D%2Cua%2C%24%7Buser_agent%7D%22\u0026cp.exchange=%22%24%7Bexchange%7D%22\u0026cp.gender=%22%24%7Bgender%7D%22\u0026c p.category=%22%24%7Btarget_category%7D%22",
"image_url":null,
"ad_type":"javascript"
},
"id":"AAABRoXXpSEABPt60l0MDS6Z0_5cH5o3gm7-Yw",
"pocketmath_id":2141 40
}

Second question: I see that pocketmath switched to pocketmath PRO, must I switch to new version API (Pocketmath PRO API 1.0.0)? Your token works with API v3, but doesn't work with new API (Bad credentials). Also pokethmath changed "Developer Tools" and now information about query of API describes only for PRO version. new realise

Thank you,
Danil Chubiryaev.

@ngulamai
Copy link
Contributor Author

Hi danil
with regards the below, we will submit the variables using the same dimensions that in Avazu. It means that CD12 from Avazu will also arrive in CD12 from Pocketmath, etc

I want to ask you which fields from pocketmath coincide with (dsp (cd12), model(cd98), source(cs), medium(cm), keyword(ck), adContent(cc)). To avoid misunderstandings.

@ngulamai
Copy link
Contributor Author

with regards the API version, I already opened a ticket with help desk to get their answer on the topic regarding API version. will keep you i the loop

@ngulamai
Copy link
Contributor Author

With regards API, please use v3
API AUTHENTICATION

f569c162f3c4c9142d8813355928b272aec227b4801cfe0273b7e6120a4886ac

Authentication to the PocketMath API is done through an Authorization header sent with every request. The format of this header is as follows:

Token token=f569c162f3c4c9142d8813355928b272aec227b4801cfe0273b7e6120a4886ac
As an example, to get a list of your orders using curl, type in the following command:

curl -i -H "Authorization: Token token=f569c162f3c4c9142d8813355928b272aec227b4801cfe0273b7e6120a4886ac" https://api.pocketmath.com/v3/orders

@dchubiryaev
Copy link
Contributor

Hello Adrian,

I mean about which names of fields from pocketmath side. Not that you sent to collect. Which filds must I take from pocketmath while I'm doing import? Could you help me with it? Example with Avazu: Alexander set for dsp -> "Avazu MDSP", for model -> if field "Bidtype" = 4, is "cpc" another value "cpm",
source -> "Site_id", Medium -> "Display", adContent -> "Creative_id".

Hi danil
with regards the below, we will submit the variables using the same dimensions that in Avazu. It means that CD12 from Avazu will also arrive in CD12 from Pocketmath, etc

I want to ask you which fields from pocketmath coincide with (dsp (cd12), model(cd98), source(cs), medium(cm), keyword(ck), adContent(cc)). To avoid misunderstandings.

Thank you,
Danil Chubiryaev.

@ngulamai
Copy link
Contributor Author

ngulamai commented Oct 19, 2018 via email

@dchubiryaev
Copy link
Contributor

Hello Adrian,

I have questions about some fields:

SOURCE ("cs") Publisher name (example: Spotify App)
I didn't find such data. Could you provide more information?

We have a conclusion from our discussion:
CONTENT ("cc") is field "name" in order stats
CAMPAIGN_NAME ("cn") is field "name" in order stats
It turns out that these are the same values from pocketmath. Is not it?

What is your opinion about this?
TERM ("ck")

Of course we will may to start campaign, to look at data and to correct parameters, but better do it before.

Thank you,
Danil Chubiryaev.

@ngulamai
Copy link
Contributor Author

Hi
Source can me extracted from api https://console.pocketmath.com/api?api_version=3#!/stats/Api_V3_Stats_publishers.
When checking the publisher for an order, you can collect that data from the place where the ad was shown.

cc would be the creative id (PRP1_320x50_Android\u 003e5.0.x_APPs_ANY_Flat CPM:0.25_Smartphone+Tablet_BID:Y_DID:Y_IAB:A_AUD:A_GEN:A_CAP:1 in the above example)

cn indeed is campaign name
ck does not apply to pocketmath because they do not use keywords

@dchubiryaev
Copy link
Contributor

Hello Adrian,

May We start to test this campaign? I need of launched campaign, because I cann't get publisher info. What I know: it is two publishers, and they are status archived. I think it is reason why I get empty info from "https://console.pocketmath.com/api?api_version=3#!/stats/Api_V3_Stats_publishers". I have to understand this structure of data for to complete the integration.
Everything else is fine.

Thank you,
Danil Chubiryaev.

@ngulamai
Copy link
Contributor Author

ok. we sill setup a test campaign tomorrow and let you know once it is approved and live

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants