How to set budget unit which through call API's code - facebook

Maybe my ad account's pay method was set CNY.
How to set budget unit which through call API's code?
Here is my CURL code.
create ad set by CURL
Error msg:
Your budget is too low. The minimum budget for this ad set is $1.00.
Thanks!

As stated in docs related to bidding
The bid amount's unit is cent for currencies like USD, EUR, and the basic unit for currencies like JPY, KRW.
In your call you use bid_amount=1, daily_budget=3, which means 1 and 3 cents. For bid_amount that may be relevant amount (depends on used billing_event), but for budget it's too low.
You can see minimum budget values for different currencies in budget limits docs.
Also note that not all currencies use the same offset, which means not everywhere 1 means 1 cent. Those offsets are documented here.

Related

PayPal express checkout add tax info

So i was integrating my app with paypal for express checkout and could not figure out how to add in my gst/hst number for Canada to the receipt.
it is mandatory if i am to charge taxes in Canadian shipment, that the gst/hst number be visible in the receipt, but cant seem to figure this out.
any help would be appreciated!
below is an example of my receipt but i want to add some additional content for the gst/hst number. where would i be able to and how.
references:
https://developer.paypal.com/docs/api/orders/v2
https://turbotax.intuit.ca/tips/self-employed-business-win-creating-cra-compliant-invoice-8827#:~:text=It%20is%20very%20important%20that,you%20cannot%20charge%20GST%2FHST.
ANSWER:
so this is just a trick around it since i couldnt find a proper solution, but i just add in another item with the GST/HST Number. i leave the cost of it to 0 so it does not affect the total price but the buyer is still able to get the gst/hst number on their receipt.
The amount key can include a breakdown key, which is an object of type amount_breakdown documented here: https://developer.paypal.com/docs/api/orders/v2/#definition-amount_breakdown
tax_total is the key name of one of the objects you can include in the breakdown.
The breakdown's subtotals must add up to the actual amount value.

BitCoin senttoaddress - those damned fees explained?

I have two testnet nodes set up at home.
I'm testing sending between them, all communication is working just fine!
I just tried to send 0.0003 from A->B
This is my tx:
https://live.blockcypher.com/btc-testnet/tx/dc7a9ba7e01efe04ae6b757d1832d4287b95105f6a1e88eb314a926919d1c32b/
I used sendtoaddress and set the receiver to charge the fees. (5th argument set to true)
I'd created a new address: 2N8yYvrbAxKm9nhS8fDCZng1GRVwvxhUy8n
on Server B seconds before using that new address to send from A->B
How can I find out more about why I was charged
0.01010081 BTC to 2N3HvqWY8sQ59mqHDXeWAd6tV8LWR7pmNnY
I assume this is the wallet of the node that validated the transaction?
I'm using jsonRPC and here is my call:
sendtoaddress(
'2N8yYvrbAxKm9nhS8fDCZng1GRVwvxhUy8n',
'0.0003',
'test from local to MT',
'Message for MT to see?',
true
)
rawtransactions confuse me I'll be honest.
I'm assuming that I need to get over that, but before I do, why was I charged a fee many 100% higher than my transaction?
Cheers!
The output to 2N3HvqWY8sQ59mqHDXeWAd6tV8LWR7pmNnY is your change.
Bitcoin tracks money in a way similar to physical cash. Your balance is composed of many individual outputs, each of a specific value, similar to how your physical wallet balance is composed of many individual notes, each of a specific value (for example, someone with $25 in their wallet might have $20 + $5 in notes).
When you spend Bitcoin, you must consume an existing output in full. As it is uncommon for someone to have outputs that sum up precisely to their desired send amount + fees, any left over value from the outputs used by the transactions are returned to an address in your sending wallet as change.

Historical ad set budget

I was wondering if there was any way to get the ad set budget in history? When I request it in the params it will always give me the current daily budget
Example request:
https://graph.facebook.com/v5.0/act_${id}/adsets?fields=daily_budget,lifetime_budget,insights.fields(clicks, conversions).time_range({'since':'2019-11-14','until':'2019-11-14'})

Finding PayPal transaction limits for currencies other than US dollars

I am using PayPal's express checkout authorisation and capture API, the documentation describes the following limits.
AMT
(Required) Amount to capture.
Character length and limitations:
Value is typically a positive number that cannot exceed 10,000.00 USD
and
An authorization enables you to capture multiple payments up to 115% of, or USD $75 more than, the amount you specify in the DoExpressCheckoutPayment request.
I've spent a great deal of time looking as to what these limits would be in other currencies (specifically GBP) with no success. Does anyone know if these are documented somewhere ?
The limit for any other currency except for JPY is any amount in that currency that equivalent to 10,000 USD.

paypal checkout with mixed billing type products

I have, in my opinion, pretty complex order case to implement. Paypal was choosen as a solution, but I can't figure it out how to implement it properly using express checkout (or anything else, but I am not sure what is proper to use).
Final order that can consist of (most complex example here):
subscription A with 1 month free trial - 100$/year
subscription B without free trial - 200$/year
initial payment for entire order - 50$
Requirements:
start of the whole order can be postponed due to some factors (I can set PROFILESTARTDATE to the given date)
all subscriptions in the order can be either monthly or yearly, so case where subscription A is paid per year and subscription B per month IS NOT ALLOWED
whole order must be processed in one paypal redirect (paypal page with products listed where client can login to confirm the order)
My problem:
in that order subscription A starts 1 month later than B but I can only set one PROFILESTARTDATE
I could use TRIAL*** parameters (like TRIALBILLINGPERIOD) for subscription B but I can only set one such parameter per paypal request for express checkout, so same problem as above
What would be a best option for such case ?