Skip to content

Commit

Permalink
chore: update api version to 17 from 16
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsSudip committed Aug 20, 2024
1 parent 5bae268 commit b0fd614
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { getMappingConfig } = require('../../util');

const BASE_ENDPOINT = 'https://googleads.googleapis.com/v16/customers';
const BASE_ENDPOINT = 'https://googleads.googleapis.com/v17/customers';
const CONFIG_CATEGORIES = {
AUDIENCE_LIST: { type: 'audienceList', name: 'offlineDataJobs' },
ADDRESSINFO: { type: 'addressInfo', name: 'addressInfo' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const expectedResponse = {
version: '1',
type: 'REST',
method: 'POST',
endpoint: 'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
endpoint: 'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer abcd1234',
'Content-Type': 'application/json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const oauthError = [
headers: commonHeaders,
params: commonParams,
JSON: validRequestPayload1,
endpoint: 'https://googleads.googleapis.com/v16/customers/customerid/offlineUserDataJobs',
endpoint: 'https://googleads.googleapis.com/v17/customers/customerid/offlineUserDataJobs',
accessToken: 'dummy-access',
}),
method: 'POST',
Expand Down Expand Up @@ -84,7 +84,7 @@ export const oauthError = [
headers: { ...commonHeaders, Authorization: 'Bearer wrongCustomerID' },
params: { ...commonParams, customerId: 'wrongCustomerID' },
JSON: validRequestPayload1,
endpoint: 'https://googleads.googleapis.com/v16/customers/customerid/offlineUserDataJobs',
endpoint: 'https://googleads.googleapis.com/v17/customers/customerid/offlineUserDataJobs',
accessToken: 'wrongCustomerID',
}),
method: 'POST',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export const networkCallsData = [
},
{
httpReq: {
url: 'https://googleads.googleapis.com/v16/customers/customerid/offlineUserDataJobs:create',
url: 'https://googleads.googleapis.com/v17/customers/customerid/offlineUserDataJobs:create',
data: {
job: {
type: 'CUSTOMER_MATCH_USER_LIST',
Expand Down Expand Up @@ -243,7 +243,7 @@ export const networkCallsData = [
},
{
httpReq: {
url: 'https://googleads.googleapis.com/v16/customers/customerid/offlineUserDataJobs:create',
url: 'https://googleads.googleapis.com/v17/customers/customerid/offlineUserDataJobs:create',
data: {
job: {
type: 'CUSTOMER_MATCH_USER_LIST',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -203,7 +203,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -323,7 +323,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -1425,7 +1425,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -2820,7 +2820,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -2900,7 +2900,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -4113,7 +4113,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -5413,7 +5413,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -6790,7 +6790,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -8100,7 +8100,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -9400,7 +9400,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -10795,7 +10795,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -10875,7 +10875,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -11050,7 +11050,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -11128,7 +11128,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -11272,7 +11272,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -11479,7 +11479,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -11618,7 +11618,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -11756,7 +11756,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -11896,7 +11896,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -12039,7 +12039,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer dummy-access',
'Content-Type': 'application/json',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer default-accessToken',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -122,7 +122,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer default-accessToken',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -218,7 +218,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer default-accessToken',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -269,7 +269,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer default-accessToken',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -387,7 +387,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer default-accessToken',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -485,7 +485,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer default-accessToken',
'Content-Type': 'application/json',
Expand Down Expand Up @@ -613,7 +613,7 @@ export const data = [
type: 'REST',
method: 'POST',
endpoint:
'https://googleads.googleapis.com/v16/customers/7693729833/offlineUserDataJobs',
'https://googleads.googleapis.com/v17/customers/7693729833/offlineUserDataJobs',
headers: {
Authorization: 'Bearer default-accessToken',
'Content-Type': 'application/json',
Expand Down

0 comments on commit b0fd614

Please sign in to comment.