Amazon-Advertising-API | Class Amazon Advertising API | AWS library

 by   DantSu PHP Version: Current License: MIT

kandi X-RAY | Amazon-Advertising-API Summary

kandi X-RAY | Amazon-Advertising-API Summary

Amazon-Advertising-API is a PHP library typically used in Cloud, AWS applications. Amazon-Advertising-API has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Connect to Amazon Advertising's API to personalize the advertisements of your web site. For more information about this class visit : Connectez vous à l'API de publicité Amazon pour personnaliser les publicités de votre site internet. Pour plus d'information à propos de cette class, visitez :
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Amazon-Advertising-API has a low active ecosystem.
              It has 4 star(s) with 3 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 1 have been closed. On average issues are closed in 390 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of Amazon-Advertising-API is current.

            kandi-Quality Quality

              Amazon-Advertising-API has 0 bugs and 0 code smells.

            kandi-Security Security

              Amazon-Advertising-API has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              Amazon-Advertising-API code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              Amazon-Advertising-API is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Amazon-Advertising-API releases are not available. You will need to build from source code and install.
              It has 269 lines of code, 14 functions and 4 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed Amazon-Advertising-API and discovered the below as its top functions. This is intended to give you an instant insight into Amazon-Advertising-API implemented functionality, and help decide if they suit your requirements.
            • Sends request to Amazon
            • Get the unicode character
            • Get the author .
            • Create Image from XML
            • Add a keyword
            • Get the price
            • Set Index Index
            • Resets the keywords .
            • Get price with currency
            Get all kandi verified functions for this library.

            Amazon-Advertising-API Key Features

            No Key Features are available at this moment for Amazon-Advertising-API.

            Amazon-Advertising-API Examples and Code Snippets

            No Code Snippets are available at this moment for Amazon-Advertising-API.

            Community Discussions

            QUESTION

            Trying to Retrieve Report from Amazon Ads API
            Asked 2022-Mar-30 at 17:31

            I am trying to retrieve a report that I generated, and shows a 'status' of 'successful'.

            When I run the script below, I receive a 200 response. However, per the docs:

            "A successful call returns a 307 redirect response. The redirect link points you to the S3 bucket where you can download your report file. The report file downloads as JSON compressed in gzip format."

            ...

            ANSWER

            Answered 2022-Mar-30 at 17:31
            import gzip  # unzip compressed file
            import io  # read binary
            import requests
            import pandas as pd
            
            headers = {
                "Authorization": f"Bearer {access_code}",
                "Amazon-Advertising-API-Scope": profile_id,
                "Amazon-Advertising-API-ClientId": client_id
            }
            
            response = requests.get(report_url, headers=headers)
            
            if response.ok:
                json_resp = response.json()
                status = json_resp['status']
                if status == 'IN_PROGRESS':
                    # check again
                elif status == 'SUCCESS':
                    # initiate download
                    location = json_resp['location']
                    dl_response = requests.get(location, headers=headers, allow_redirects=True)
                    if dl_response.ok:
                        compressed_file = io.BytesIO(response.content)  # extract .gz file
                        decompressed_file = gzip.GzipFile(fileobj=compressed_file)  # unzip .gz file
                        output = pd.read_json(decompressed_file)
                elif status == 'FAILURE':
                    # failure response
            

            Source https://stackoverflow.com/questions/71681253

            QUESTION

            Amazon advertisement api asins report type returning empty list
            Asked 2022-Mar-17 at 13:36

            I am trying to get the asins report from amazon advertising api. The header and json for creation of the report as follows,

            ...

            ANSWER

            Answered 2022-Mar-17 at 13:36

            I have figured it out, there is a conflict for some reason, if I put both "asin" and "otherAsin" in the asins_json_data dictionary. It has to be either one of them in the metrics. According to the official document it should not happen.

            Source https://stackoverflow.com/questions/71323295

            QUESTION

            What is illegal about using curl with this URL?
            Asked 2021-Oct-05 at 14:22

            I have the below URL:

            ...

            ANSWER

            Answered 2021-Oct-05 at 14:22

            I finally found the solution based on the output suggested by @dave_thompson_085. I extracted the $REPORT_DOWNLOAD_URL from the header of a different response and it still contained the \r at the end.

            Source https://stackoverflow.com/questions/69397970

            QUESTION

            Is it possible to get account wide clicks count with the amazon advertising API
            Asked 2020-Apr-29 at 09:20

            I guess its possible to aggregate the clicks via /v2/sp/{recordType}/report and /v2/hsa/{recordType}/report e.g. with the compaign dimension. But since there might be row limitations, I wonder if there is a simpler way to get account or at least profile wide metric values, e.g. for clicks?

            ...

            ANSWER

            Answered 2020-Apr-29 at 09:20

            No, i think not.

            Currently you have to aggregate the data anyways because it is only possible to request data for one day per request. Performance data is only returned for datasets that have at least one impression. So on campaign level it is very hard to reach row limitations if there are any (i did not yet reached any limit with the reporting service).

            For the keyword report i get definitly a lot more than just 100 rows (just tested).

            And btw.: API endpoints beginning with /v2/hsa are deprecated. Use /v2/sb instead. https://advertising.amazon.com/API/docs/en-us/info/release-notes

            Source https://stackoverflow.com/questions/61464170

            QUESTION

            Amazon Advertising API: ASINs report request returns “Missing campaign type”
            Asked 2020-Feb-28 at 13:21

            ANSWER

            Answered 2020-Feb-28 at 13:21

            I asked Amazon Support and they replied:

            "Asin report would need campaignType in the payload to succeed the operation. We have a documentation update pending on this. Please be noted that query segmentation is only allowed for keyword, target and productAds report. An example payload:-

            GET https://advertising-api.amazon.com/v2/asins/report"

            Source https://stackoverflow.com/questions/60450380

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Amazon-Advertising-API

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/DantSu/Amazon-Advertising-API.git

          • CLI

            gh repo clone DantSu/Amazon-Advertising-API

          • sshUrl

            git@github.com:DantSu/Amazon-Advertising-API.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular AWS Libraries

            localstack

            by localstack

            og-aws

            by open-guides

            aws-cli

            by aws

            awesome-aws

            by donnemartin

            amplify-js

            by aws-amplify

            Try Top Libraries by DantSu

            php-osm-static-api

            by DantSuPHP

            php-image-editor

            by DantSuPHP