SDITools / adobeanalyticsr

R Client for Adobe Analytics API v2.0
Other
18 stars 9 forks source link

aw_get_reportsuites() giving errors #173

Closed szonekr closed 11 months ago

szonekr commented 11 months ago

Hi,

I am new to the package and it seems like it could prove extremely useful to us. I am beginning the setup, this is working fine up to the get_me() where i can get the company_id for analytics.

When i run aw_get_reportsuites(company_id = 'xxxx') it tells me the following error:

Error in if (res$empty == TRUE) { : argument is of length zero

I wondered if you could provide some assistance here. This would be massively appreciated it as I've been going in circles a bit for what is probably a simple mistake im making.

Kind Regards

benrwoodard commented 11 months ago

Hey szonekr,

Unfortunately, I believe you are hitting a bug in the aw_get-reportsuites function that I found last week. I've got a bug fix ready to go (https://github.com/benrwoodard/adobeanalyticsr/issues/168) but I have a few more additions I'll be making to the package before submitting it to the CRAN. For help in identifying the reportsuite id, you can select "enable debugger" in a workspace project under the "Help" tab. image Then from there you can click on the "bug" icon above any freeform table, click the "Freeform Table" link, and then you will see the request code. Within the XML request code, you will see the "suite = " parameter. That will be the reportsuite id you are going to use for your API calls in the R package. image

Please let me know if you have any additional questions, let me know. I'll make sure to let you know when the updated package is on CRAN to be downloaded again.

szonekr commented 11 months ago

Hi,
sorry slighly confused here, are you executing this in R studio? or within Adobe analytics?

benrwoodard commented 11 months ago

No problem. I was able to get the fix into place in the new version of the package (v0.4.0). You should be able to update the package and pull the reportsuites now.

szonekr commented 11 months ago

thanks I can now get to the report suites, will let you know how I get on with the rest of the set up.