We use the following AdSense Management API to get AdMob revenue, but the revenue we get from is 1/100 smaller than the actual value on AdMob dashboard.
This makes me think that there is some setting we need to consider in the API request?
https://developers.google.com/adsense/management/v1.4/reference/reports/generate
response = ad_sense.generate_report(date.to_s, date.to_s,
metric: %w[CLICKS EARNINGS INDIVIDUAL_AD_IMPRESSIONS],
dimension: %w[APP_ID APP_PLATFORM AD_UNIT_NAME AD_UNIT_ID DATE COUNTRY_CODE],
currency: 'USD',
use_timezone_reporting: true)
Response: $12.87
True value: $1,287
The currency code on the dashboard is USD.
Thank you for the help!
You can leave off currency so that the API report will use the account's default. That's worth a shot just to be sure that the currencies are the same.
It's hard for me to compare the two reports since I don't know what parameters are set on the UI report, but I would recommend checking that all the dimensions and filters are the same. Certain dimensions can lead to double-counting report data, like this example with custom channels.
Finally, I would second Maksym's advice to try the new AdMob API for reporting. It's designed to give you reports more in line with the AdMob UI.
It could depend on the account default setting (I.e., currency). You have mentioned that request and dashboard uses USD, but I think it worth to
check.
To check AdMob's account defaults, you need:
Login to AdMob UI (admob.google.com);
Go to Settings -> Account Information;
Check the default reporting currency.
In case all set correct, you can try an AdMob API to get AdMob related reports. It works well to me.
Related
With Stripe API Checkout, does anyone know how to change what I underlined ?
I need to display a price in ml. Example: I must write /100 ml and not /piece
This value isn't customizable. I think the best way to handle this is to add the size to the product name, "Le Baume (100ml)".
Can anyone please help us with this?
We are using Netsuite advanced search to pull sales order for different subsidiary. We are able to get all the line items(except tax itmes) but its consists the amount in base currency. Is there any way we can get response with exact amount visible in UI.
Also Its very hard to understand the basic of Netsuite SUITE TALk- SOAP. Do you recommend any resources that will ease learning?
Thanks
Just an update with this question, with Advanced search we are able to get the foreign currency of Subsidiary using fxCost in columns But line items doesn't have this option. This causes whole another problem for us. Then we decided to use SAVED SEARCH. Saved search provides us feature to disable foregin currency just by choosing CONSOLIDATED EXCHANGE RATE to none. We are using saved search ID in the Advanced search paramater ie using savedSearchScriptId from Netsuite Schema.
Hope it would be helpful to anyone who is strugglign with this kind of issue.
Thanks
For tax line in fx currency, prefer to do Tax Amount/exchange rate.
Scenario :
I've been trying to implement something like Amazon has on their product pages in, where the non promoted price is crossed, and the promoted price is highlighted.
I have the PROMOTIONS product option selected in the controller, and
it is returning the potencialPromotion, but it doesn't have the value
of the discount in that structure only the message (as on the
Accelerator it appears the message).
I'm in Hybris 6.6 and I looked up the DefaultPromotionEngineService.evaluate method because it is used in the Cart, and for the cart it returns the promotion actions, but the equivalent method for the product isn't returning anything.
Has anybody done this? Seems like a pretty convencional request although I know it goes against the flexibility of promotion engine.
I can use a Regex against the message to get the discount, but it's a road I don't want to take because it will end badly....
Please suggest.
Thank you
Since you haven't mentioned it before, I have answered based on Legacy Promotion, not the Promotion Engine. I'll update answer if there is a way to do the same in Promotion Engine.
It's true, OOTB there is no service which gives you the discount price on PDP.
I think what you can do,
Override PromotionsPopulator to get the discount value and set it to promotionData.
if (fixedPricePromotion instanceof ProductFixedPricePromotionModel)
{
PromotionPriceRowModel promotionPriceRowModel = ((ProductFixedPricePromotionModel)source).getProductFixedUnitPrice();
//TODO: covert promotionPriceRowModel to promotionPriceData
//TODO: set to promotionData
}
ProductPromotionsPopulator internally calls the above populator to convert ProductPromotionModel to data.
I think we can achieve this using the price row. We can create one more price row and display the logic correctly based on the discount price.
I'm using ItemSearch Amazon API. It works fine for most cases; however, when Amazon has a discount, it doesn't show the discounted price they show on Amazon, it returns the old original price.
For example for this item, Amazon's discounted price is $37.50. However, the API just returns the original price: $44.99.
The Offers section doesn't help either (it has other sellers' offers, not Amazon's).
Any thoughts anyone?
Here is the API call for your convenience (fill up the {} fields):
http://webservices.amazon.com/onca/xml?AWSAccessKeyId={}&AssociateTag={}&Condition=New&Keywords=887961219319&Operation=ItemSearch&ResponseGroup=Images%2CItemAttributes%2CLarge%2COffers%2CReviews&SearchIndex=All&Service=AWSECommerceService&Timestamp={}&Signature={}
After almost about a week of digging and investigation, it turns out I had to remove the "condition" field from the request! After that, I was able to get the the price displayed on Amazon.com properly! (using the filed Item.Offers.Offer.OfferListing.Price.Amount).
Reason: it seems Amazon displays what they call as "Buy Box Winner" price if it exists, or the lowest possible offer. To get this value returned in the response, you'd have to remove the Condition field in addition to the MerchantId as well. More details here.
Jeez Amazon! I hope someone finds this useful!
The Acumatica Customer Portal has shopping cart capabilities and it links to a report for sales orders or quotes. The report is SO641010.rpx. And there's some problems I'm having with the formatting and presentation of the report that I could easily fix with by customizing the report.
However, I cannot figure out how Acumatica Customer Portal is selecting and rendering the report from the directory structure collection of rpx files. If I put a modified report in either ReportsCustomized or ReportsDefault, I'm still unable to get the customer portal report print routine to use my modified rpx.
The Request Profiler clearly indicates I'm working with the correct report number, but it seems something unusual is happening with the way the portal grabs the report it's rendering. I'm guessing it might be caching of some sorts or the ReportLaucher that's getting invoked?
Doug Potter
Ok Dhiren Chhapgar and I just discussed the correct answer here. And this applies to all custom reporting, not just portal report customization. Once a report is customized, it winds up in the database under
select * from userreport where reportfilename =
If you are trying to modify a customization by changing the RPX ( in ReportsCustomized) and the system won't take your new report mods, just delete this record from the userreport table. The next time you run the report, the system will pickup the modified report and drop a new record in the userreport table.
Doug Potter