I am developing ROR application and using Tinypass gem for payment.
I integrated tinypass and its work very well. But display price is static as I wrote in page not fetch from tinypass account prices which I set.
Now, I want to display that dynamic price. So, as per tinypass account give me embed code to put into <head> in our site template so its work auto.
But its now work for me and nothing display. Any one have a solutions.
Thanks
The display price should be dynamic per your dashboard. The embed code injected into would do this if it's your only integration. If on full API or combining API and V2 of plugin, then the price change would be static.
For more info, contact support here with your AID: support#tinypass.com
Related
I am using Version 4.4.1.0 of O2S.Components.PDF4NET
I am using this in an MVC project to run through a series of 6 views and fill an object with the data required for the PDF.
When the PDF is bound and emailed in the last step it works great. all except for when it is viewed by default PDF reader on iOS devices.
My company purchased this product on the cheaper plan so the 90 support is over and I cannot access any sort of forums from there site.
I read a similar issue regarding a button not being displayed on iOS but there was no resolution other then to email the company.
I hope that there is a viable solution as I would prefer not to have to cut my losses and change to a different product over something as short sighted as not supporting/testing against one of the more common platforms people use to consume media.
I'm not sure what you mean by 'bound content' but I assume you are talking about form fields.
Forms fields and annotations are not displayed by the CGPDF API in iOS, only the main page content is displayed. It is not a limitation of PDF4NET, it is a limitation of the iOS PDF display engine. The workaround is to flatten the form fields thus making them part of the page content.
If this is not your situation, please send a mail to support and they will help you.
Disclaimer: I work for the company that develops PDF4NET.
I would like to monitor users' page visits and clicks in my Rails app to make recommendations. My questions are:
Is there a Rails gem for this, or Google Analytics is the standard? If latter is true, then how should I link a page visit to a particular user profile?
It is typical in Rails to have a section in application.html.erb, which is shared for all pages. If I add Google Analytics pageview tracking code to in application.html.erb, will it be able to track all individual pages?
There are other ways, but the vast majority probably use Google Analytics. Several gems exist that help you integrate with GA to get at the data. See here: https://www.ruby-toolbox.com/categories/Web_Analytics.
Based on your first question, it seems you may want more insight than GA can provide. I've used ClickTale (http://www.clicktale.com) and Woopra (http://www.woopra.com) before, to good effect. This article lists several other alternatives, too - notice the high marks for Clicky: http://imimpact.com/web-stats-alternatives-to-google-analytics/.
Google Analytics (and almost all of these others) will take care of your second question automatically whenever the user loads a new page, since it keyed by URL. That means that, although you put the GA script code in a single place, each unique page is tracked individually.
If you have AJAX requests that change that page without changing the URL, you'll need to dig in to the GA script API. Essentially you'll need to push a new url (possibly with a # in it) whenever you want to track an AJAX-driven link/button click. See here: http://davidwalsh.name/ajax-analytics
I am biased, but I would recommend checking out impressionist, if you need to integrate the page views into the app in real-time. With analytics you will always have some lag time and you are also relying on an external dependency. Impressionist is good if you need this kind of control, but if you are just looking for simple metrics and don't need to pull them into the app, then analytics is probably the way to go.
Check out Ahoy, at https://github.com/ankane/ahoy. With just a few lines of code in your app, you can track page views and tie them to user accounts.
You can further customize Ahoy to track custom events, both the client (with JavaScript) and server.
Ahoy does not depend on any third-party services.
I'm building a portal that lists certain products and automatically gets the prices from product pages of listed vendors. To get the URL for the product page on a vendor's website, I've been using Google search API and it's been working great - the first result is invariably the page of the product. However, now I'm getting errors saying that Google has blocked my website (actually my develoment machine's IP) from the API because I've been making automated requests such as scraping (the only item that applies).
Fine, Google can go jump off a cliff, but... how do product portals generally get URLs for thewir products? I can enter the URLs manually but that can be a problem if the vendor's website changes the URL scheme somehow. I obviously need an automated way to do this.
I'm making no more than 50-60 requests per day so I don't get what Google wants. Do they want money?
First, they want you to use one of their APIs, not scrape their web page directly. Their custom search API is documented here. Once you register they'll give you an API key. You can get results in JSON format by requesting
https://www.googleapis.com/customsearch/v1?q=SEARCH_TERMS&key=YOUR_KEY
Second, they do like money, but you might be okay. You're allowed 100 searches per day for free; beyond that you're you're going to be charged $5 per thousand searches.
I'm currently parsing twitter feeds through my rails app and wondering how it would be possible to follow links in the tweets and scrape the external content (for example, if the tweet contains a link to an article on TechCrunch, follow that link to the article and scrape the title and body content of the article). Flipboard for iPad is a perfect example of this.
I'm familiar with screen scraping using Nokogirl / Mechanize, but trying to figure out how to accomplish this in a way it could work regardless of where the link in the tweet is linking to (whether it be to TechCrunch, or Flickr, etc...).
Any thoughts / insights would be much appreciated!
Many of the major content providers provide a oembed endpoints. Take a look at the oembed_links gem. From the readme:
It allows you to easily parse text and
query configured providers for embedding information on the links
inside the text. A sample configuration file for configuring the
library has been included (oembed_links_example.yml), though you
may also configure the library programmatically (see rdocs).
If you use oembed_links in conjuction with http://oohembed.com/ you'll have dozens of content providers handled for you. You can easily write a custom provider to handle the rest.
Basically, I have a list of keywords, such as:
- red balloons
- free red balloons
- buy red balloons
- blue balloons
- ....
for each keyword, I have a list of 3-4 ads, each ad consisting of a title, line 1, line 2, and a url, e.g:
Title: Free red balloons!
Line 1: Buy free red balloons right now!
Line 2: No hidden fees!
Url: http://example.com
I have 3-4 such ads for every keyword.
Using the API, I want to:
1) Create an adgroup for every keyword
2) Under the adgroup, upload all the ads for that particular keyword.
So all the ads for `free red balloons` would go under that keyword's adgroup.
I'm looking for some general pointers/links to API pages for the methods which I'll need to use to accomplish this. Specifically I'm using PHP and the Apility library, but non-php specific info will also be very much welcome.
Using AdGroupService you would have to create ad group for each keyword. Of course you need to have parent campaign for that ad group.
Then using AdGroupCriterionService you would have to create keywords for each ad group.
And at last with AdGroupAdService place specified ads under appropriate ad group.
Using default AdWords clients this task is difficult because you need to create all that objects that are then being serialized into SOAP message.
If you are building your app on .NET platform, you might wanna take a look at GemBox.Ppc AdWords API for .NET.
It dramatically simplifies management of AdWords objects.
APIlity has been deprecated, as it only handles v13 of the AdWords API. To make your coding easier, you should probably be looking at the new PHP Client Library, which offers full support for v200909, the latest API version. Be sure to check the 'examples' folder in the client library for some samples.
CampaignService
AdGroupService
AdGroupAdServie
To connect with google adwords api use client library and see code examples. Read guides here.
Long story short:
Create campaign.
Add AdGroup to campaign for each keyword.
Add Keywords to AdGroups.
Add Ads to AdGroups.