question

sweatband avatar image
0 Likes"
sweatband asked

Marketing sell API authorization

Documentation says that I have to authorize via authorization code grant flow.

https://developer.ebay.com/api-docs/sell/marketing/resources/ad_report/methods/getReport

This requires the user login (done by redirection). I would like to automate Ads report, but it can't be done due it requires user to login every time.


Is there any possibility to automate ads report with client credentials grant flow or any other way?

authorization
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @sweatband,

OAuth access token using an authorization code grant is valid for two hours from the time it was generated.

For continued access after the token expires, you must mint a new token using the associated refresh token.

For complete details on updating expired access tokens, see Using a refresh token to update a User access token.

Best Regards ,
eBay Developer Support

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sweatband avatar image
0 Likes"
sweatband answered

Thanks for answer @sagar_developersupport.

When refresh token expires we must again perform manual job with code authorization grant flow.

Is there any way to omit redirection and manual login with access approval?

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.