You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi, I'm struggling with Google AdWords Api since few days. I automatized getting refresh tokens for users. I'm storing it in database. Now I want to let them add IpBlock by my panel throught Api. I do not have idea how to start. Are refresh token, client id and client secret enough to create OAuth2Token? What to do next?
Greetings ;)
Sreelakshmi Sasidharan (AdWords API Team)
unread,
Feb 26, 2018, 10:17:37 AM2/26/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi Filip,
To make any calls to the AdWords API, you will need the OAuth credentials (client Id and client secret) and OAuth tokens (refresh token/access token). From your note, it looks like you have already done this step and ready to make the API call. Are you trying to make calls against the client's AdWords account? If so, please note that the clients will need to authorize your call (manually accept the prompt and share the authorization code with you) while generating the refresh token. More details about OAth setup can be found here. The guide on make your first API call should be helpful for you.
To add the Ip block, you will need to use the CampaignCriterionService and add the IpBlock as a negative criterion. We don't have a sample for this scenario but you could check AddCampaignTargetingCriteria sample in Java which shows how a keyword can be added as negative campaign criterion. You will need to modify the code to add the IpBlock instead. Samples in other languages can also be found here. Let me know if you have any additional questions.