How can i send custom data in Google Adwords API?

54 views
Skip to first unread message

raman kumar

unread,
Sep 5, 2014, 9:53:08 AM9/5/14
to adwor...@googlegroups.com
Hello,

In Google Ad words API, for tracking purpose i send the custom data along with the authorize URL. But after successful acceptance of permission to the app it will return the code in the Redirect URL which is used to get access token. Along with that code i also need the custom data to be returned as it is send earlier. 

So, My question is how can i get the custom data when the code is returned in Redirect URL?

Any help regarding this problem is highly appreciable. 

With Regards,
Raman

Ray Tsang (AdWords API Team)

unread,
Sep 5, 2014, 2:35:48 PM9/5/14
to adwor...@googlegroups.com
Raman,

Pleae see the Google OAuth 2.0 documentation.  There is a state parameter that you may be able to use.

Cheers,

Ray

Ray Tsang (AdWords API Team)

unread,
Sep 10, 2014, 4:56:37 PM9/10/14
to adwor...@googlegroups.com
Raman,

Invalid grant typically means you may have used an improper client ID/secret and/or refresh token.  The OAuth 2.0 authorization is a standard protocol, you may need to look into more on how to use web-based authorization vs offline authorization.  Most AdWords API users should be able to carefully follow this guide and setup the authorization correctly.

Thanks,

Ray
Reply all
Reply to author
Forward
0 new messages