Re: Calling Api In Salesforce

2020-01-16 Thread Siva Kummar
Hi Akash,

I have a similar requirement . Can you please help me provide the steps or 
any blogs if you have published/referred for the same.

Regards,
Siva Ragula.

On Thursday, September 22, 2016 at 10:03:26 AM UTC+2, akash mohan singh 
wrote:
>
> Hi All,
>
> Can we consume Adwords Api in Salesforce?
>
> Thanks,
> Akash
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/7f964c9e-14eb-4ef5-8b2a-0ce40ef4c7b3%40googlegroups.com.


Re: Trying to access to adword API with salesforce

2020-01-16 Thread Siva Kummar
I have a similar requirement . Can you please help me provide the steps or 
any blogs if you have published/referred for the same.

Regards,
Siva Ragula

On Wednesday, December 4, 2013 at 1:45:49 PM UTC+1, noam...@conduit.com 
wrote:
>
> I'm trying to access adwords API with the following code in salesforce:
>
> HttpResponse res = new HttpResponse();
> Http http = new Http();
> req.setEndpoint('
> https://adwords.google.com/api/adwords/reportdownload/v201309');
> req.setMethod('POST');
> req.setHeader('Authorization', 'Bearer 
> ya29.1.AADtN_XN5J-ld2VbjCwzwMdWgCf62FoJ5dhdw5LIDLO3hA_P6PkhE43w4jLDzKsg');
> req.setHeader('developerToken', 'Ox80jWNwZ9jZa5175T-Q3A');
> req.setHeader('clientCustomerId', '203-167-7812');
> req.setHeader('returnMoneyInMicros', 'false');
> req.setHeader('Content-type', 'application/x-www-form-urlencoded'); 
>
> 
> String body = 'https://adwords.google.com/api/adwords/cm/v201309;>\n' + 
> '\n' +
> 'CampaignId\n' +
> 'Id\n' +
> 'Impressions\n' +
> 'Clicks\n' +
> 'Cost\n' +
> '\n' + 
>   'Status\n' +
>   'IN\n' +
>   'ENABLED\n' +
>   'PAUSED\n' +
> '\n' +
>   '\n' +
>   'test\n' +
>   'ADGROUP_PERFORMANCE_REPORT\n' +
>   'LAST_7_DAYS\n' + 
>   'CSV\n' + 
> '\n';
> req.setBody('__rdxml=' + EncodingUtil.urlEncode(body, 'UTF-8'));  
> system.debug('AM --> body ' + req.getBody());
>
> try {
> res = http.send(req); 
> System.debug(res.getBody()); 
>} catch(System.CalloutException e) {
>System.debug('Callout error: '+ e);
>System.debug(res.toString());
>} 
>
>
> And I'm getting the following error:
>  standalone="yes"?>AuthenticationError.OAUTH_TOKEN_INVALIDnull
>
> The token is valid and new
>
> Please advise 
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/c273db80-7a4a-41cf-8518-4df58e2738c9%40googlegroups.com.